sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Lietz (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SLING-6772) Provide default mapping for service users
Date Thu, 06 Apr 2017 20:32:42 GMT

     [ https://issues.apache.org/jira/browse/SLING-6772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oliver Lietz updated SLING-6772:
--------------------------------
    Attachment: SLING-6772.karaf.patch
                SLING-6772.repoinit.patch

Yes, we have two issues here:
* repoinit has very limited character support – it does *not* support {{@}} in strings
* {{:}} is an invalid character in JCR (but it gets encoded when creating service/system users
with {{org.apache.jackrabbit.api.security.user.UserManager}})

Attached are two patches, one for repoinit to support {{@}} and one for Sling Karaf to see
what can happen.
# build {{trunk/bundles/extensions/repoinit}} with [^SLING-6772.repoinit.patch]
# build {{trunk/karaf}} ({{mvn clean install -DskipTests=true}}) with [^SLING-6772.karaf.patch]
# start Sling Karaf {{./org.apache.sling.karaf-distribution/target/assembly/bin/start}}
# open http://localhost:8181 and login with {{admin}}:{{admin}}
# open http://localhost:8181/bin/users.html/home/users/system and look at {{serviceuser@org.apache.sling.servlets.resolver:scripts}}

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

Mime
View raw message