link-window macro doesn't display the link

  • 1
  • Question
  • Updated 2 years ago
link-window macro does not work in 4.0.4 or 4.0.2 for Confluence 5.8.18. I edited
an upgraded links (5.1.5 to 5.8.18), and added 2 new links, and one was the example used in your documentation. Here is the storage format:

<h1><span style="color: rgb(51,102,255);">GTOC Site Standards</span></h1>
<p style="margin-left: 30.0px;">
<ac:structured-macro ac:macro-id="5ba3ee42-7637-4848-9f7f-43b74a3f0fed" ac:name="link-window" ac:schema-version="1">
<ac:parameter ac:name="linkText">Link</ac:parameter>
<ac:parameter ac:name="href">https://wiki.test.att.com/display/ITOSM/Site+Standards</ac:parameter>
</ac:structured-macro>&nbsp;
<ac:structured-macro ac:macro-id="c10ffbbe-e784-4a75-93da-19924435f4c8" ac:name="link-window" ac:schema-version="1">
<ac:parameter ac:name="linkText">link2</ac:parameter>
<ac:parameter ac:name="href">https://wiki.test.att.com/display/ITOSM/Site+Standards</ac:parameter>
</ac:structured-macro>&nbsp;</p>
<p><ac:structured-macro ac:macro-id="29a430fc-26e3-451d-b453-f2115d54dc20" ac:name="link-window" ac:schema-version="1">
<ac:parameter ac:name="">http://www.foo.com/</ac:parameter>
<ac:parameter ac:name="linkText">Link text</ac:parameter>
<ac:parameter ac:name="href">http://www.foo.com/</ac:parameter></ac:structured-macro></p>
This is how it appears on the page:
This is what the HTML on the page looks like:

<h1 id="WorkSmart-GTOCSiteStandards"><span style="color: rgb(51,102,255);">GTOC Site Standards</span></h1><p style="margin-left: 30.0px;">    
    

<span class="link-window-section">
    <span class="link-window-data" data-linkwindow="{"insertIcon":true,"resizable":"yes","contextPath":"","linkText":"Link","target":"_blank","macroName":"link-window","toolbar":"yes","menubar":"yes","scrollbars":"yes","linkURL":"https:\/\/wiki.test.att.com\/display\/ITOSM\/Site+Standards","width":null,"location":"yes","statusbar":"yes","tip":"Visit location in new window","height":null}"></span>
    <span class="link-window-container"></span>
</span>
<span class="link-window-section"> <span class="link-window-data" data-linkwindow="{"insertIcon":true,"resizable":"yes","contextPath":"","linkText":"link2","target":"_blank","macroName":"link-window","toolbar":"yes","menubar":"yes","scrollbars":"yes","linkURL":"https:\/\/wiki.test.att.com\/display\/ITOSM\/Site+Standards","width":null,"location":"yes","statusbar":"yes","tip":"Visit location in new window","height":null}"></span> <span class="link-window-container"></span> </span>  </p><p> <span class="link-window-section"> <span class="link-window-data" data-linkwindow="{"insertIcon":true,"resizable":"yes","contextPath":"","linkText":"Link text","target":"_blank","macroName":"link-window","toolbar":"yes","menubar":"yes","scrollbars":"yes","linkURL":"http:\/\/www.foo.com\/","width":null,"location":"yes","statusbar":"yes","tip":"Visit location in new window","height":null}"></span> <span class="link-window-container"></span> </span>

Steve Hadfield
Photo of shadmansmusings

shadmansmusings

  • 58 Posts
  • 2 Reply Likes

Posted 3 years ago

  • 1
Photo of shadmansmusings

shadmansmusings

  • 58 Posts
  • 2 Reply Likes
ServiceRocket Support - are you going to answer my question? Do you need additional information?


Steve Hadfield
Photo of Khalid Kader

Khalid Kader

  • 32 Posts
  • 1 Reply Like
Hi Steve,

We have tested out the storage format provided in Confluence 5.8.18 and Linking 4.0.4.

We were unable to replicate the issue as the links are shown without any problems [see image below].



Just to double confirm, does the image provided is your expected output?.

Also could you try to update to the latest version of Linking add-on which is 4.0.5 and get back to us whether the issue still persist or resolved.

Thank you.

Cheers,
Khalid
Photo of shadmansmusings

shadmansmusings

  • 58 Posts
  • 2 Reply Likes
Yes, I can see how that might have been confusing. This image has a heading in Blue, with the link below it - that does not appear. Maybe I can do this a different way. This is the generated HTML on the page:
<p>This is a link-window macro:     
<span class="link-window-section">
<span class="link-window-container">
<a class="aui-button aui-button-link" data-macro="" title="" target="_blank"></a>
</span>
</span>
</p>
See how there is no href in the anchor tag?  no "http://www.cnn.com"?

Now see in the editor that there is a link to CNN? And in the editor there is a display of the link-window macro? The macro doesn't display in the preview window either.



And this is the storage format on the page:
<p>This is a link-window macro: 
<ac:structured-macro ac:macro-id="7c8edbe0-083e-4b6d-8646-caa3e416b00d" ac:name="link-window" ac:schema-version="1">
<ac:parameter ac:name="linkText">CNN</ac:parameter>
<ac:parameter ac:name="href">http://www.cnn.com</ac:parameter>
</ac:structured-macro></p>
And this is how it displays on the page:


These results are using Linking 4.0.5. I have 3 upgraded systems (5.1.5 > 5.8.18) and it fails in all 3. Are there dependencies on anything else? Another plugin? A random bits plugin?


Steve Hadfield
Photo of shadmansmusings

shadmansmusings

  • 58 Posts
  • 2 Reply Likes
I haven't heard anything on this issue. Any update?

Steve
Photo of Jesse Lahtinen

Jesse Lahtinen

  • 6 Posts
  • 0 Reply Likes
Hi Steve,
did ever resolve this issue? I am having exactly the same problem with an instance upgraded from 3.5.x->5.0.3->5.9.8.

Cheers,
Jesse
Photo of shadmansmusings

shadmansmusings

  • 58 Posts
  • 2 Reply Likes
No we did not, because, as you found out below, our two instances are not the problem here. I even opened a separate support ticket with SR and got nowhere; they say they cannot reproduce. I have 5 environments, 2 with 4+ year old data, I can reproduce it in every single one. Because of their inability to reproduce, I rewrote as a user macro to duplicate 90% of their behavior (I know there are differences I just don't know what they actually do in theirs), and migrated all of the link-window macros out of my environments.

Interestingly, 2 days before we were to disable the link-window macro, that macro caused a Production outage. Seems part of the 10% I didn't reproduce is the macro's ability to retrieve the page content for the link the macro refuses to show, even though all you really want to see is a simple link. The user had 18 link-window macros on a page and the macros were attempting to retrieve the page content for the links when you just viewing the page! Yes, I know how crazy that sounds, but we were watching it happen in real time a 2nd time after we dug into the root cause and found it as the root issue. Once the macros were replaced with simple links, the page worked fine, and we saw no more data retrievals for the links. That macro, alone with orphaned, outgoing and one other are disabled in that plugin. I can't afford to count on anything I can't get support for. Not sure what I'm going to do about the other macros in that plugin. I don't trust any of them right now.

I don't know if you use the redirection plugin, but I can't even install the latest supposedly compliant version of that plugin in my 5.8.18 environments (I have an older version installed right now); as it breaks both scaffolding and reporting because it installs those crappy RB plugins (Sorry SR, those have always been a huge problem in my environments, and am glad they are almost all gone). I wrote a redirection user macro and we're in the process of migrating both the alias and redirect macros out of our environment so we can remove the redirection plugin altogether. Its almost impossible to get support for their free plugins, they aren't strategic and I get that, so I'm just going to go with the flow.

Hope that helps you out.

Steve
Photo of Jesse Lahtinen

Jesse Lahtinen

  • 6 Posts
  • 0 Reply Likes
Hi Steve,

I ended up implementing the link-window macro too.  I have had some performace issues with this plugin on another instance, There postgres consumed 100% cpu when loading pages with link-window macro.

Also I have had my share of problems with org.ranbombits libraries, I have use confluence-metadata in macros and rpc-interfaces the use scaffolding data. Problems like loading dependancies and major API changes with minor versions number changes. I see they have re-packaged these, maybe hoping to resolve some issues. I don't know though are these new libraries available any more for third party developers.

Cheers,
Jesse
Photo of Jesse Lahtinen

Jesse Lahtinen

  • 6 Posts
  • 0 Reply Likes

Hi,

any word on this?

I am having the same problem on one Confluence instance (5.9.8) and with the latest linking plugin version 4.1.2. This instance has been upgraded from confluence 5.0.3.

I have tested this in safe-mode with only linking plugin enable and the html generated for the links are missing the url and the innerhtml for the a-tag. After adding more logging there is:

2016-10-04 11:35:29,418 INFO [ajp-nio-127.0.0.1-8009-exec-10] [confluence.plugin.linking.LinkWindowMacro] executeVerified >>>>>>>>>> Start Searching for Content [http://example.com/]: 2016-10-04 11:35:29.4182016-10-04 11:35:29,436 INFO [ajp-nio-127.0.0.1-8009-exec-10] [confluence.plugin.linking.LinkWindowMacro] executeVerified >>>>>>>>>> End Searching for Content - [http://example.com/]:2016-10-04 11:35:29.436

2016-10-04 11:35:29,437 INFO [ajp-nio-127.0.0.1-8009-exec-10] [confluence.plugin.linking.LinkWindowMacro] executeVerified >>>>>>>>>> Loading Content - [http://example.com/] took 18 milliseconds.

Above test has been made on a newly created page, not migrated content. Other macros in this plugin seem to work normally. Even after clearing the plugin caches this problem persists.

Cheers,

Jesse Lahtinen

Polar Shift Ltd.





(Edited)
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Hello Jesse,

We are sorry that you're having this issue.

Can you confirm that the existing {link-window} macros from Confluence 5.0.3 are working fine on your side, and only new {link-window} macros having this issue? It would be great if you can email below details to supportATservicerocket.com for our checking:

- your Confluence System Info
- storage format of Linking page

ThanksRegards,
Ziana
Photo of Jesse Lahtinen

Jesse Lahtinen

  • 6 Posts
  • 0 Reply Likes
Hi Ziana,

the link-window macro does not work on old pages, new pages, page previews or even macro browser previews.

I will email you the system info and here is the storage format for my newly created test page:
<p>  <ac:structured-macro ac:macro-id="d36bca6a-fb4b-4834-8028-401d746d2d27" ac:name="link-window" ac:schema-version="1">
    <ac:parameter ac:name="linkText">https://www.servicerocket.com</ac:parameter>;
    <ac:parameter ac:name="href">https://www.servicerocket.com</ac:parameter>;
  </ac:structured-macro>
</p>

Cheers,
Jesse
Photo of Nurhana Ziana Bt. Hanafi

Nurhana Ziana Bt. Hanafi, Employee

  • 3500 Posts
  • 269 Reply Likes
Hello Jesse,

Thank you.

We have received your details and will replying via our help desk.

ThanksRegards,
Ziana