MyFaces Core
  1. MyFaces Core
  2. MYFACES-2941

Facelets classpath does not always properly decode filesystem paths

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0, 2.0.1, 2.0.2
    • Fix Version/s: 2.0.3
    • Component/s: None
    • Labels:
      None

      Description

      The current implementation of _getAlternativeJarFile(URL url) in org.apache.myfaces.view.facelets.Classpath does not currently decode the filesystem path to remove escaped white-space prior to calling the JarFile constructor. This can cause FileNotFoundExceptions on Windows if the jar's path is under a directory like "Program Files" or "Documents and Settings".

      Planning to re-use the decodeUrl method from the commons-io FileUtils class to make sure that this is handled properly. Initial testing looks good.

        Activity

        Michael Concini created issue -
        Michael Concini made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.0.3-SNAPSHOT [ 12315349 ]
        Resolution Fixed [ 1 ]
        Leonardo Uribe made changes -
        Fix Version/s 2.0.3 [ 12315976 ]
        Fix Version/s 2.0.3-SNAPSHOT [ 12315349 ]
        Leonardo Uribe made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael Concini
            Reporter:
            Michael Concini
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development