Akila Sivakumar created FELIX-5068:
--------------------------------------

             Summary: Issues with consecutive call to ServicePermission with 
different permissions for the same class
                 Key: FELIX-5068
                 URL: https://issues.apache.org/jira/browse/FELIX-5068
             Project: Felix
          Issue Type: Bug
          Components: Conditional Permission Admin
    Affects Versions: framework-4.4.1
            Reporter: Akila Sivakumar


If the same service permission is repeated in the file for the same class, e.g. 
ServicePermission("com.xxx.test.apps.inject.autoactivate.test01.InjectableBean","get")
ServicePermission("com.xxx.test.apps.inject.autoactivate.test01.InjectableBean","register")
 

the only latest permission is used as resulting. So in the mentioned case the 
only "register" permission will be requested for the service class and bundle 
cannot be started with the exception that "get" permission required for bundle 
to start.

A comma-separated list of permissions should be added for service:
ServicePermission("com.xxx.test.apps.inject.autoactivate.test01.InjectableBean","register,get")



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to