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

Nesting complex macros inside of a user macro breaks page rendering

    XMLWordPrintable

Details

    Description

      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
        $body
        
      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

      Attachments

        1. 1.JPG
          62 kB
          pumin wuvanich
        2. 2.JPG
          112 kB
          pumin wuvanich
        3. 3.JPG
          96 kB
          pumin wuvanich
        4. ContentbyLabelPage.txt
          0.2 kB
          Gustavo Bongiovanni
        5. JiraIssueMacroPage.txt
          0.7 kB
          Gustavo Bongiovanni
        6. NoPrint1.PNG
          21 kB
          Monique Khairuliana
        7. NoPrint2.PNG
          16 kB
          Monique Khairuliana
        8. NoPrint Screen 1.JPG
          97 kB
          Patrice Rompas
        9. NoPrint Screen 2.JPG
          75 kB
          Patrice Rompas
        10. screenshot-1.png
          7 kB
          Gavin Fowler
        11. user macro.jpg
          21 kB
          AndrewA

        Issue Links

          Activity

            People

              jponting James Ponting
              acampbell AndrewA
              Votes:
              53 Vote for this issue
              Watchers:
              48 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: