Why confluence link URL get modified with %25 sign? Edited

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

 

2 answers

1 accepted

1 vote
Answer accepted

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

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

It makes link dead on confluence page.

Josh Steckler Community Champion Apr 05, 2017

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

specific file? server.xml

 

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 Steckler Community Champion Apr 05, 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.

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
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

1,208 views 2 13
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you