Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Resource Resolver 1.7.0
-
None
Description
After the bug fix for SLING-9620, the behavior for ResourceMapper.getAllMappings() was changed such that the mappings list remains empty if the resourcePath provided is an empty string. Prior to this bug fix, the mappings list contained a single entry for empty path.
Since mappings list is empty, ResourceMapper.getMapping() returns null. The javadoc of ResourceMapper.getMapping() API mentions that it will return a non null value if the resourcepath is not null.
We need to decide on the expected behavior here. If mappings list should not be updated in case of empty resourcePath then the API annotation will have to be changed and it can potentially be a backwards incompatible issue in theory as the consumers of the API may not have added a null check to the return value.
Attachments
Issue Links
- is related to
-
SLING-9620 ResourceMapperImpl.getAllMappings does not respect multi-valued sling:alias
- Closed
-
SLING-11511 Allow checking the map/resolve result for an empty path
- Open
-
SLING-11513 Allow impersonating an user when checking the result of a map/resolve call
- Open