Uploaded image for project: 'Confluence Server and Data Center'
  1. Confluence Server and Data Center
  2. CONFSERVER-25507

Nesting complex macros inside of a user macro breaks page rendering




      If a complex macro (gliffy, attachments, jira issues) macro is nested within a user macro that utilizes a <div>, then anything after the user macro fails to render, including the footer.

      To replicate

      1. Create the a user macro with the following attributes
        • Macro Name: anymacro
        • Visibility: Visible to all users in the Macro Browser
        • Macro Title: anymacro
        • Categories: Confluence Content
        • Macro Body Processing: Rendered
        • Template: <div>$body</div>
      2. Create a new page
      3. Insert the 'anymacro'
      4. Insert the 'Attachments macro' inside the 'anymacro'
      5. Save page
      6. Notice footer fails to render

      Attached are screen shots of the failure when using the 'Attachments' macro, we should see the word 'zabba' as well as the footer after the attachments macro but they are not present.

      Update (28/4/2014):
      Other scenario to replicate:

      1. Create a NoPrint Macro
      2. Create a new page
      3. Attach a PDF file
      4. Insert a NoPrint Macro
      5. Insert PDF Macro inside the NoPrint macro's container
      6. Save the page
      7. See NoPrint Screen 1.JPG and NoPrint Screen 2.JPG

      Update (25/2/2015)

      1. Create a NoPrint Macro
      2. Create a new page
      3. Insert the NoPrint Macro
      4. Insert any Macro Panels that has icons (Note, Info, Warning, Tip)
      5. Save the page
      6. See NoPrint1.PNG and NoPrint2.PNG
      7. See CONF-37102 for an explanation of the occurrence of this issue

      Update (17/6/2014)
      Adding Powerpoint Viewfile Macro inside a user macro breaks the page layout.

      1. Create a simple user macro (e.g: cp-expand):
        ## @noparams
      2. Create a new page
      3. Attach PPT or PPTX file
      4. Insert cp-expand
      5. Put the Office Powerpoint of the PPTX in Step 3 inside cp-expand
      6. Save the page


        1. 1.JPG
          62 kB
        2. 2.JPG
          112 kB
        3. 3.JPG
          96 kB
        4. ContentbyLabelPage.txt
          0.2 kB
        5. JiraIssueMacroPage.txt
          0.7 kB
        6. NoPrint1.PNG
          21 kB
        7. NoPrint2.PNG
          16 kB
        8. NoPrint Screen 1.JPG
          NoPrint Screen 1.JPG
          97 kB
        9. NoPrint Screen 2.JPG
          NoPrint Screen 2.JPG
          75 kB
        10. screenshot-1.png
          7 kB
        11. user macro.jpg
          user macro.jpg
          21 kB

        Issue Links



              Unassigned Unassigned
              acampbell AndrewA
              53 Vote for this issue
              47 Start watching this issue