"Reload" button in webconsole bundles list doesn't work
-------------------------------------------------------

                 Key: FELIX-1415
                 URL: https://issues.apache.org/jira/browse/FELIX-1415
             Project: Felix
          Issue Type: Bug
          Components: Web Console
    Affects Versions: webconsole-1.2.12
            Reporter: Victor Antonovich


Pushing of "Reload" button in webconsole bundles list does nothing. Traffic 
analysis shows that bundles.js script issues request to 
'/system/console/bundles/.json' path with HTTP 404 error response. Patch below 
fixes this bug:

Index: 
src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java
===================================================================
--- src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java 
(revision 798431)
+++ src/main/java/org/apache/felix/webconsole/internal/core/BundlesServlet.java 
(working copy)
@@ -1084,7 +1084,7 @@
             {
                 bundleInfo = info.substring(1);
             }
-            if ( bundleInfo == null )
+            if ( bundleInfo == null || bundleInfo.length() == 0 )
             {
                 bundle = null;
                 bundleRequested = false;


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to