[ 
https://issues.apache.org/jira/browse/SLING-7321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16300292#comment-16300292
 ] 

ASF GitHub Bot commented on SLING-7321:
---------------------------------------

santiagozky commented on a change in pull request #3: SLING-7321 
ChildResourceViaProvider support wrapping request
URL: 
https://github.com/apache/sling-org-apache-sling-models-impl/pull/3#discussion_r158329811
 
 

 ##########
 File path: 
src/test/java/org/apache/sling/models/impl/via/ChildResourceViaProviderTest.java
 ##########
 @@ -0,0 +1,63 @@
+package org.apache.sling.models.impl.via;
 
 Review comment:
   done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> ChildResourceViaProvider should be able to deal with SlingHttpServletRequest
> ----------------------------------------------------------------------------
>
>                 Key: SLING-7321
>                 URL: https://issues.apache.org/jira/browse/SLING-7321
>             Project: Sling
>          Issue Type: Improvement
>          Components: Extensions
>    Affects Versions: Sling Models Impl 1.4.6
>            Reporter: Santiago GarcĂ­a Pimentel
>            Priority: Minor
>             Fix For: Sling Models Impl 1.4.8
>
>
> The ForcedResourceType and ResourceSuperType are able to deal with Sling 
> requests by creating a wrapper request that returns a wrapped Request.
> Still, the ChildResourceViaProvider does not offer such possibility. I think 
> that for sake of consistency it should.
> I propose that if the adaptable is a SlingHttpServletRequest the 
> ChildResourceViaProvider  should create a request wrapper that returns the 
> child as given in 'value'



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to