Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-16256

"shortcut links" to a relative URL throw an error...

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • 3.0
    • None

    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:

      1. create a shortcut link that references a relative URL
      2. add a shortcut link to a page
      3. save the page

      Attachments

        Activity

          People

            shaffenden Steve Haffenden (Inactive)
            aatkins TonyA
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: