Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-72537

Broken parameter on the Content By Label macro breaks the page

    XMLWordPrintable

Details

    Description

      Issue Summary

      For some reason, some Content by Label macros have the schema-version parameter set to 1, which causes an error and breaks the page. That parameter should be 4.

      Steps to Reproduce

      So far, we haven't been able to replicate the issue from scratch, but we've received some reports of this issue.

      Expected Results

      • It shouldn't be possible to have the macro with the wrong schema
      • Or it shouldn't break the page

      Actual Results

      The page can't be viewed, with the "We've hit a snag" error message:

      And the following error in the browser's console:

      Error: Failed to parse ADF: <div class="error fatal-render-error">Error: Error migrating macro 'contentbylabel' in content 'ContentId{id=12345}' from schema version 1. Message: java.lang.IllegalArgumentException: Unable to migrate contentbylabel parameters
      	at ...

      Workaround

      Update the page's source code using the API and change the following parameter inside the contentbylabel macro:

      ac:schema-version="1"

      set it to

      ac:schema-version="4"

      You may contact support and mention this bug report so we can apply the workaround for you.

      Attachments

        Issue Links

          Activity

            People

              adildy@atlassian.com Andrew Dildy
              gtworkowski Guilherme T (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: