ClassLoaderResourceLoader.findResource can create a path with double forward 
slash "//"
---------------------------------------------------------------------------------------

                 Key: TRINIDAD-855
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-855
             Project: MyFaces Trinidad
          Issue Type: Bug
            Reporter: Gary Kind
            Priority: Trivial
         Attachments: trunk.patch

private method _getResourcePrefix() takes a String representing the root 
package of the resource and replaces all '.' with '/'.  If the rootPackage 
String ends with a dot, e.g. "root.", _getResourcePrefix will return "root/" 
which becomes the private String _resourcePrefix.   The method findResource() 
does not check for this ending forward slash and simply prepends it to the 
path.  In fact, if path does not start with a '/', a '/' is prepended before 
_resourcePrefix is prepended.  Either way, the resulting path can contain 2 
forward slashes in a row.  While this does not result in any problems, the 
patch corrects this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to