Felix OBR treats optional services as mandatory services ('optional' attribute 
with the value of 'true' was ignored)
--------------------------------------------------------------------------------------------------------------------

                 Key: FELIX-2601
                 URL: https://issues.apache.org/jira/browse/FELIX-2601
             Project: Felix
          Issue Type: Bug
          Components: Bundle Repository (OBR)
    Affects Versions: bundlerepository-1.6.4
            Reporter: Emily Jiang


Felix OBR treats optional service as mandatory service ('optional' attribute 
with the value of 'true' was ignored)'.  The snippet of my repository is shown 
below.

<require extend="false" 
filter="(&amp;(service=service)(objectClass=a.service.BlogCommentService)(mandatory:&lt;*service))"
 multiple="false" name="service" optional="true">Requires service with 
attributes {service=service, objectClass=a.service.BlogCommentService}</require>

When the service of a.service.BlogCommentService is absent, I get resolver 
exception stating 'unable to get the depended service 
a.service.BlogCommentService'. It suggests that the optional attribute is 
interpreted as manadatory or ignored.

Please let me know if you need more information.

Regards
Emily

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to