Uploaded image for project: 'ManifoldCF'
  1. ManifoldCF
  2. CONNECTORS-157

Some relative paths without leading / do not resolve properly

    XMLWordPrintableJSON

Details

    Description

      If a document has a URL which is just the domain, e.g. "http://foo.com", the java.net.URI class fails to resolve URLs in that document which have no starting "/", e.g. "document.pdf". The resolved URI has no path part, e.g. "http://foo.comdocument.pdf".

      Another similar case is the following:

      "http://foo.com/bar/xyz.asmx?q=hello"
      ... with a relative URL of "q=there"
      ... produces: "http://foo.com/bar/?q=there", incorrectly losing the last part of the path.

      This is apparently a bug, but we need to find a way to work around it properly.

      Attachments

        Activity

          People

            kwright@metacarta.com Karl Wright
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: