Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
6.2.3, 6.3.2, 6.6.2, 6.13.2, 6.15.9, 7.3.5
-
12
-
Severity 3 - Minor
-
1
-
Description
Summary
Adding the TOC macro to the page where Content by Label macro is present in preview only will render error message on the position of TOC:
"Error rendering macro 'toc' : [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Duplicate attribute 'and'. at [row,col
{unknown-source}]: [1,1267]"
Steps to Reproduce
- Create with Content by Label macro
- Add TOC macro in front of Content by Lable macro. Or use this Storage format:
<p><ac:structured-macro ac:name="toc" ac:schema-version="1" ac:macro-id="09909e98-85a4-426e-8e66-884c0f83b094" /></p> <p><ac:structured-macro ac:name="contentbylabel" ac:schema-version="3" ac:macro-id="af2f44db-4ecd-4b1d-90cb-c7b53e1a06a9"><ac:parameter ac:name="showLabels">false</ac:parameter><ac:parameter ac:name="max">5</ac:parameter><ac:parameter ac:name="spaces">ITWIKI</ac:parameter><ac:parameter ac:name="showSpace">false</ac:parameter><ac:parameter ac:name="sort">modified</ac:parameter><ac:parameter ac:name="reverse">true</ac:parameter><ac:parameter ac:name="type">page</ac:parameter><ac:parameter ac:name="cql">label = "page" and type = "page" and space = currentSpace()</ac:parameter><ac:parameter ac:name="labels">NetApp Neustarten Reboot Administration</ac:parameter></ac:structured-macro></p>
- Click "preview"
Expected Results
- See TOC macro render nothing as there is no content for it.
Actual Results
- Observe error message in place of TOC macro
"Error rendering macro 'toc' : [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Duplicate attribute 'and'. at [row,col
{unknown-source}
]: [1,1267]"
Workaround
Place TOC macro after Content by label macro.