-
Bug
-
Resolution: Incorrectly Filed
-
High
-
None
-
8.0.3, 8.1.1
-
None
-
3
-
Severity 2 - Major
-
4
-
Issue Summary
After upgrading to Confluence 8 versions the CDATA tag is randomly inserted into JavaScript code generated on pages containing Confiforms plugin that breaks page functionality like search box, space tools, or page tree navigator.
This is reproducible on Data Center: yes only using Confiforms plugin.
Steps to Reproduce
- Install Confluence 8.0.3 + PostgreSQL and add Confiforms plugin to the instance.
- Create pages with file names as page titles using attached storage formats SUPPORT-4737 and SUPPORT-4737 - listpages.txt
- Click on 'Register List groups' button SUPPORT-4737 page and add dummy data (eg, Name: test1) and save the form.
- Repeat the above Step 4 for 3 more times
- Monitor the console logs for below similar error:
Uncaught SyntaxError: Unexpected token ']' (at SUPPORT-4737:2251:1)
Expected Results
The page should load without any issues with Confiforms plugin.
Actual Results
The below error is observed in broswer console logs:
Uncaught SyntaxError: Unexpected token ']' (at SUPPORT-4737:2251:1)
Snippet from the JavaScript generated by Confiforms showing ]]><![CDATA[ inserted randomly:
AJS.$(selector).each(function () { ]]><![CDATA[ applySearchExpression(AJS.$(this), query) ? AJS.$(this).show().removeClass('invisible').addClass('ensureTRDisplayed') : AJS.$(this).hide().addClass('invisible').removeClass('ensureTRDisplayed'); });
The error is not seen in browser console.log when the Confiforms plugin is disabled which breaks the pages with only the plugin functionality unavailable.
Workaround
Currently there is no known workaround for this behaviour. A workaround will be added here when available
- duplicates
-
CONFSERVER-82785 Macro HTML bodies longer than 64k characters may exhibit split CDATA sections and/or corrupt JavaScript elements
- Closed
- mentioned in
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...
-
Page Loading...