-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Medium
-
None
-
Affects Version/s: 5.8.9, 6.0.5, 6.1.1, 7.4.0, 7.18.1, 7.19.19
-
Component/s: Content - Attachments
-
27
-
Severity 2 - Major
-
3
Steps to reproduce
- Create a blank page;
- Drag and drop a file and check the storage format. It should look like this:
<p> <ac:structured-macro ac:macro-id="3fa4b7be-699b-4675-83f9-15691f3470b5" ac:name="view-file" ac:schema-version="1"> <ac:parameter ac:name="name"> <ri:attachment ri:filename="pdf_sample.pdf"/> </ac:parameter> <ac:parameter ac:name="height">250</ac:parameter> </ac:structured-macro> </p>
- Go to Cog icon > Add-ons > All add-ons search for Confluence View File Macro and disable it;
- Back to the page, we see Unknown macro: 'view-file' instead of the dropped file (expected);
- Edit the page but do not touch the View File macro. Save the page
- Manage add-ons screen again, enable Confluence View File Macro;
Expected behavior
The files are displayed back properly.
Actual Behavior
Broken Macro message where there should be a file. The macro was corrupted during the page edit/save while the Confluence View File Macro plugin was disabled.
In the storage format, we see missing parameters in the macro structure:
<p> <ac:macro ac:name="view-file"> <ac:parameter ac:name="name">pdf_sample.pdf</ac:parameter> <ac:parameter ac:name="height">250</ac:parameter> </ac:macro> </p>
Workaround
- Restore the previous version of the page saved before the macro was disabled.
- Use the respective view macro depending on the file type (PDF, Word, Excel, PPT)
- is incorporated by
-
CONFSERVER-55572 After disabling and re-enabling plugins, content in their macros on pages being edited can disappear.
-
- Closed
-
- is related to
-
CONFSERVER-56309 Macros nested inside other macros are corrupted if original macro is disabled or not installed
-
- Closed
-
- mentioned in
-
Page Loading...