Broken Macro and data loss after disable/enable of plugin

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 6.15.2, 7.4.0, 7.5.1
    • None
    • 2
    • Severity 2 - Major

      This issue is observed with other System Macros like HTML Macro. Below are the steps to reproduce with the Info macro.

      Steps to reproduce

      1. Create a blank page;
      2. Insert an Info macro and publish any information and update the page. Alternatively use the below Storage format:
        <p class="auto-cursor-target"><br /></p>
        <p><br /></p><ac:structured-macro ac:name="info" ac:schema-version="1" ac:macro-id="3387e4f3-a4d7-4126-9948-83681000af9e"><ac:rich-text-body>
        <p>Testing enabling and disabling system plugins</p></ac:rich-text-body></ac:structured-macro>
        <p class="auto-cursor-target"><br /></p>
        
      3. Go to Cog icon > Manage App > All add-ons search for confluence-information-plugin and disable it;
      4. Back to the page, we see Unknown macro: 'info' instead the information entered (expected);
      5. Edit the page but do not touch the Info macro. Save the page
      6. Manage add-ons screen again, enable confluence-information-plugin;

      Expected behavior
      The information is displayed back properly.

      Actual Behavior
      Unknown macro: 'info'  is displayed on the page and the data is lost. The macro was corrupted during the page edit/save while the Confluence Information plugin was disabled.
      In the storage format, we see missing parameters in the macro structure:

      <p class="auto-cursor-target"><br /></p>
      <p><br /></p>
      <p><ac:macro ac:name="info" /></p>
      <p><br /></p>
      

            Assignee:
            Unassigned
            Reporter:
            Aamir (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: