Karl Pauls created SLING-7156:
---------------------------------

             Summary: SlingTldLocationsCache makes invalid assumptions about 
bundle entry URL's
                 Key: SLING-7156
                 URL: https://issues.apache.org/jira/browse/SLING-7156
             Project: Sling
          Issue Type: Bug
          Components: Scripting
    Affects Versions: Scripting JSP 2.3.2
            Reporter: Karl Pauls
            Assignee: Karl Pauls
             Fix For: Scripting JSP 2.3.4


The SlingTldLocationsCache tracks bundles and scans them for entries using 
bundle.findEntries(). That is fine, however, it assumes that the returned URLs 
will have a path that can be found again using bundle.getEntry(url.getPath()). 
That is not guarantied to work and in this case, unnecessary because it already 
has the url at this point to begin with. 

The fix is simple, just use the URL it already has instead of getting the path 
and using it to get the same url again using bundle.getEntry(). 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to