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

Editing same page at same time breakes nested macros as "Broken Macro"

    XMLWordPrintable

Details

    Description

      Summary

      Editing same page at same time breakes nested macros as "Broken Macro"

      Environment

      • Confluence 5.10.1

      Steps to Reproduce

      1. Place a Info macro on a page.
      2. Place a Status macro into the Info macro.
      3. Save the page
      4. Open the page with one browser(A)
      5. Open the page with another browser(B)
      6. on (A) Edit the page and add a line (ex. line1) into the first line.
      7. on (B) Edit the page and add a line (ex. last_line) into the last line.
      8. Save the page on (A)
      9. Save the page on (B)
      10. You can see the "Broken Macro"

      Expected Results

      Save safety without a problem.

      Actual Results

      nested macros are broken, when user edit one page at same time.

      origin
      ...
       <ac:structured-macro ac:name="info" ac:schema-version="1" ac:macro-id="82bfd187-5659-4a16-bf0a-d97205229590">
       <ac:rich-text-body>
       <p>
       <ac:structured-macro ac:name="status" ac:schema-version="1" ac:macro-id="9e060ee3-66dd-4fda-bf4d-360b92d40da2">
       <ac:parameter ac:name="colour">Red</ac:parameter>
       <ac:parameter ac:name="title">test</ac:parameter>
       </ac:structured-macro>
       ...
      
      
      
      Broken macro
      ...
       <ac:structured-macro ac:name="info" ac:schema-version="1" ac:macro-id="82bfd187-5659-4a16-bf0a-d97205229590">
       <ac:rich-text-body>
       <p>
       <ac:structured-macro>
       <ac:parameter ac:name="colour">Red</ac:parameter>
       <ac:parameter ac:name="title">test</ac:parameter>
       </ac:structured-macro>
       ...
      
      
      

      ac:name, ac:schema-version and ac:macro elements have gone.
      missing ac:name causes this issue.

      Workaround

      if you installed Source Code Editor plugin, you edit the source code.
      and add

       ac:name="status"
      

      after ac:structured-macro and save.
      this is a case of using Status Macro.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tnagasaka Takuya Nagasaka
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: