You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Ɓukasz Dywicki <lu...@code-house.org> on 2014/07/03 18:08:05 UTC

Possible leak in HTTPTransportActivator

Hey guys,
I am using HTTPTransportActivator and I have found very odd behavior
related to configuration updates. CXF does not clean up old
configuration just add new entries. This happens very likely when you
override configuration and change matching url. It's easy to imagine
that somebody changes service URL in
org.apache.cxf.http.conduits-something.cfg without changing PID to
different value. Config admin calls updated method and we end up with
two urls - old one and new one.

Solution is very simple - call deleted(pid) method to ensure that old
entries for this PID are removed. I created issue and very silly
bugfix for it: https://github.com/apache/cxf/pull/9.

Cheers,
Lukasz
--
luke@code-house.org
Twitter: ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org