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

Karl Pauls commented on FELIX-5068:
-----------------------------------

I'm not sure I understand what your problem is concretely. Can you maybe add a 
bit more detail? For example, what "file" are we talking about - maybe the 
Bundle Permissions file (a.k.a. local permissions)?

Right now, I understand it as follows: If a bundle has local permissions with 
two permission objects given for the same service (one with "get" and one with 
"register") then, as a result, we only use the one given last. You argue that 
we should be smart and treat them as a single "get,register". 

Assuming that is correct, I would agree that this makes some sense - however, I 
don't think it is a bug as such (more like a nice to have feature request). You 
should be able to just give a single permission with "get,register" yourself 
inside your bundle local permissions instead of two separate one, no?



> 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