karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré (JIRA) <j...@apache.org>
Subject [jira] [Resolved] (KARAF-3248) bundle:refresh doesn't work without argument
Date Wed, 01 Oct 2014 09:18:34 GMT

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

Mime
View raw message