Resource Resolver is returning no resource sometimes
we have resource resolver and that is getting resource from JCR using service user mapper(have created one service user with read access to resource).
Problem is sometimes the resource resolver gives null results for fetching resource from jcr even if we have resource at the location and even access also exit...
this is happening in local and all other environments... this happens frequently...sometimes it picks the resource.
here is a code.
try (final ResourceResolver resolver = ContentFragmentUtils.getResourceResolver(this.resourceResolverFactory,
TotalRewardsConstants.USER_FOR_SERVICE)) {
final Resource resourceMasterCf = resolver.getResource(path); --> here path is referring to the CF path in jcr.
resolver.getResource(path); --> here im having null even if we have resolver object.
