[
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)