Roy Teeuwen created SLING-5065:
----------------------------------

             Summary: ResourceResolver not resolving any resources
                 Key: SLING-5065
                 URL: https://issues.apache.org/jira/browse/SLING-5065
             Project: Sling
          Issue Type: Bug
          Components: ResourceResolver
    Affects Versions: API 2.9.0
            Reporter: Roy Teeuwen


I use following code to get a resource on a vanilla sling launchpad, but the 
resource returned is null. When using the 
getAdmininistrativeResourceResolver(null), everything works fine, but I would 
like a resource resolver bound to the rights of a user.

Code: 

final Credentials creds = new SimpleCredentials("admin","admin".toCharArray());
Session session = session = slingRepository.login(creds); 
Map<String, Object> authenticationInfo = new HashMap<String, Object>();
 authenticationInfo.put(JcrResourceConstants.AUTHENTICATION_INFO_SESSION, 
session);
ResourceResolver resourceResolver = 
resourceResolverFactory.getResourceResolver(authenticationInfo);
Resource resource = resourceResolver.getResource("/");




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to