You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2018/12/21 16:47:00 UTC
[jira] [Updated] (SLING-8193) Hint to ServiceUserMapped when login
with a service user fails
[ https://issues.apache.org/jira/browse/SLING-8193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider updated SLING-8193:
---------------------------------------
Description:
When logging in with:
{code:java}
resolverFactory.getServiceResourceResolver(null)){code}
We sometimes get the exception below:
{code:java}
Caused by: org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.adobe.... [581] and sub service null
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.6.8]
at com.adobe.....LocalStore.createParent(LocalStore.java:105) [com.adobe....:...]
... 46 common frames omitted{code}
The service user mapping is created using a content package definition but it is not ready when the code is executed. Karl help me that I need a @Reference ServiceUserMapped but it was not obvious how to fix this.
How about mentioning ServiceUserMapped and the possible timing issue in the error message?
was:
When logging in with:
{code:java}
resolverFactory.getServiceResourceResolver(null)){code}
We sometimes get the exception below:
{code:java}
Caused by: org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.adobe.... [581] and sub service null
at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.6.8]
at com.adobe.....LocalStore.createParent(LocalStore.java:105) [com.adobe....:...]
... 46 common frames omitted{code}
The service user mapping is created using a content package definition but it is not ready when the code is executed. Karl help me that I need a @Reference ServiceUserMapped but it was not obvious how to fix this.
How about mentioning ServiceUserMapped in the error message?
> Hint to ServiceUserMapped when login with a service user fails
> --------------------------------------------------------------
>
> Key: SLING-8193
> URL: https://issues.apache.org/jira/browse/SLING-8193
> Project: Sling
> Issue Type: Improvement
> Reporter: Christian Schneider
> Priority: Major
>
> When logging in with:
> {code:java}
> resolverFactory.getServiceResourceResolver(null)){code}
> We sometimes get the exception below:
> {code:java}
> Caused by: org.apache.sling.api.resource.LoginException: Cannot derive user name for bundle com.adobe.... [581] and sub service null
> at org.apache.sling.resourceresolver.impl.ResourceResolverFactoryImpl.getServiceResourceResolver(ResourceResolverFactoryImpl.java:79) [org.apache.sling.resourceresolver:1.6.8]
> at com.adobe.....LocalStore.createParent(LocalStore.java:105) [com.adobe....:...]
> ... 46 common frames omitted{code}
> The service user mapping is created using a content package definition but it is not ready when the code is executed. Karl help me that I need a @Reference ServiceUserMapped but it was not obvious how to fix this.
> How about mentioning ServiceUserMapped and the possible timing issue in the error message?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)