Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-733

Unnecessary systemId resolving

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • None
    • None
    • Non-Validating Parser
    • None
    • Operating System: All
      Platform: All
    • 14942

    Description

      File: \xercesc\internal\XMLScanner.cpp
      Line: 2517
      --------------------------------------
      I found this bug when set flag to reuse the grammar and unexpectedly (for me)
      was called in resolveEntity() method, asking to resolve (in my case download
      the data from database ) systemId again.

      Proposed patch is the following
      -----------------------
      old:

      InputSource* sysIdSrc = resolveSystemId(sysId);
      Janitor<InputSource> janSysIdSrc(sysIdSrc);
      Grammar* grammar = fGrammarResolver->getGrammar(sysIdSrc->getSystemId());
      -----------------------
      new

      Grammar* grammar = fGrammarResolver->getGrammar(sysId);
      -----------------------

      Attachments

        Activity

          People

            Unassigned Unassigned
            peterv@ti.com.od.ua Peter A. Volchek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: