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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
