You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/03/16 14:52:00 UTC

[jira] [Commented] (SLING-10207) NodeTypesEntryHandler does not consider CND files outside of META-INF/vault/nodetypes.cnd

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

Konrad Windszus commented on SLING-10207:
-----------------------------------------

This actually not true, as custom NodeTypesEntryHandlers are registered on demand at https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/acf8c533590b9a081d64ca8e4787bed600f36386/src/main/java/org/apache/sling/feature/cpconverter/ContentPackage2FeatureModelConverter.java#L425.

> NodeTypesEntryHandler does not consider CND files outside of META-INF/vault/nodetypes.cnd
> -----------------------------------------------------------------------------------------
>
>                 Key: SLING-10207
>                 URL: https://issues.apache.org/jira/browse/SLING-10207
>             Project: Sling
>          Issue Type: Bug
>          Components: Content-Package to Feature Model Converter
>            Reporter: Konrad Windszus
>            Priority: Major
>
> Namespace and node type definitions can not only be given in {{/META-INF/vault/nodetypes.cnd}} but also in other cnd files inside the package (compare with Package property {{cndPattern}}, http://jackrabbit.apache.org/filevault/properties.html).
> Currently only those in {{/META-INF/vault/nodetypes.cnd}} are correctly extracted though: https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/acf8c533590b9a081d64ca8e4787bed600f36386/src/main/java/org/apache/sling/feature/cpconverter/handlers/NodeTypesEntryHandler.java#L32



--
This message was sent by Atlassian Jira
(v8.3.4#803005)