You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2017/07/17 05:11:01 UTC

[jira] [Commented] (OAK-6450) Stop relying on the service.pid property in SecurityProviderRegistration

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

Chetan Mehrotra commented on OAK-6450:
--------------------------------------

bq. Use the comoponent.name component property if the service.pid is not available. The SecurityProviderRegistration property name is unchanged, for backwards compatibility reasons.

Not sure if component.name would be stable and can be relied upon. See [this comment|https://issues.apache.org/jira/browse/SLING-6578?focusedCommentId=15889812&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15889812] and also the same bug for some discussion. 

Hence I recommended to go for some logical service property name like oak.security.name. 

> Stop relying on the service.pid property in SecurityProviderRegistration
> ------------------------------------------------------------------------
>
>                 Key: OAK-6450
>                 URL: https://issues.apache.org/jira/browse/OAK-6450
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: security
>            Reporter: Robert Munteanu
>            Assignee: Robert Munteanu
>             Fix For: 1.8, 1.7.4
>
>         Attachments: 0001-OAK-6450-Stop-relying-on-the-service.pid-property-in.patch
>
>
> As discussed in OAK-6111, we should stop relying on the {{service.pid}} OSGi property for tracking required services as it was incorrectly set so far by the {{maven-scr-plugin}}.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)