You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2025/05/28 10:27:00 UTC
[jira] [Updated] (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 ]
Konrad Windszus updated SLING-12806:
------------------------------------
Description: 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 {{/}}) (was: As "." and ".." are used as path specifier in ResourceResolver.getResource(...) creating resources with 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 {{/}}))
> 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
>
> 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)