-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All namespaces not used in node type definitions missing from the export #2
Comments
This is explained in aem-nodetypes/src/main/resources/aem.cnd Line 14 in a201c76
I don't know why the crx namespace is not contained in that dump. @stefanseifert Do you have any idea how to get the full dump? |
I just checked http://localhost:4502/crx/explorer/nodetypes/list.jsp?view=cnf&selection= and also that does not have the crx namespace.... It seems that the CND for some reason always only includes those namespaces which are used in node type definitions, but not those which are just used with property names/node names outside of NT definitions.... That is a shame as CND actually stands for "Compact Namespace and(!) Node Type Definition" (https://jackrabbit.apache.org/jcr/node-type-notation.html) |
it's there if you look at http://localhost:4502/crx/explorer/ui/namespace_editor.jsp?ck=1606407982435&Path=&Callback=reload probably the export contains only namespaces defined by CND files, and not those that are added dynamically during the livetime of a repository? (iirc this happens e.g. when uploading assets, they may contain namespaces not known before) |
The code behind http://localhost:4502/crx/explorer/nodetypes/list.jsp?view=cnf&selection= looks like this
Probably one would need to call http://jackrabbit.apache.org/api/2.20/org/apache/jackrabbit/commons/cnd/CompactNodeTypeDefWriter.html#write-java.util.Collection-org.apache.jackrabbit.commons.cnd.CompactNodeTypeDefWriter.NamespaceMapping-java.io.Writer- instead internally to also include namespaces not bound to a node type definition. I will investigate, whether there is a servlet exposing that. Otherwise I fear I have to come up with my own implementation for doing a full export. |
namespaces defined in bundle headers like
are also not contained in the output of |
Are those used in nodetypes? |
no - but the namespace may by used by properties stored in content packages |
Just to clarify: I do agree that this is a bug and we must export all namespaces, the only question is how to achieve this easily. |
This version: |
looks good!
|
All future versions will be based on the export from https://issues.apache.org/jira/browse/SLING-9945 which contains all namespaces. |
Use export from new WebConsolePlugin containing all namespaces This closes #2
Use export from new WebConsolePlugin containing all namespaces This closes #2
thanks! |
@stefanseifert Would you be able to provide a PR for 6.5.7? |
done, created 2 PRs |
filevault package validation outputs a warning like this
if the package contains an ACL definition with a rule like this:
the
crx
namespace is missing from the cnd files here.a lot of other namespaces are missing as well (e.g. all those that are often used in DAM metadata like
Iptc4xmpCore
. by what process was the list of namespaces defined? manually or in some automatic process?The text was updated successfully, but these errors were encountered: