Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-543

DocViewSAXEventGenerator produces invalid SAX stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.1
    • 1.1
    • xml
    • None

    Description

      ISO9075.encode() is called twice in DocViewSAXEventGenerator.leaving(), which produces invalid endElement events.

      Faulty block of code (note the encode method called twice):

      // encode node name to make sure it's a valid xml name
      name = ISO9075.encode(name);
      // element name
      String elemName;
      if (node.getDepth() == 0)

      { // root node needs a name elemName = jcrRoot; }

      else

      { // encode node name to make sure it's a valid xml name elemName = ISO9075.encode(name); }

      Attachments

        Activity

          People

            stefan@jira Stefan Guggisberg
            jjaksic Jaka Jaksic
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: