created themes not showing up in series branding tab

Steps to reproduce

When on the themes tab: First 10 themes show up in branding, later ones are not shouwing up in the dropdown when creating a series.

Steps to reproduce:
1. Create more than 10 themes
2. Try to create a branded series
3. Try to find one of the #index > 10 themes in the dropdown menu

Actual Results:
Themes not showing up in branding dropdown when creating a series.

Expected Results:
All Themes should be listed.

Workaround (if any):

Activity

Show:
Ferdinand Göldner
December 2, 2015, 1:48 AM

With the beta4 the problem changed.
In Safari 9, there is no dropdown menu to select a theme, there is simply a text field.

Sven Stauber
January 12, 2016, 1:18 AM

I could reproduce this issue on 2.1.0rc2

Sven Stauber
May 11, 2016, 7:13 AM

I could reproduce this issue on the current state of 2.2.x

Sven Stauber
May 11, 2016, 7:27 AM

A first analysis reveals that the backend is not working correctly:

The admin UI Resource facade call /admin-ng/resources/THEMES.NAME.json always returns the first 10 theme names independent of the limit and offset parameters.

Sven Stauber
May 11, 2016, 8:30 AM
Edited

Added some log out put...

logger.info("ThemeSearchQuery.getDocumentCount is {}", results.getDocumentCount());
logger.info("ThemeSearchQuery.getHitCount is {}", results.getHitCount());

int nbr = 0;
for (SearchResultItem<Theme> item : results.getItems()) {
Theme theme = item.getSource();
list.put(Long.toString(theme.getIdentifier()), theme.getName());
nbr = nbr + 1;
logger.info("Number: {} + Name: {}", nbr, theme.getName());
}

Weird...

Should find 13 themes, but the document count is just 10 (while hitcount would be 13)...

Hitcount vs document count is suspect because the query does not define any criteria (either everything should hit or nothing and therefore, hitcount should be equal to document count), but...

2016-05-11 00:25:41,491 | INFO | (ThemesListProvider:92) - ThemeSearchQuery.getDocumentCount is 10
2016-05-11 00:25:https://opencast.jira.com/browse/MH-11194#41,492 | INFO | (ThemesListProvider:93) - ThemeSearchQuery.getHitCount is 13
2016-05-11 00:25:41,493 | INFO | (ThemesListProvider:101) - Number: 1 + Name: 12
2016-05-11 00:25:41,493 | INFO | (ThemesListProvider:101) - Number: 2 + Name: 2
2016-05-11 00:25:41,494 | INFO | (ThemesListProvider:101) - Number: 3 + Name: 3
2016-05-11 00:25:41,494 | INFO | (ThemesListProvider:101) - Number: 4 + Name: 5
2016-05-11 00:25:41,494 | INFO | (ThemesListProvider:101) - Number: 5 + Name: 7
2016-05-11 00:25:41,494 | INFO | (ThemesListProvider:101) - Number: 6 + Name: 9
2016-05-11 00:25:41,494 | INFO | (ThemesListProvider:101) - Number: 7 + Name: 11
2016-05-11 00:25:41,495 | INFO | (ThemesListProvider:101) - Number: 8 + Name: a
2016-05-11 00:25:41,495 | INFO | (ThemesListProvider:101) - Number: 9 + Name: c
2016-05-11 00:25:41,495 | INFO | (ThemesListProvider:101) - Number: 10 + Name: gds

Fixed and reviewed

Assignee

Waldemar Smirnow

Reporter

Ferdinand Göldner

Severity

Non Functioning

Tags (folksonomy)

None

Components

Fix versions

Affects versions

Priority

Major