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

Jean-Baptiste Onofré commented on KARAF-3248:
---------------------------------------------

Fixed on master: 
https://git-wip-us.apache.org/repos/asf?p=karaf.git;a=commitdiff;h=0dcc21ec24273500a432656443da1d8e233ef75a

> bundle:refresh doesn't work without argument
> --------------------------------------------
>
>                 Key: KARAF-3248
>                 URL: https://issues.apache.org/jira/browse/KARAF-3248
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-shell
>    Affects Versions: 3.0.1
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.2, 2.4.1, 2.3.9
>
>
> When using bundle:refresh without argument:
> {code}
> karaf@root()> bundle:refresh
> {code}
> it should refresh all bundles. But actually, it doesn't do anything as the 
> test is not correct (in the case of bundles is null):
> {code}
> wiring.refreshBundles(bundles == null || bundles.isEmpty() ? null : bundles);
> {code}
> It should be:
> {code}
> if (bundles == null || bundles.isEmpty()) {
>   bundles = null;
> }
> wiring.refreshBundles(bundles);
> {code}



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

Reply via email to