This conversation has been locked due to inactivity. Please create a new post.
This conversation has been locked due to inactivity. Please create a new post.
This issue is related to nested array in felix console configuraration.
Please find below code:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OsgiConfig"
user.mapping="[com.adobe.granite.oauth.server=oauthservice,
com.test.abc.project=[sling-scripting,serviceuser]]"/>
As we can see in below image the above code configuration ([sling-scripting,serviceuser]) should come in same line, but it is going in next line. After keeping comma(,) always moving the required configuration next line.
Thanks
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
In JSP or HTL, the user always be sling-scripting. Though inside other components, services or servlets, it will be based on your service user mapping configuration.
Views
Replies
Total Likes
Looks like data was entered wrong. To use this service - the syntax should be:
Event64.core:datawrite=data
where:
Views
Replies
Total Likes
Full article -- Creating an Event Listener for Adobe Experience Manager 6.4
Views
Replies
Total Likes
But the issue is something else, after building my above code, I am not able to keep [sling-scripting,serviceuser] in same section as you can find in above image.
[sling-scripting, is going to first section and serviceuser] is going to second question.
After installing bundle comma(,) is moving them in two different line.
Below is expected output after deploying
code
Thanks
Views
Replies
Total Likes
Are you manually entering this line ?
Views
Replies
Total Likes
Why are you using a comma?
You should use on each line the syntax i showed (from the docs)
Event64.core:datawrite=data
More information here - Service Users in AEM
No where does the syntax show use of a comma. Please enter the lines in the Apache Sling Service User Mapper service according to the valid syntax.
From the Docs:
If the above fails, Sling 7 offers a Service User Mapping service, which allows to configure a bundle-to-user mapping and two corresponding API methods: SlingRepository.loginService() and ResourceResolverFactory.getServiceResourceResolver() which return a session/resource resolver with the privileges of a configured user only. These methods have the following characteristics:
Views
Replies
Total Likes
I wanted to assign two different system user to same bundle.
Views
Replies
Total Likes
According to docs - its 1-1. You need two separate lines.
Views
Replies
Total Likes
Are those are the principleNames which you are mentioning ? Can you check the logs if it has logged anything for an invalid entry?
Views
Replies
Total Likes
Yes correct it will be giving resourceReslver with above mentioned characteristics:
I am trying to get resourceResolver on JSP page from testuser. But, it Is returning me sling-scripting user. In above code I have mapped sling-scripting with testuser.
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies