Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
None
-
3.0
-
None
-
1
-
Description
If you create a shortcut link to a relative URL (as you might do if you had Confluence and JIRA installed on the same instance of tomcat), errors like the following are thrown when saving a page containing a shortcut link:
2009-07-02 11:52:25,316 ERROR [http-8080-2] [atlassian.confluence.util.GeneralUtil] completeUrlEncode Error while trying to encode the URL!
– url: /display/~admin/Home | page: 131076 | userName: admin | referer: http://localhost:8080/pages/editpage.action?pageId=131076 | action: vie\
wpage
java.net.MalformedURLException: no protocol: /admin/browseshortcuts.action
at java.net.URL.<init>(URL.java:567)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at com.atlassian.confluence.util.CompleteURLEncoder.encode(CompleteURLEncoder.java:27)
at com.atlassian.confluence.util.GeneralUtil.completeUrlEncode(GeneralUtil.java:385)
at com.atlassian.confluence.links.linktypes.ShortcutLink.<init>(ShortcutLink.java:26)
at com.atlassian.confluence.links.ConfluenceLinkResolver.makeShortcutLink(ConfluenceLinkResolver.java:177)
at com.atlassian.confluence.links.ConfluenceLinkResolver.createLink(ConfluenceLinkResolver.java:122)
Please see the attached log file for the full stack trace. The link works as expected, this issue is just regarding the handling of the error.
The steps to reproduce are as follows:
- create a shortcut link that references a relative URL
- add a shortcut link to a page
- save the page