Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
-
Platform Sprint 156: Export
Description
There is a bug in the HippoCompactNodeTypeDefReader where it doesn't allow using the empty namespace for named properties or child node definitions.
For example the following will fail to load:
<'myhippoproject'='http://www.onehippo.org/myhippoproject/nt/1.0'> <'nt'='http://www.jcp.org/jcr/nt/1.0'> [myhippoproject:test] > nt:base - foo (string)
with (ultimately) the following exception:
Caused by: javax.jcr.NamespaceException: No URI for prefix '' declared.
at org.apache.jackrabbit.spi.commons.namespace.NamespaceMapping.getURI(NamespaceMapping.java:74)
...
at org.apache.jackrabbit.commons.cnd.CompactNodeTypeDefReader.<init>(CompactNodeTypeDefReader.java:163)
at org.hippoecm.repository.jackrabbit.HippoCompactNodeTypeDefReader.<init>(HippoCompactNodeTypeDefReader.java:41)
The HippoCompactNodeTypeDefReader extends the JR CompactNodeTypeDefReader which can handle and support the empty namespace but for that it requires to be constructed with a NamespaceResolver (which then will resolve the empty namespace for it).
Which we forgot to do, and thus is the bug to fix.
Attachments
Issue Links
- relates to
-
REPO-1670 CND export (from Console) can be incorrect or even invalid for special cases
- Closed