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 2014/07/15 14:07:04 UTC
[jira] [Updated] (FELIX-4560) Unsynchonized access to map can cause
infinite loop in UPnP web console plugin
[ https://issues.apache.org/jira/browse/FELIX-4560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Valentin Valchev updated FELIX-4560:
------------------------------------
Component/s: Web Console
Affects Version/s: webconsole-upnp-plugin-1.0.2
Fix Version/s: webconsole-upnp-plugin-1.0.4
> Unsynchonized access to map can cause infinite loop in UPnP web console plugin
> ------------------------------------------------------------------------------
>
> Key: FELIX-4560
> URL: https://issues.apache.org/jira/browse/FELIX-4560
> Project: Felix
> Issue Type: Bug
> Components: Web Console
> Affects Versions: webconsole-upnp-plugin-1.0.2
> Environment: j9 v2.4
> Reporter: Valentin Valchev
> Fix For: webconsole-upnp-plugin-1.0.4
>
>
> An infinite loop loop while getting/putting elements in a map can occur in ControlServlet.
> It uses unsynchonized maps to cache UPnP devices and icons. It seems that map implementation might cause the infinite loop, if you access an element, that is concurrently being removed.
> In order to prevent that race condition, the access to the cache must be synchronized properly.
> To reproduce the problem do:
> # run upnp and upnp web console plug-in
> # restart upnp bundle
> # click a few times on "Search for UPnP Devices" button in web console
> The problem usually occurs on slower machines.
--
This message was sent by Atlassian JIRA
(v6.2#6252)