[ https://issues.apache.org/jira/browse/TRINIDAD-855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Weßendorf resolved TRINIDAD-855. ----------------------------------------- Resolution: Fixed Fix Version/s: 1.2.9-core 1.0.9-core Thanks to Gary for the patch > 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 > Assignee: Matthias Weßendorf > Priority: Trivial > Fix For: 1.0.9-core, 1.2.9-core > > 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.