Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
The import may fail if:
- the XML content uses xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' xsi:type='xs:base64Binary'
- the namespace http://www.w3.org/2001/XMLSchema-instance is not yet registered
- the user does not have permission to write to the namespace registry
Note that this will happen for string properties that contain characters not allowed in XML content.
What happens is that o.a.j.o.jcr.xml/ImportHandler tries to register all namespaces that appear in XML content, even if they are not used for the actual JCR content. Thus fixing this would mean either special-casing "xsi" and "xs", or refactoring the code so that registration only happens when needed.