sagarmiglani commented on code in PR #96: URL: https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/96#discussion_r1185850447
########## src/test/java/org/apache/sling/resourceresolver/impl/mapping/ResourceMapperImplTest.java: ########## @@ -397,8 +397,8 @@ public void mapResourceWithVanityPathsURLTargetNoPath() { ExpectedMappings.existingResource("/vain-url-nopath") .singleMapping("/vain-url-nopath") .singleMappingWithRequest("/app/vain-url-nopath") - .allMappings("/vain-url-nopath", "") - .allMappingsWithRequest("/app/vain-url-nopath", "") Review Comment: > I understand you believe the behavior is wrong. You are likely right. But I have zero insight what could break when we change it. IMHO it's safer, not necessarily "better", to work around this in the calling code. I agree with you, but atleast we should improve the API documentation that `getAllMappings` could return "" as well in some cases. (i personally feel blast radius of this should be small and we should correct the behaviour here) cc: @cziegeler @rombert -- 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-unsubscr...@sling.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org