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

Links are not picked up in incoming/outgoing links by some links-generating macros

      I've encountered some similar bugs with macros that are generating links to others pages.

      Since these issues are already documented on the plugin's page, I'll just refer to them :

      So it is said in LINK-139 that this is a limitation of Confluence. Is it really the case? Also, we have a license for Confluence and we are running 2.5.2 and no such problems occur. This is a blocker issue for migrating to newer versions. Even though this is a blocker here (we use lots of scaffolding forms generating links) it might not be the case generally, so I've put the priority to "Critical".

            [CONFSERVER-14779] Links are not picked up in incoming/outgoing links by some links-generating macros

            Hi All

            It's not surprising given the age of this issue but the links and descriptions listed in this issue are no longer working or are no longer relevant to the currently supported versions of Confluence.

            I'm going to close this issue out as incomplete. If you are still suffering from this problem and can provide updated information on how to reproduce it then please raise a new ticket.

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi All It's not surprising given the age of this issue but the links and descriptions listed in this issue are no longer working or are no longer relevant to the currently supported versions of Confluence. I'm going to close this issue out as incomplete. If you are still suffering from this problem and can provide updated information on how to reproduce it then please raise a new ticket. Regards Steve Haffenden Confluence Bugmaster Atlassian

            I've experienced the same problems.

            I created the following user macro to test the problem
            Body: no
            Content: Generate wiki markup
            Code: [$param0|SPACEKEY:$param0|Read more]

            I then added the macro to page A linking it to page B.
            The link didn't show in any of the pages. Neither as incomming or outgoing links.

            Peter Andberg added a comment - I've experienced the same problems. I created the following user macro to test the problem Body: no Content: Generate wiki markup Code: [$param0|SPACEKEY:$param0|Read more] I then added the macro to page A linking it to page B. The link didn't show in any of the pages. Neither as incomming or outgoing links.

            Steve Wiles added a comment - - edited

            I see the same problem on our version of Confluence. If I create a table using (table-plus) and add a page link as a cell, then it won't show up in the (incoming-links) or (outgoing-links) with the same information as the page - info data.

            repro

            1. Create this page OPS:loc2function2
              • With this coding on the page:
                this is a test landing page
                h2. Incoming links
                {incoming-links}
                h2. Outgoing links
                {outgoing-links}
                
              1. Check page info, and page rendering
                • Expected - both shouldn't have any links for this page
                • Observered - as expected
            2. Create a page OPS:testlinking
              • with just this table coding on the page
                 {table-plus:sortIcon=true|sortColumn=1}
                 ||Server||
                 |[OPS:LOC1FUNCTION01]|
                 |[OPS:LOC1FUNCTION02]|
                 |[OPS:LOC1FUNCTION03]|
                 |[OPS:LOC2FUNCTION01]|
                 |[OPS:LOC2FUNCTION02]|
                 {table-plus}
                 
              1. Check page info, and page rendering on both pages now
                • Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page
                • Observered - no links
            3. I thought it might be case sensitivity issues. So I created a second value in lower case that matches the case of the preexisting destination page.
              1. Add this entry to the end of the table before the ending (table-plus) tag
                |[OPS:loc2function02]|
                
              2. Check page info, and page rendering on both pages now
                • Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page.
                • Observered - no links. Both table entries appear as lower case, but the table values don't acutualy change. Both table links work, the tool link for both version show the lower case form.
            4. Now put this entry outside of the table
              [OPS:loc2function02]
              
              1. Check page info, and page rendering on both pages now
                • Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page.
                • Observered - works as expected
            5. Now wrap the link above within the (code) macro and it's broken again for both page info and the linking macros.
              1. Check page info, and page rendering on both pages now
                • Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page from the table, but not from the link inside the code macro.
                • Observered - no links.

                  Summary

                  This is a Confluence bug.

            Steve Wiles added a comment - - edited I see the same problem on our version of Confluence. If I create a table using (table-plus) and add a page link as a cell, then it won't show up in the (incoming-links) or (outgoing-links) with the same information as the page - info data. repro Create this page OPS:loc2function2 With this coding on the page: this is a test landing page h2. Incoming links {incoming-links} h2. Outgoing links {outgoing-links} Check page info, and page rendering Expected - both shouldn't have any links for this page Observered - as expected Create a page OPS:testlinking with just this table coding on the page {table-plus:sortIcon= true |sortColumn=1} ||Server|| |[OPS:LOC1FUNCTION01]| |[OPS:LOC1FUNCTION02]| |[OPS:LOC1FUNCTION03]| |[OPS:LOC2FUNCTION01]| |[OPS:LOC2FUNCTION02]| {table-plus} Check page info, and page rendering on both pages now Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page Observered - no links I thought it might be case sensitivity issues. So I created a second value in lower case that matches the case of the preexisting destination page. Add this entry to the end of the table before the ending (table-plus) tag |[OPS:loc2function02]| Check page info, and page rendering on both pages now Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page. Observered - no links. Both table entries appear as lower case, but the table values don't acutualy change. Both table links work, the tool link for both version show the lower case form. Now put this entry outside of the table [OPS:loc2function02] Check page info, and page rendering on both pages now Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page. Observered - works as expected Now wrap the link above within the (code) macro and it's broken again for both page info and the linking macros. Check page info, and page rendering on both pages now Expected - I should see corresponding outgoing links and incoming links on page info and on the loc2function02 page from the table, but not from the link inside the code macro. Observered - no links. Summary This is a Confluence bug.

            Hi Andrew,

            I didn't notice any problems I discussed in my second comment recently, so I will ignore it for the moment. Still, the problem remains.

            To recreate this behavior, simply create a list of options with the Scaffold plugin, using for example, a parent to populate the list.

            {list-data:expertise|required=true}
            {list-option}
            {content-options:parent=hr:Expertise center}
            {list-data}

            Unfortunately, the OutgoingLinks in the "Info" section of the page is not reflecting the options selected in the

            {content-options}

            .

            I inspected the code saving those links and found what was going wrong. I noticed the method "updateOutgoingLinks" of the "DefaultLinkManager" class deletes the links Scaffold properly inserted in the OutgoingLinks list the ContentEntityObject maintains. The OutgoingLinks are then populated with the parsing of the wiki code, but the content-options macro does not generate wiki. So the links are lost.

            mathieu hanna added a comment - Hi Andrew, I didn't notice any problems I discussed in my second comment recently, so I will ignore it for the moment. Still, the problem remains. To recreate this behavior, simply create a list of options with the Scaffold plugin, using for example, a parent to populate the list. {list-data:expertise|required=true} {list-option} {content-options:parent=hr:Expertise center} {list-data} Unfortunately, the OutgoingLinks in the "Info" section of the page is not reflecting the options selected in the {content-options} . I inspected the code saving those links and found what was going wrong. I noticed the method "updateOutgoingLinks" of the "DefaultLinkManager" class deletes the links Scaffold properly inserted in the OutgoingLinks list the ContentEntityObject maintains. The OutgoingLinks are then populated with the parsing of the wiki code, but the content-options macro does not generate wiki. So the links are lost.

            Hi Mathieu,

            While these are not core Confluence plugins, it's possible that Confluence is at fault for this.

            Could you please provide detailed steps for reproduction (especially w.r.t. to the links appearing at a later point in time)?

            Regards.
            Andrew Lynch

            Andrew Lynch (Inactive) added a comment - Hi Mathieu, While these are not core Confluence plugins, it's possible that Confluence is at fault for this. Could you please provide detailed steps for reproduction (especially w.r.t. to the links appearing at a later point in time)? Regards. Andrew Lynch

            It might have something to do with the cache since when newly created, the link does not appear. But say 60 minutes later, the link suddenly appears in the incoming links macro. This behavior is inconsistent, i.e. it is not all broken incoming links that will appear after a certain period of time.

            mathieu hanna added a comment - It might have something to do with the cache since when newly created, the link does not appear. But say 60 minutes later, the link suddenly appears in the incoming links macro. This behavior is inconsistent, i.e. it is not all broken incoming links that will appear after a certain period of time.

              shaffenden Steve Haffenden (Inactive)
              377a0e402f0f mathieu hanna
              Affected customers:
              4 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: