felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FELIX-5044) [DS] (felix-extensions) Service property changes during service registration get ignored
Date Fri, 18 Sep 2015 15:27:04 GMT
David Jencks created FELIX-5044:
-----------------------------------

             Summary: [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


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)

Mime
View raw message