[ 
https://issues.apache.org/jira/browse/SLING-7?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530066
 ] 

Carsten Ziegeler commented on SLING-7:
--------------------------------------

In addition all node types of a bundle should be processed in one single step. 
Currently its possible that for example node types defined in one cnd file are 
applied while others defined in another cnd file (in the same bundle) are not 
applied because of some errors. A all-or-nothing approach seems to be a better 
solution.



> Implement better Node Type Management
> -------------------------------------
>
>                 Key: SLING-7
>                 URL: https://issues.apache.org/jira/browse/SLING-7
>             Project: Sling
>          Issue Type: Improvement
>          Components: Content
>            Reporter: Felix Meschberger
>
> Currently, nodes types are registered through the JackrabbitNodeTypeManager. 
> This node type manager just reads the CNS file and tries to register the node 
> types. Finally the registration succeeds or fails with an IOException or a 
> RepositoryException.
> This prevents fine grained control of node type registration:
>    > Handling node type updates
>    > Handling missing required node types
>    > Other problems
> The Content bundle should be extended to implement this management:
>    > Read the CND file
>    > Check node type dependencies
>    > Check existing node types:
>         > Ignore removed properties
>         > Try other updates
>    > Provide informative logging on failures

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