You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/10/01 11:18:34 UTC

[jira] [Resolved] (KARAF-3248) bundle:refresh doesn't work without argument

     [ https://issues.apache.org/jira/browse/KARAF-3248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré resolved KARAF-3248.
-----------------------------------------
    Resolution: Fixed

> 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
>
>
> 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)