[
https://issues.apache.org/jira/browse/SLING-12806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konrad Windszus resolved SLING-12806.
-------------------------------------
Fix Version/s: Resource Resolver 2.0.0
Resolution: Fixed
Fixed in
https://github.com/apache/sling-org-apache-sling-resourceresolver/commit/5ca4985198b23e092f66a928c5ceece5c4889ef6.
> Prevent creating resources with a name only consisting of dots
> --------------------------------------------------------------
>
> Key: SLING-12806
> URL: https://issues.apache.org/jira/browse/SLING-12806
> Project: Sling
> Issue Type: Improvement
> Components: ResourceResolver
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: Resource Resolver 2.0.0
>
>
> 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 {{/}})
--
This message was sent by Atlassian Jira
(v8.20.10#820010)