Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Illegal character in the page title and url prevented page from rendering

Smeng9
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 11, 2018

Our team uses square brackets [] to high light the page title in the Confluence, and the square brackets is also included in the HTTP link of that page. When we choose to open a page through page tree, everything worked fine. However, when we put the HTTP link of the page in the address bar and hit enter, the page doesn't render.

There is an issue in the url parser. When Confluence creates the HTTP link in the address bar when navigating to a new page, it needs to be escaped.

Below is the stack trace

java.lang.IllegalArgumentException: java.net.URISyntaxException: Illegal character in path at index 12: /display/SD/[....................................
    at com.github.kristofa.brave.servlet.ServletHttpServerRequest.getUri(ServletHttpServerRequest.java:27)

caused by: java.net.URISyntaxException: Illegal character in path at index 12: /display/SD/[..................................
    at java.net.URI$Parser.fail(URI.java:2848)

 

 

Another issue. Can someone take a look at the no image displayed issue? There hasn't been a reply for a while. Thank you.

https://community.atlassian.com/t5/Confluence-questions/No-images-Displayed-in-Confluence/qaq-p/859410#M117777

1 answer

0 votes
Nic Brough -Adaptavist-
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.
September 12, 2018

You should stop using invalid characters in the page titles.  Square brackets have to be encoded to be valid in urls, so either train your users to encode them properly in the titles or stop using them.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events