You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (Jira)" <ji...@apache.org> on 2023/05/06 10:25:00 UTC
[jira] [Resolved] (SLING-11854) ResourceResolver#getResource("") & ResourceResolver(".") should return null
[ https://issues.apache.org/jira/browse/SLING-11854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved SLING-11854.
--------------------------------------
Resolution: Won't Fix
> ResourceResolver#getResource("") & ResourceResolver(".") should return null
> ---------------------------------------------------------------------------
>
> Key: SLING-11854
> URL: https://issues.apache.org/jira/browse/SLING-11854
> Project: Sling
> Issue Type: Improvement
> Components: ResourceResolver
> Affects Versions: Resource Resolver 1.10.0
> Reporter: Henry Kuijpers
> Priority: Critical
> Attachments: screenshot-1.png
>
>
> We noticed that ResourceResolver#getResource is returning unexpected values for "" (empty string) and ".") (dot).
> We would expect null to be returned, however, instead we get an object whose toString is:
> SyntheticResource, type=sling:syntheticResourceProviderResource, path=/apps
> The sling.resolutionPath (in resource metadata) is set to /apps, which is also unexpected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)