Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
gogo.shell-0.10.0
-
None
-
Windows XP
Java(TM) SE Runtime Environment (build 1.6.0_27-b07)
Java HotSpot(TM) Client VM (build 20.2-b06, mixed mode)
Description
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.