You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2015/09/21 07:19:04 UTC
[jira] [Resolved] (FELIX-5044) [DS] (felix-extensions) Service
property changes during service registration get ignored
[ https://issues.apache.org/jira/browse/FELIX-5044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Jencks resolved FELIX-5044.
---------------------------------
Resolution: Fixed
Fix Version/s: scr-2.0.4
r1704219
> [DS] (felix-extensions) Service property changes during service registration get ignored
> ----------------------------------------------------------------------------------------
>
> Key: FELIX-5044
> URL: https://issues.apache.org/jira/browse/FELIX-5044
> Project: Felix
> Issue Type: Bug
> Components: Declarative Services (SCR)
> Affects Versions: scr-2.0.0
> Reporter: David Jencks
> Assignee: David Jencks
> Fix For: scr-2.0.4
>
>
> felix-extensions allows event and lifecycle methods to return the new service property map. However, there's a timing hole. These changes are only applied when m_serviceRegistration is non-null. Thus any changes that occur between the time the service is registered and m_serviceRegistration is set will be dropped.
> This will occur when service registration results in something calling getService resulting in activation before m_serviceRegistration is recorded and one of the event methods or activation trying to change the service properties.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)