You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Valentin Valchev (JIRA)" <ji...@apache.org> on 2012/05/29 10:04:22 UTC

[jira] [Assigned] (FELIX-3503) The obr page in the webconsole does not update on refresh

     [ https://issues.apache.org/jira/browse/FELIX-3503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Valentin Valchev reassigned FELIX-3503:
---------------------------------------

    Assignee: Valentin Valchev
    
> The obr page in the webconsole does not update on refresh
> ---------------------------------------------------------
>
>                 Key: FELIX-3503
>                 URL: https://issues.apache.org/jira/browse/FELIX-3503
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-3.1.8
>         Environment: 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
>            Reporter: Igor Passchier
>            Assignee: Valentin Valchev
>              Labels: obr, ui
>         Attachments: FELIX-3503.patch
>
>
> 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) {
> +        	for (var par in data) {
> +        		obrData[par]=data[par];
> +        	};
> +        	renderData();
> +        	}, 'json');
>      }
>  }
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira