Diagramly wont show images correctly under HTTPS with context path

Pavel Smirnov March 10, 2013

Diagramly latest on Confluence latest worked perfectly 2 hours ago.

Confluence was secured with HTTPS reverse proxy and alas -- garbage instead of real diagrams.

On closer inspection image URLs are not including correct context path, e.g.

https://myhostname/download/resources/com.mxgraph.confluence.plugins.diagramly:diagramly-editor/img/lib/clip_art/computers/Virtual_Application_128x128.png

shall actually have been:

https://myhostname/wiki/download/resources/com.mxgraph.confluence.plugins.diagramly:diagramly-editor/img/lib/clip_art/computers/Virtual_Application_128x128.png

because context path "/wiki" is configured inside server.xml

2 answers

1 vote
Boris
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2013

We will look into it. What version of Confluence are you using?

Are you saying plugin works correctly for you with http but not with https?

Pavel Smirnov March 12, 2013

Confluence is 4.3.3

0 votes
Pavel Smirnov March 10, 2013

On even close inspection I can see this:

<mxCell id="92" value="Internet" style="image;image=/download/resources/com.mxgraph.confluence.plugins.diagramly:diagramly-editor/img/lib/clip_art/networking/Cloud_128x128.png"....

And this naturally does not contain image=/wiki/ in front of the URL...

Plugin shall be looking at application context when injecting img links...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events