As described here: https://issues.apache.org/jira/browse/SLING-2411, we
do not currently have a way of enforcing that ResourceResolver clients invoke
resolve(HttpServletRequest, String) when they are doing a resolve
inside a request
context. The net effect of this is that implementors of ResourceDecorator have
inconsistent results.

I've uploaded a strawman patch to
https://issues.apache.org/jira/browse/SLING-2411 to
illustrate how this might be solved using a ThreadLocal. However, I
personally feel
like we should just go ahead and deprecate this method and I'd like to
call a vote for it.

Please vote:
[ ] +1 - deprecate ResourceDecorator.decorate(Resource, HttpServletRequest)
[ ] 0
[ ] -1 - don't deprecate

Note - if you vote -1, please provide an alternative. It could be the
strawman, it could be
something else, but I'd really like to see this fixed.

Thanks
Justin

Reply via email to