Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3333

[gogo] shell cannot read gosh_profile from UNC File

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • gogo.shell-0.10.0
    • None
    • Gogo Shell
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dax Dimitri Alexeev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: