Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
webconsole-3.1.8
-
Felix running on Ubuntu Linux 10.04.3 LTS
Java version OpenJDK Runtime Environment (IcedTea6 1.9.13) (6b20-1.9.13-0ubuntu1~10.04.1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)
Browser for webpage: Firefox 12.0 on Windows 7
Description
If the Bundle Repositories are refreshed via the webconsole "OSGi Repository", the repository is refreshed in the felix environment and the new data is send back to the webpage. However, the new data is not displayed in the webpage, as the reply from felix is ignored in the obr.js javascript file.
The patch below will fix this, by inserting the available data from the reply in the obrData internal datastructurre, before updating the UI.
-
-
- Eclipse Workspace Patch 1.0
#P org.apache.felix.webconsole-3.1.8
Index: src/main/resources/res/ui/obr.js
===================================================================
- src/main/resources/res/ui/obr.js (revision 1228192)
+++ src/main/resources/res/ui/obr.js (working copy)
@@ -63,7 +63,12 @@
$.post(pluginRoot, { 'action' : action, 'url' : url - }, renderData, 'json');
+ }, function(data)Unknown macro: {+ for (var par in data) { + obrData[par]=data[par]; + };+ renderData();+ }, 'json');
}
}
- Eclipse Workspace Patch 1.0
-