[ 
https://issues.apache.org/jira/browse/SLING-6772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15960309#comment-15960309
 ] 

Carsten Ziegeler commented on SLING-6772:
-----------------------------------------

[~olli] The + sign is not allowed in repo init either, so we would need to add 
that as well. I think it would be good to come up with something which does not 
bind us to a newer version of repoinit, especially as we have no way in the 
service user mapper to define that dependency. (And we don't want to have the 
dependency as Sling can run without repoinit).
Given that and given the list of illegal characters in JCR, I think this leaves 
us with a hyphen, underscore or dot to be used as a separator.
All of them are a little bit problematic as we might clash with something else, 
to be more confident to rule this out we could use two hyphens, like 
org.apache.sling.servlets.resolver--scripts to separate the symbolic name from 
the sub service.
I still think we should use a prefix: so what about 
serviceuser--org.apache.sling.servlets.resolver--scripts 
It does not look like the nicest name, but it's very unlikely that we clash 
with anything that people might already use - and this is just the default 
mapping anyway.


> Provide default mapping for service users
> -----------------------------------------
>
>                 Key: SLING-6772
>                 URL: https://issues.apache.org/jira/browse/SLING-6772
>             Project: Sling
>          Issue Type: Improvement
>          Components: Service User Mapper
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: Service User Mapper 1.3.0
>
>         Attachments: SLING-6772.karaf.patch, SLING-6772.repoinit.patch
>
>
> As discussed in [1] we should aim at making Sling configurationless again. 
> One part which currently always needs configurations is the service user 
> mapper. We should add a default mapping, from a bundle symblic name and sub 
> service to 
> {noformat}
> "serviceuser@" + {bundle.symblicName} + [":" + sub service]
> {noformat}
> [1] 
> https://lists.apache.org/thread.html/6f90d751ddd20d7041475ba5d5fc89beda1906048ff91cc2f564e63e@%3Cdev.sling.apache.org%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to