Valentin Valchev created FELIX-4560:
---------------------------------------
Summary: 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
Environment: j9 v2.4
Reporter: Valentin Valchev
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)