[ 
https://issues.apache.org/jira/browse/SLING-13265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Sedding updated SLING-13265:
-----------------------------------
    Description: 
Given a request for a path where some parent nodes are not readable and some 
nodes use aliases, the {{ResourceMetadata}} of a resolved resource can be 
incorrect.

E.g. assume the following path
{noformat}
/content/es/solutions/airlines(sling:alias=aerolineas)/products(sling:alias=productos)/wings(sling:alias=alas){noformat}
If one of "/", "/content" or "/content/es" is not readable/visible to the 
{{ResourceResolver}}, e.g. due to permissions, then the resolution of
{noformat}/content/es/solutions/aerolineas/productos/alas.html{noformat}
currently results in
{noformat}
resolutionPath=/es/solutions/aerolineas/productos/alas
resolutionPathInfo=tos/alas.html
{noformat}
the expected result is
{noformat}
resolutionPath=/content/es/solutions/aerolineas/productos/alas
resolutionPathInfo=.html
{noformat}
 

  was:
Given a request for a path where some parent nodes are not readable and some 
nodes use aliases, the {{ResourceMetadata}} of a resolved resource can be 
incorrect.

E.g. assume the following path
{noformat}
/content/es/solutions/airlines(sling:alias=aerolineas)/products(sling:alias=productos)/wings(sling:alias=alas){noformat}
If one of "/", "/content" or "/content/es" is not readable/visible to the 
{{ResourceResolver}}, e.g. due to permissions, then the resolution of
{noformat}/content/es/solutions/aerolineas/productos/alas.html{noformat}
currently results in
{noformat}
resolutionPath=/es/solutions/aerolineas/productos/alas
resolutionPathInfo=tos/alas.html
{noformat}
 


> Wrong ResourceMetadata for alias resolution with unreadable ancestor
> --------------------------------------------------------------------
>
>                 Key: SLING-13265
>                 URL: https://issues.apache.org/jira/browse/SLING-13265
>             Project: Sling
>          Issue Type: Bug
>          Components: ResourceResolver
>    Affects Versions: Resource Resolver 2.0.4
>            Reporter: Julian Sedding
>            Assignee: Julian Sedding
>            Priority: Major
>
> Given a request for a path where some parent nodes are not readable and some 
> nodes use aliases, the {{ResourceMetadata}} of a resolved resource can be 
> incorrect.
> E.g. assume the following path
> {noformat}
> /content/es/solutions/airlines(sling:alias=aerolineas)/products(sling:alias=productos)/wings(sling:alias=alas){noformat}
> If one of "/", "/content" or "/content/es" is not readable/visible to the 
> {{ResourceResolver}}, e.g. due to permissions, then the resolution of
> {noformat}/content/es/solutions/aerolineas/productos/alas.html{noformat}
> currently results in
> {noformat}
> resolutionPath=/es/solutions/aerolineas/productos/alas
> resolutionPathInfo=tos/alas.html
> {noformat}
> the expected result is
> {noformat}
> resolutionPath=/content/es/solutions/aerolineas/productos/alas
> resolutionPathInfo=.html
> {noformat}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to