[ 
https://issues.apache.org/jira/browse/FELIX-3471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13261062#comment-13261062
 ] 

Felix Meschberger commented on FELIX-3471:
------------------------------------------

Actually the metadata is not read when the bundle is loaded but when the data 
is actually accessed, which may in-fact never be the
case or very late in the lifecycle of the bundle.

I fear this puts quite a heavy load on the system just to catch issues, which 
might also be caught at build time.

If it is for "design-time" errors, these should IMHO be caught during building 
.. just like Java errors are caught during compilation.

Finally, the schema is relatively lax in that it allows for any attributes and 
any elements to be added anywhere in addition to the defined ones. The defined 
ones are validated once the files are loaded.
                
> Support Schema validation for MetaData XML documents
> ----------------------------------------------------
>
>                 Key: FELIX-3471
>                 URL: https://issues.apache.org/jira/browse/FELIX-3471
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.4
>            Reporter: Alexandre Castro Alves
>
> MetaData XML documents are not being W3C Schema-validated.
> Provide option for doing so.
> Thanks
> Alex

--
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