Why confluence link URL get modified with %25 sign?

kunjiraj April 5, 2017

Hi,

We have an issue with http URL encoding.

encoding: UTF-8
Confluence 6.0.5

Expected URL: https://URL/issues/?jql=project%20%3D%20ECPD%20and%20fixversion%20%3D%20EC

after click result: 
https://URL/issues/?jql=project%2520%253D%2520ECPD%2520and%2520fixversion%2520%253D%2520EC

%25 appends in URL

 

3 answers

1 accepted

1 vote
Answer accepted
NotTheRealStephenSifersNOPENOPENOPENOPE
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.
April 5, 2017

Looks like it is passing through a %25 as the "%" for the 20.

%25 is equall to %

%20 is equall to SPACE

%2520 is equall to %20 is equall to SPACE

More info here:

https://www.w3schools.com/tags/ref_urlencode.asp

Original: Expected URL: https://URL/issues/?jql=project%2520%253D%2520ECPD%2520and%2520fixversion%2520%253D%2520EC

Translated: https://URL/issues/?jql=project%20%3D%20ECPD%20and%20fixversion%20%3D%20EC

kunjiraj April 5, 2017

do we have any solution for this to avoid it in URL?

It makes link dead on confluence page.

josh
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.
April 5, 2017

This is likely Apache or your proxy double encoding the existing url. Can you post your proxy config from your Apache config file?

kunjiraj April 5, 2017

specific file? server.xml

 

Matt Snow April 5, 2017

I am experiencing the exact same problem after upgrading from Confluence 5.6 to 6.0.4. Please add your voice to [this issue|https://jira.atlassian.com/browse/CONFSERVER-45966] to nudge Atlassian to fix what is a clear regression.

josh
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.
April 5, 2017

I had this problem with double encoding URLs after I converted JIRA to HTTPS (using an apache proxy). If you're doing the same, rather than using the tomcat configuration for SSL, it's in the apache config file. On my RHEL system this is /etc/httpd/conf.d/ssl.conf

I fixed it by adding the 'nocanon' keyword to my 'ProxyPass' directive, similar to what is suggested here: https://confluence.atlassian.com/jirakb/no-confluence-page-found-with-the-given-url-when-linking-a-confluence-page-in-jira-426118083.html

If you're not using a proxy, this may not apply.

0 votes
RSGuse May 10, 2019

Workaround:

Rather than creating a link with the drop-down, paste the URL directly in, save, then edit and go in and change the name.

It looks like the "create link" method is doing the translation and pasting it in directly does not.

0 votes
Fred Bunting August 14, 2017

This was reported as a bug in Confluence 6.0 (CONFSERVER-45966) and Confluence 6.1 (CONFSERVER-52420) and is resolved in Confluence 6.2.

Both of those tickets list workarounds.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events