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/09/24 21:23:33 UTC
[jira] [Created] (KARAF-3248) bundle:refresh doesn't work without
argument
Jean-Baptiste Onofré created KARAF-3248:
-------------------------------------------
Summary: 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)