felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3648) A component declared with DS 1.0 or DS 1.1 namespace must fail validation if Reference.updated attribute is declared
Date Mon, 03 Sep 2012 03:02:07 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved FELIX-3648.
--------------------------------------

    Resolution: Fixed

Fixed in Rev. 1380117.

Now, validation fails if a declaration namespaced with DS 1.0 or DS 1.1 declares the updated
attribute on the Reference element.

Previously we only logged a WARN level message and ignored the attribute. To be spec compliant
the attribute must not be present and thus validation must fail.

While this may theoretically break existing components, which previously worked, I think it
is better to be specification compliant. Particularly since the updated attribute was ignored
before and had no value anyway and thus would probably not be declared any way.
                
> A component declared with DS 1.0 or DS 1.1 namespace must fail validation if Reference.updated
attribute is declared
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-3648
>                 URL: https://issues.apache.org/jira/browse/FELIX-3648
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services (SCR), Specification compliance
>    Affects Versions:  scr-1.6.0
>            Reporter: Felix Meschberger
>            Assignee: Felix Meschberger
>             Fix For: scr-1.6.2
>
>
> DS 1.2 introduces the updated attribute to the service reference to call a method if
a bound service has been updated. The specification mandates to fail descriptor validation
if the updated method is declared on a DS 1.0 or DS 1.1 descriptor.
> The implementation currently just logs a warn level message and otherwise accepts the
declaration. This must be modified to fail validation.
> NB: A component declared for DS 1.1-felix also accepts the updated declaration since
we introduced that functionality with FELIX-1893.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message