Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4921678

sun.net.www.ParseUtil should use getCanonicalPath instead of getAbsolutePath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • None
    • generic
    • generic

      The getAbsolutePath method in class File does not check that a path is valid on the system. It simply appends the parent and child parts together. The getCanonicalPath method insures that a path is valid on the system. (This works even if the path doesn't yet exist.) This will result in more reliable URL parsing.

            jccollet Jean-Christophe Collet (Inactive)
            mromanchsunw Michael Romanchuk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: