Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8506

system view import may fail for base64-encoded properties

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: jcr
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reschke Julian Reschke
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: