-
Bug
-
Resolution: Answered
-
Low
-
None
-
6.6.1, 6.7.0
-
None
-
Severity 3 - Minor
-
Summary
If an HTML macro is added to a page which contains an embedded spreadsheet through either insert>files and images or via adding the Offfice Excel macro, that spreadsheet will not appear on the rendered page. The HTML macro will appear.
Environment
Confluence 6.6.1 and 6.7 were tested
Steps to Reproduce
- Enable the HTML macro plugin modules
- Add an HTML macro with some code inside, like:
<HTML> <HEAD> <TITLE> A Small Hello </TITLE> </HEAD> <BODY> <H1>Hi</H1> <P>This is very minimal "hello world" HTML document.</P> </BODY> </HTML>
- Attach an Excel spreadsheet
- Add the spreadsheet to the page using the Office Excel macro or Insert>files and images
- Save the page
Expected Results
The HTML and the Spreadsheet would be displayed on the page
Actual Results
Only the HTML is displayed.
Notes
If the HTML macro is removed, the spreadsheets show up right away. I attempted a workaround by putting the spreadsheet on another page and trying the except/excerpt include macros but again the spreadsheet would only render in the absence of the HTML macro.
storage format of example:
<p><ac:structured-macro ac:name="view-file" ac:schema-version="1" ac:macro-id="a6bd6c24-0cb4-4845-b61c-24b32a340614"><ac:parameter ac:name="name"><ri:attachment ri:filename="Workbook2.xlsx" /></ac:parameter><ac:parameter ac:name="height">250</ac:parameter></ac:structured-macro></p><ac:structured-macro ac:name="html" ac:schema-version="1" ac:macro-id="6c3ba0eb-bf2c-43d0-a17f-6a22ac7c4719"><ac:plain-text-body><![CDATA[<HTML> <HEAD> <TITLE> A Small Hello </TITLE> </HEAD> <BODY> <H1>Hi</H1> <P>This is very minimal "hello world" HTML document.</P> </BODY> </HTML>]]></ac:plain-text-body></ac:structured-macro> <p><br /></p> <p><br /></p> <p><br /></p> <p><ac:structured-macro ac:name="viewxls" ac:schema-version="1" ac:macro-id="1a3deea5-85bf-4606-b26f-be6e63ba1629"><ac:parameter ac:name="name"><ri:attachment ri:filename="Workbook2.xlsx" /></ac:parameter></ac:structured-macro></p> <p><br /></p> <p class="auto-cursor-target"><br /></p>
Workaround
No workaround has been discovered
- duplicates
-
CONFSERVER-54107 Page does not render correctly once any html code inserted on HTML Macro
-
- Closed
-
- mentioned in
-
Page Failed to load
anoop.kulapparayilbaby1753140364, this bug report is described as being about the HTML Macro, as opposed to the HTML Include Macro. Have you already troubleshooted the HTML Include Macro issue with our support team? In order to understand what problem you might be running into, we would need to know the content of the HTML page that is being included. There are a number of related issues with HTML Macro and HTML Include Macro. These macros could be executing JavaScript which can cause various problems on the page. See for example CONFSERVER-38200, or
CONFSERVER-38874, orCONFSERVER-42823. It would be best to contact our Support Team at https://support.atlassian.com/contact in order to understand the problem better, and the team might also be able to offer a workaround for your case.