Details
-
Bug
-
Resolution: Obsolete
-
Low
-
5.3-OD-8, 5.4
-
Severity 3 - Minor
-
Description
NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.
Calling getForLabels(Page.class, labels) for example, returns a List<Page> that contains all ContentEntityObject s matching the labels passed in, and not just Pages.
For example, if you created a Page and a BlogPost with a label1, and called
List<Page> myList = labelManager.getForLabels(Page.class, label1);
You get back a list with both your Page and your BlogPost, so when you try to fetch the BlogPost result as a Page, you get a ClassCastException.
Attachments
Issue Links
- relates to
-
CONFCLOUD-35425 LabelManager.getForLabels returns all ContentEntityObjects when given a class that is a subclass of CEO
- Closed