Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3503

The obr page in the webconsole does not update on refresh

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • webconsole-3.1.8
    • Web Console
    • 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.

          1. 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');
            }
            }

      Attachments

        1. FELIX-3503.patch
          0.6 kB
          Igor Passchier

        Activity

          People

            v_valchev Valentin Valchev
            passchieri Igor Passchier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: