[gogo] shell cannot read gosh_profile from UNC File
---------------------------------------------------
Key: FELIX-3333
URL: https://issues.apache.org/jira/browse/FELIX-3333
Project: Felix
Issue Type: Bug
Components: Gogo Shell
Affects Versions: gogo.shell-0.10.0
Environment: Windows XP
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode)
Reporter: Dimitri Alexeev
Shell#gosh(CommandSession,String[]) computes the target gosh_profile by using
the java.net.URI#resolve(String) Method:
baseURI.resolve("etc/gosh_profile")
this leads to the subsequent call of java.net.URI#normalize:
at Shell.gosh(CommandSession, String[]) line: 102
at URI.resolve(String) line: 1028
at URI.resolve(URI) line: 1007
at URI.resolve(URI, URI) line: 2047
at URI.resolvePath(String, String, boolean) line: 1990
at URI.normalize(String) line: 2387
The method java.net.URI#normalize alters the representation of a URI by
collapsing empty segments. This "destroys" UNC paths by converting them to
standard file system paths. This method should be avoided when dealing with any
URI that may contain a UNC path. For more details see Sun bug 4723726.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira