Best Practice - In Servlet should I only fetch the resource resolver from Request ?
Hi all,
I would appreciate your valuable input on this. As mentioned in https://stackoverflow.com/a/45232236, I believe that there is no harm in using a `resourceResolver` from the request in a servlet. However, I personally lean towards using the `ResourceResolver` from the service user rather than the request object as I believe it is more secure in the way we have control over the ACLs for service user.
With that being said, what is the best practice ? In which scenarios should we prefer the `ResourceResolver` from the service user over the `ResourceResolver` from the request? What are the best practices and what are the pros and cons?
Thank you.
Veena
