You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2025/06/28 12:22:00 UTC

[jira] [Closed] (SLING-12806) Prevent creating resources with a name only consisting of dots

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

Carsten Ziegeler closed SLING-12806.
------------------------------------

> 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)