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

Page does not render correctly once any html code inserted on HTML Macro

    • Icon: Bug Bug
    • Resolution: Answered
    • Icon: Low Low
    • None
    • 6.0.1, 6.3.4, 6.6.1
    • Macros - Other Macros
    • None

      The page does not render correctly once any HTML code inserted on HTML macro. The other content missing after save though it available during preview mode

      STEPS TO REPRODUCE
      1. Create a new page and apply the Storage Format.txt
      2. Preview the page
      3. Then save
      EXPECTED BEHAVIOR

      All content should be shown exactly like in preview mode after the save

      ACTUAL BEHAVIOR

      Only HTML macro content is shown on the page after the save

      After save:

      Preview:

      Note

      Tried to remove any macro on the page to see if the behavior change, but no luck. Even the simplest HTML code return the same result. But keeping the HTML macro empty return the expected behavior

       

       
       

        1. Preview mode.png
          Preview mode.png
          46 kB
        2. Result after save.png
          Result after save.png
          33 kB
        3. Storage Format.txt
          3 kB

          Form Name

            [CONFSERVER-54107] Page does not render correctly once any html code inserted on HTML Macro

            Katherine Yabut made changes -
            Workflow Original: JAC Bug Workflow v3 [ 2892820 ] New: CONFSERVER Bug Workflow v4 [ 3005609 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2792394 ] New: JAC Bug Workflow v3 [ 2892820 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JAC Bug Workflow [ 2709455 ] New: JAC Bug Workflow v2 [ 2792394 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Owen made changes -
            Workflow Original: Confluence Workflow - Public Facing - Restricted v5 - TEMP [ 2472050 ] New: JAC Bug Workflow [ 2709455 ]
            Alex Yakovlev (Inactive) made changes -
            Link New: This issue is duplicated by CONFSERVER-54914 [ CONFSERVER-54914 ]
            Sarah Rezkalla (Inactive) made changes -
            Affects Version/s New: 6.6.1 [ 77306 ]
            Alex Yakovlev (Inactive) made changes -
            Resolution New: Answered [ 9 ]
            Status Original: Needs Verification [ 10004 ] New: Resolved [ 5 ]

            Hi mzakaria@atlassian.com,

            The HTML Macro content contains <html>, <head> and <body> tags. This is causing the page to render incorrectly. Those tags should not be included in the body of an HTML macro. Only the real HTML content should be included.

            Alex Yakovlev (Inactive) added a comment - - edited Hi mzakaria@atlassian.com , The HTML Macro content contains <html>, <head> and <body> tags. This is causing the page to render incorrectly. Those tags should not be included in the body of an HTML macro. Only the real HTML content should be included.
            Zulfarhan Zakaria (Inactive) made changes -
            Description Original: The page does not render correctly once any HTML code inserted on HTML macro. The other content missing after save though it available during preview mode
            h6. STEPS TO REPRODUCE
             # Create a new page and apply the [^Storage Format.txt]
             # Preview the page
             # Then save

            h6. EXPECTED BEHAVIOR

            All content should be shown exactly like in preview mode after the save
            h6. ACTUAL BEHAVIOR

            Only HTML macro content is shown on the page after the save

            After save:

            !Result after save.png|thumbnail!

            Preview:

            !Preview mode.png|thumbnail!
            h6. Note

            Tried to remove any macro on the page to see if the behavior change, but no luck. Even the simplest HTML code return the same result

             
            h6.  
            h6.  
            New: The page does not render correctly once any HTML code inserted on HTML macro. The other content missing after save though it available during preview mode
            h6. STEPS TO REPRODUCE
             # Create a new page and apply the [^Storage Format.txt]
             # Preview the page
             # Then save

            h6. EXPECTED BEHAVIOR

            All content should be shown exactly like in preview mode after the save
            h6. ACTUAL BEHAVIOR

            Only HTML macro content is shown on the page after the save

            After save:

            !Result after save.png|thumbnail!

            Preview:

            !Preview mode.png|thumbnail!
            h6. Note

            Tried to remove any macro on the page to see if the behavior change, but no luck. Even the simplest HTML code return the same result. But keeping the HTML macro empty return the expected behavior

             
            h6.  
            h6.  

              Unassigned Unassigned
              mzakaria@atlassian.com Zulfarhan Zakaria (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: