Raise exception when a Designate's OCDREF points to non-existing OCD
--------------------------------------------------------------------

                 Key: FELIX-3464
                 URL: https://issues.apache.org/jira/browse/FELIX-3464
             Project: Felix
          Issue Type: Bug
          Components: Metatype Service
    Affects Versions: metatype-1.0.4
            Reporter: Alexandre Castro Alves


Currently, if a Designate's OCDREF references to a non-existing OCD, the MTI 
implementation simply ignores it.
The result of this behavior is that the following code returns null both when 
(1) the designate ID is not defined in the meta-data, (2) the designate points 
to an invalid OCD:

ObjectClassDefinition objClassDef = 
            metaTypeInformation.getObjectClassDefinition(designateId, locale);

It is my understanding from the spec that the latter situation should be 
treated as an exception.

Thanks

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to