[ 
https://issues.apache.org/jira/browse/SLING-13276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Roy Teeuwen resolved SLING-13276.
---------------------------------
    Resolution: Fixed

Backported to the 1.x branch via PR #220 (commit 
36e64d46d785a1bc967afec91c784a19e96885aa).

> Backport to 1.x - Prevent creating resources with a name only consisting of 
> dots
> --------------------------------------------------------------------------------
>
>                 Key: SLING-13276
>                 URL: https://issues.apache.org/jira/browse/SLING-13276
>             Project: Sling
>          Issue Type: Improvement
>          Components: ResourceResolver
>            Reporter: Roy Teeuwen
>            Priority: Major
>             Fix For: Resource Resolver 1.12.16
>
>
> Backport of SLING-12806 to the 1.x maintenance branch.
> The change was applied to master (commit 
> 5ca4985198b23e092f66a928c5ceece5c4889ef6) and released in Resource Resolver 
> 2.0.0, but was never backported, so the 1.x line still lacks it.
> h3. Original description (SLING-12806)
> {quote}
> As "." and ".." are used as path specifier in 
> {{ResourceResolver.getResource(...)}} creating resources with a name only 
> consisting of dots should be prevented in 
> https://github.com/apache/sling-org-apache-sling-resourceresolver/blob/9d6a2680668963972376b05c7f731d5908af6407/src/main/java/org/apache/sling/resourceresolver/impl/ResourceResolverImpl.java#L1049
>  (similar to what is done already for names containing {{/}})
> {quote}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to