You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "royteeuwen (via GitHub)" <gi...@apache.org> on 2026/07/29 05:43:50 UTC

[PR] SLING-13276: Prevent creating a resource with a name only consisting out of dots (backport to 1.x) [sling-org-apache-sling-resourceresolver]

royteeuwen opened a new pull request, #220:
URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/220

   Backport of [SLING-12806](https://issues.apache.org/jira/browse/SLING-12806) to the 1.x maintenance branch, tracked as [SLING-13276](https://issues.apache.org/jira/browse/SLING-13276).
   
   Rejects `ResourceResolver.create(...)` calls whose name consists only of dots, since `.` and `..` are path specifiers in `getResource(...)`. This mirrors the existing guard for names containing `/`, whose message is also reworded from "should not" to "must not" for consistency.
   
   Cherry-picked from master commit `5ca4985`, released in Resource Resolver 2.0.0. It was never backported.
   
   ### Verification
   
   `mvn clean verify` on this branch: BUILD SUCCESS, 644 tests, 0 failures (extends the existing `create` validation test).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] SLING-13276: Prevent creating a resource with a name only consisting out of dots (backport to 1.x) [sling-org-apache-sling-resourceresolver]

Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #220:
URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/220#issuecomment-5113743122

   ## [![Quality Gate Passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/qg-passed-20px.png 'Quality Gate Passed')](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220) **Quality Gate passed**  
   Issues  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 New issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/accepted-16px.png '') [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220&issueStatuses=ACCEPTED)
   
   Measures  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [100.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220&metric=new_coverage&view=list)  
   ![](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/passed-16px.png '') [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220&metric=new_duplicated_lines_density&view=list)  
     
   <!-- sqra-placement-anchor -->
   [See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_sling-org-apache-sling-resourceresolver&pullRequest=220)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] SLING-13276: Prevent creating a resource with a name only consisting out of dots (backport to 1.x) [sling-org-apache-sling-resourceresolver]

Posted by "royteeuwen (via GitHub)" <gi...@apache.org>.
royteeuwen merged PR #220:
URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/220


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org