This content has been marked as final.
Show 3 replies
-
1. Re: Problem with ./client script after adding users to users.properties
grgrzybek Mar 6, 2017 2:10 AM (in response to przemyslawcyprys)Hello
This is just implementation feature. org.apache.karaf.client.Main class (which is used by bin/client script) is loading users.properties to java.util.Properties object - which is backed by (unsorted) Hashtable. And simply first non-group user is used as the one to be logged with.
It can be simply fixed by using LinkedHashMap, but I imagine it's better to explicitly specify "bin/client -u <user>" option.
regards
Grzegorz Grzybek
-
2. Re: Problem with ./client script after adding users to users.properties
davsclaus Mar 7, 2017 5:07 AM (in response to grgrzybek)Well spotted Grzegorz.
I think maybe its worth logging a KARAF ticket so they can improve this in a future release. Makes sense IMHO to always load those lines in order.
-
3. Re: Problem with ./client script after adding users to users.properties
grgrzybek Mar 7, 2017 6:43 AM (in response to davsclaus)Hell
Good idea - track the issue here: https://issues.apache.org/jira/browse/KARAF-5017.
regards
Grzegorz