Whats the differnece between getResource() and resolve() methods
When developing we've come across the permissions/dispatcher issue of the getResource() method breaking page.
These forums suggested that we needed to use resolve() method instead of the getResource() method and that does work, but I am more interested in why that works.
I understand that it has to do with not having the appropriate permissions, because you might be trying to get a resource that an anonymous user does not have access to.
But in the end, they both return a Resource.
Can anyone explain the differences between the two methods and why one works with anonymous permissions and one does not. I have read the documentation multiple times, located here, but it doesn't quite make complete sense to me. Just trying to understand the JCR resourceResolver a little better.
Thanks!
