[ https://issues.apache.org/jira/browse/SLING-10207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Pauls closed SLING-10207. ------------------------------ > 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 > Assignee: Konrad Windszus > Priority: Major > Fix For: Content-Package to Feature Model Converter 1.1.0 > > > 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 > because the pattern being registered in > https://github.com/apache/sling-org-apache-sling-feature-cpconverter/blob/acf8c533590b9a081d64ca8e4787bed600f36386/src/main/java/org/apache/sling/feature/cpconverter/ContentPackage2FeatureModelConverter.java#L425 > does not start with the {{jcr_root}} prefix. > CND patterns in package are matched against absolute repository paths while > patterns for {{AbstractRegexEntryHandler}} are matched against the ZIP > package file path. -- This message was sent by Atlassian Jira (v8.3.4#803005)