-
Bug
-
Resolution: Fixed
-
Medium
-
4.2.5
-
None
I've accidentally modified the select clause for CurrentContentForLabelAndSpace when reverting to performant label queries for: CONF-25236
This is used by the Master Details Macro
[INFO] [talledLocalContainer] 2012-06-11 12:08:21,698 ERROR [http-1990-2] [xhtml.view.macro.ViewMacroMarshaller] marshal Error rendering macro: detailssummary [INFO] [talledLocalContainer] -- url: /confluence/pages/viewpage.action | userName: admin | action: viewpage | page: 917525 [INFO] [talledLocalContainer] java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to com.atlassian.confluence.labels.Labelling [INFO] [talledLocalContainer] at com.atlassian.confluence.labels.persistence.dao.hibernate.HibernateLabelDao$10.apply(HibernateLabelDao.java:857) [INFO] [talledLocalContainer] at com.google.common.collect.Lists$TransformingRandomAccessList.get(Lists.java:451) [INFO] [talledLocalContainer] at java.util.AbstractList$Itr.next(AbstractList.java:345) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators$7.computeNext(Iterators.java:644) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:141) [INFO] [talledLocalContainer] at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:136) [INFO] [talledLocalContainer] at com.google.common.collect.Iterators.size(Iterators.java:147) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$FilteredCollection.size(Collections2.java:222) [INFO] [talledLocalContainer] at com.google.common.collect.Collections2$TransformedCollection.size(Collections2.java:288) [INFO] [talledLocalContainer] at java.util.AbstractCollection.toArray(AbstractCollection.java:119) [INFO] [talledLocalContainer] at java.util.ArrayList.<init>(ArrayList.java:131) [INFO] [talledLocalContainer] at com.atlassian.confluence.extra.masterdetail.DetailsSummaryMacro.execute(DetailsSummaryMacro.java:227)
It's a simple fix, and will add an integration test for this query.
- is caused by
-
CONFSERVER-25236 Slow response and Confluence crashing when you have too many labels
- Closed
- is duplicated by
-
CONFSERVER-25827 Metadata Detail Macro errors on page when adding a label.
- Closed