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

Changing application link name breaks all macros linked to that application

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Medium
    • None
    • 4.3.2
    • None

    Description

      When changing the application link application name, all macros attached to that application link break with error message :

      Error rendering macro 'jira' : Couldnt find an application link with the name {0}.
      

      After the application link name has been changed, Edit a page with a macro. Then edit one of the macros and re-insert it. The macro is then corrected with the proper information and renders properly. The storage format shows two issues - one that was edited post change, one that was not. You can see the link points to a different application link name. At first they both referenced Jira:

      <p>bug 1</p>
      <p><ac:macro ac:name="jira"><ac:parameter ac:name="server">ryan</ac:parameter><ac:parameter ac:name="key">TEST-1</ac:parameter></ac:macro></p>
      <p>&nbsp;</p>
      <p>feature request 1</p>
      <p><ac:macro ac:name="jira"><ac:parameter ac:name="server">Jira</ac:parameter><ac:parameter ac:name="key">TEST-2</ac:parameter></ac:macro></p>
      

      We should either, not allow them to change the name of the application link, or when it does change, it should automatically change the association with all the macros in the body content so customers don't have to manually change every macro in Confluence.

      We could do a search/replace in bodycontent on all matches and replace with:

      <p><ac:macro ac:name="jira"><ac:parameter ac:name="server">ryan</ac:parameter>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgoodwin Ryan Goodwin (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: