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

    XMLWordPrintable

Details

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

    Description

      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.

      Workaround

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: