You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Felix Meschberger (JIRA)" <ji...@apache.org> on 2011/08/29 09:09:43 UTC
[jira] [Resolved] (FELIX-3089) A component without
ServicePermissions cannot be registered as a service
[ https://issues.apache.org/jira/browse/FELIX-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Meschberger resolved FELIX-3089.
--------------------------------------
Resolution: Fixed
Fix Version/s: scr-1.6.2
Fixed in Rev. 1162659 by accepting an optional reference to which no permission is granted as satisifed
> A component without ServicePermissions cannot be registered as a service
> ------------------------------------------------------------------------
>
> Key: FELIX-3089
> URL: https://issues.apache.org/jira/browse/FELIX-3089
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-1.6.0
> Reporter: Yasuhiro Kawame
> Assignee: Felix Meschberger
> Fix For: scr-1.6.2
>
>
> Given the following Component XML
> <?xml version="1.0" encoding="UTF-8"?>
> <scr:component immediate="true" xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0">
> <implementation class="BindingImpl" />
> <reference
> bind="bind"
> unbind="unbind"
> policy="dynamic"
> cardinality="0..1"
> interface="ServiceProvider"
> />
> <service>
> <provide interface="Binding" />
> </service>
> </scr:component>
> When this component's bundle does not have ServicePermission[ServiceProvider , GET], Binding is not registered as a service.
> But I think that Binding can be registered.
> Because the component's reference specifies optional cardinality.
> (see OSGi Compendium R4.2
> 112.3.2 Reference Cardinality, 112.9.1 Service Permissions)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira