Re: Command ACL multiple scopes

2020-03-12 Thread Jean-Baptiste Onofre
Yeah, it should work. Regards JB > Le 12 mars 2020 à 20:57, Alex Soto a écrit : > > Ok, :) well, how do I write the ACL inside the file? > > database:truncate = admin ? > > > Best regards, > Alex soto > > > > >> On Mar 12, 2020, at 3:51 PM, Jean-Baptiste Onofre >

Re: Command ACL multiple scopes

2020-03-12 Thread Alex Soto
Ok, :) well, how do I write the ACL inside the file? database:truncate = admin ? Best regards, Alex soto > On Mar 12, 2020, at 3:51 PM, Jean-Baptiste Onofre wrote: > > Hi, > > That’s not fully correct: the scope is admin and the command is > database:truncate ;) > > ACL applies per

Re: Command ACL multiple scopes

2020-03-12 Thread Jean-Baptiste Onofre
Hi, That’s not fully correct: the scope is admin and the command is database:truncate ;) ACL applies per scope. Regards JB > Le 12 mars 2020 à 20:19, Alex Soto a écrit : > > Is it possible to specify ACL for Karaf commands that have more than one > scope? > For example, the command > >

Command ACL multiple scopes

2020-03-12 Thread Alex Soto
Is it possible to specify ACL for Karaf commands that have more than one scope? For example, the command admin:database:truncate Scope here is two levels (admin:database) but it is not clear how the ACL file needs to be named. Best regards, Alex soto

Re: Question about @Reference Karaf Command annotation

2020-03-12 Thread Alex Soto
Just to clarify, when I say it does not work, I mean that the injected service is not the correct one matching the filter expression. Best regards, Alex soto > On Mar 12, 2020, at 9:24 AM, Jean-Baptiste Onofre wrote: > > Hi, > > Let me check, but AFAIR, I have a test about that and it

Re: Question about @Reference Karaf Command annotation

2020-03-12 Thread Jean-Baptiste Onofre
Hi, Let me check, but AFAIR, I have a test about that and it seems to work. I will create a Jira to double check. Regards JB > Le 12 mars 2020 à 14:23, Alex Soto a écrit : > > I see, but it is not working for me… > > The PR does not update >

Re: Question about @Reference Karaf Command annotation

2020-03-12 Thread Alex Soto
I see, but it is not working for me… The PR does not update org.apache.karaf.shell.impl.action.command.ManagerImpl#instantiate, shouldn’t this method be updated also to inject the appropriate service when the command is instantiated? (See code fragment I pasted earlier) Best regards, Alex

Re: Question about @Reference Karaf Command annotation

2020-03-12 Thread Jean-Baptiste Onofre
Hi Alex, You can find the change I did about that here: https://github.com/apache/karaf/pull/992 Regards JB > Le 12 mars 2020 à 14:02, Alex Soto a écrit : > > Thanks, JB > > But it doesn’t seem to work for Karaf 4.2.8. > I am not familiar with

Re: Question about @Reference Karaf Command annotation

2020-03-12 Thread Alex Soto
Thanks, JB But it doesn’t seem to work for Karaf 4.2.8. I am not familiar with the internals of Karaf code, but I spotted the following in org.apache.karaf.shell.impl.action.command.ManagerImpl.instantiate of org.apache.karaf.shell.core-4.2.8.jar: Reference ref =

Re: OSGi R7 HTTP static resources and JAXRS whiteboard issue

2020-03-12 Thread Maurice Betzel
Reproducing the same symptoms is not always straightforward. I can remember the loop-back setting from the days I was using it in SOAP / Blueprint setups, but I cannot remember the practical reason from that project. Was it only needed for local host testing... facepalm... -- Sent from: