You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@manifoldcf.apache.org by "Karl Wright (JIRA)" <ji...@apache.org> on 2011/08/16 23:24:27 UTC
[jira] [Updated] (CONNECTORS-157) Some relative paths without
leading / do not resolve properly
[ https://issues.apache.org/jira/browse/CONNECTORS-157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Wright updated CONNECTORS-157:
-----------------------------------
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.
was: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". This is apparently a bug, but we need to find a way to work around it properly.
Summary: Some relative paths without leading / do not resolve properly (was: Root-relative paths without leading / do not resolve properly)
> Some relative paths without leading / do not resolve properly
> -------------------------------------------------------------
>
> Key: CONNECTORS-157
> URL: https://issues.apache.org/jira/browse/CONNECTORS-157
> Project: ManifoldCF
> Issue Type: Bug
> Components: Web connector
> Affects Versions: ManifoldCF 0.1
> Reporter: Karl Wright
> Assignee: Karl Wright
> Fix For: ManifoldCF 0.2
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira