Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-82558

CDATA tags are randomly inserted into JavaScript code generated on pages with Confifroms plugin after upgrading to Confluence 8 versions breaking the page functionality


    • Icon: Bug Bug
    • Resolution: Incorrectly Filed
    • Icon: High High
    • None
    • 8.0.3, 8.1.1
    • Macros - 3rd Party
    • None

      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

      1. Install Confluence 8.0.3 + PostgreSQL and add Confiforms plugin to the instance.
      2. Create pages with file names as page titles using attached storage formats SUPPORT-4737 and SUPPORT-4737 - listpages.txt
      3. Click on 'Register List groups' button SUPPORT-4737 page and add dummy data (eg, Name: test1) and save the form.
      4. Repeat the above Step 4 for 3 more times
      5. 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.


      Currently there is no known workaround for this behaviour. A workaround will be added here when available

            Unassigned Unassigned
            188bae873138 Saurabh
            6 Vote for this issue
            13 Start watching this issue