Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
7.0.2, 7.1.0, 7.2.2
-
None
-
2
-
Severity 3 - Minor
-
Description
Issue Summary
Content by Label will return an error message when the filter 'With parent = Current page()' is added but that current page doesn't have a child page.
Environment
Replicated with Confluence 7.0.2
Steps to Reproduce
- Create page 1 with no child page
- Add label, 'test' to page 1
- Create page 2 and add "Content by Label" macro to it
- Insert 'test' for label
- Select "Add a Filter" and pick "With Parent"
- Pick "Current Page"
- Click on "Preview"
Expected Results
The macro will return a message such as "There is no content with the specified conditions"
Actual Results
The macro error message:
Error rendering macro 'contentbylabel' : At least one must or should or not query parameter needs to be supplied.
The below exception is thrown in the atlassian-confluence.log file:
java.lang.IllegalArgumentException: At least one must or should or not query parameter needs to be supplied. at com.atlassian.confluence.search.v2.BooleanQueryBuilder.build(BooleanQueryBuilder.java:74) at com.atlassian.confluence.plugins.cql.v2search.query.ContentIdQuery.expand(ContentIdQuery.java:74) at com.atlassian.confluence.plugins.cql.v2search.query.ContentIdQuery.expand(ContentIdQuery.java:19) at com.atlassian.confluence.search.v2.SearchExpander.expandAll(SearchExpander.java:19)
Workaround
Currently there is no known workaround for this behavior. A workaround will be added here when available
Attachments
Issue Links
- is related to
-
CONFSERVER-58901 Page Properties Macro displays Error rendering macro 'detailssummary'
- Short Term Backlog