JAXP doesn't implement SAX entityResolver2 properly

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: xml

      Our RI cleverly uses the same scanner for StAX and SAX parsing. Unfortunately, when the EntityManager calls resolveEntityAsPerStax:

              if (external) {
                  Entity.ExternalEntity externalEntity = (Entity.ExternalEntity)entity;
                  staxInputSource = resolveEntityAsPerStax(externalEntity.entityLocation);
                  /** xxx: Waiting from the EG
                   * //simply return if there was entity resolver registered and application
                   * //returns either XMLStreamReader or XMLEventReader.
                   * if(staxInputSource.hasXMLStreamOrXMLEventReader()) return ;
                   */
                  xmlInputSource = staxInputSource.getXMLInputSource() ;
              }

      in the case where the resolver is in fact a SAX EntityResolver2 interface, it has no way of determining the entity name (because all that was passed in was the location). That means it can't construct the correct call to resolveEntity for SAX.

            Assignee:
            Norman Walsh (Inactive)
            Reporter:
            Norman Walsh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: