You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2017/12/19 14:32:00 UTC

[jira] [Commented] (KARAF-5511) Proper Provide-Capability for org.apache.karaf.jaas.modules.EncryptionService

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

ASF subversion and git services commented on KARAF-5511:
--------------------------------------------------------

Commit 05b7110a9cf8013320431888327667542eb03579 in karaf's branch refs/heads/master from [~gnt]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=05b7110 ]

[KARAF-5511] Proper Provide-Capability for org.apache.karaf.jaas.modules.EncryptionService


> Proper Provide-Capability for org.apache.karaf.jaas.modules.EncryptionService
> -----------------------------------------------------------------------------
>
>                 Key: KARAF-5511
>                 URL: https://issues.apache.org/jira/browse/KARAF-5511
>             Project: Karaf
>          Issue Type: Improvement
>    Affects Versions: 4.0.10
>            Reporter: Martin Lichtin
>            Assignee: Guillaume Nodet
>            Priority: Minor
>             Fix For: 4.0.11, 4.2.0, 4.1.5
>
>
> I'd like to use the "org.apache.karaf.jaas.modules.EncryptionService" via Blueprint as follows:
> {noformat}
>   <reference id="encryptionService" interface="org.apache.karaf.jaas.modules.EncryptionService" filter="(name=basic)" />
> {noformat}
> But Karaf complains at startup:
> {noformat}
> org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; [...]
>    osgi.service; effective:=active; filter:="(&(objectClass=org.apache.karaf.jaas.modules.EncryptionService)(name=basic))"]]
> {noformat}
> Using the filter "name=basic" seems to be the problem. However I want to use the 'basic' encryption in this case, so need to set the filter.
> The service is exported twice, by two different bundles (one as 'basic', one as 'jasypt'):
> {noformat}
> [org.apache.karaf.jaas.modules.EncryptionService]
> -------------------------------------------------
>  name = basic
>  service.bundleid = 35
>  service.id = 81
>  service.ranking = -1
>  service.scope = singleton
> Provided by :
>  Apache Karaf :: JAAS :: Modules (35)
> [org.apache.karaf.jaas.modules.EncryptionService]
> -------------------------------------------------
>  name = jasypt
>  service.bundleid = 265
>  service.id = 123
>  service.scope = singleton
> Provided by :
>  Apache Karaf :: JAAS :: Jasypt Encryption (265)
> {noformat}
> Could the JAAS :: Modules be exporting the service (via provide-capability) with the 'name' property?
> Currently in the MANIFEST it is only saying:
> {noformat}
> Provide-Capability: osgi.service;effective:=active;objectClass="org.ap
>  ache.karaf.jaas.config.JaasRealm",osgi.service;effective:=active;obje
>  ctClass="org.apache.karaf.jaas.modules.BackingEngineFactory",osgi.ser
>  vice;effective:=active;objectClass="org.apache.karaf.jaas.modules.Enc
>  ryptionService"
> {noformat}



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