Ticket #19940: libxml2.diff

File libxml2.diff, 10.5 KB (added by Bruce Dubbs, 10 months ago)
  • TabularUnified parserInternals.c

    diff --git a/parserInternals.c b/parserInternals.c
    index 6c6c82f8118e156679b9704c3d0f21d7d30023a5..be751008c1912edfbb16dc0c6d7059f240389900 100644
    a b xmlCtxtErrIO(xmlParserCtxtPtr ctxt, int code, const char *uri)  
    180180        return;
    181181
    182182    /*
    183      * Don't report a well-formedness error if an external entity could
    184      * not be found. We assume that inputNr is zero for the document
    185      * entity which is somewhat fragile.
     183     * Only report a warning if a file could not be found. This should
     184     * only be done for external entities, but the external entity loader
     185     * of xsltproc can try multiple paths and assumes that ENOENT doesn't
     186     * raise an error and aborts parsing.
    186187     */
    187     if ((ctxt->inputNr > 0) &&
    188         ((code == XML_IO_ENOENT) ||
     188    if (((code == XML_IO_ENOENT) ||
    189189         (code == XML_IO_NETWORK_ATTEMPT) ||
    190190         (code == XML_IO_UNKNOWN))) {
    191191        if (ctxt->validate == 0)
  • TabularUnified python/tests/error.py

    diff --git a/python/tests/error.py b/python/tests/error.py
    index 6c8da9990c5a3a4a2145d465c8c52563968adada..6668b729bfcb5447670da75c686337ae70c08e0a 100755
    a b import libxml2  
    1010# Memory debug specific
    1111libxml2.debugMemory(1)
    1212
    13 expect='--> I/O --> error : --> failed to load "missing.xml": No such file or directory\n'
     13expect='--> I/O --> warning : --> failed to load "missing.xml": No such file or directory\n'
    1414err=""
    1515def callback(ctx, str):
    1616     global err
  • TabularUnified python/tests/input_callback.py

    diff --git a/python/tests/input_callback.py b/python/tests/input_callback.py
    index 35a51695c841b4494378a85c61fbb685e918de8a..b24c5c852d841c3596dfddcc506e1e1b38c94886 100755
    a b run_test(desc="Loading entity without custom callback",  
    9090        docpath=startURL, catalog=None,
    9191        exp_status="not loaded", exp_err=[
    9292            (-1, "I/O "),
    93             (-1, "error : "),
     93            (-1, "warning : "),
    9494            (-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
    9595            ])
    9696
    run_test(desc="Retry loading document after unregistering callback",  
    121121        docpath=startURL, catalog=catURL,
    122122        exp_status="not loaded", exp_err=[
    123123            (-1, "I/O "),
    124             (-1, "error : "),
     124            (-1, "warning : "),
    125125            (-1, "failed to load \"py://strings/xml/sample.xml\": No such file or directory\n")
    126126            ])
    127127
    run_test(desc="Loading using standard i/o after unregistering all callbacks",  
    141141        docpath="tst.xml", catalog=None,
    142142        exp_status="not loaded", exp_err=[
    143143            (-1, "I/O "),
    144             (-1, "error : "),
     144            (-1, "warning : "),
    145145            (-1, "failed to load \"tst.xml\": No such file or directory\n")
    146146            ])
    147147
  • TabularUnified python/tests/tstLastError.py

    diff --git a/python/tests/tstLastError.py b/python/tests/tstLastError.py
    index 35f5eb3d957b3d8fa5ff273c8dc927bc8477e967..a079995011b27c24b01efc718b803f2367d091a6 100755
    a b class TestCase(unittest.TestCase):  
    6060                        domain=libxml2.XML_FROM_IO,
    6161                        code=libxml2.XML_IO_ENOENT,
    6262                        message='failed to load "dummy.xml": No such file or directory\n',
    63                         level=libxml2.XML_ERR_FATAL,
     63                        level=libxml2.XML_ERR_WARNING,
    6464                        file=None,
    6565                        line=0)
    6666
  • TabularUnified result/XInclude/fallback.xml.err

    diff --git a/result/XInclude/fallback.xml.err b/result/XInclude/fallback.xml.err
    index fa6b9e1ad20c6ef6d2996c002cb71773c69dae3e..3239da075cea899b48786d1f897eb5dfc11cbf63 100644
    a b  
    1 I/O error : failed to load "test/XInclude/docs/something.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/docs/something.xml": No such file or directory
  • TabularUnified result/XInclude/fallback2.xml.err

    diff --git a/result/XInclude/fallback2.xml.err b/result/XInclude/fallback2.xml.err
    index d405ac20069a90fe99e0f608018b54a08fa68bd9..288ed212d509427602ecda7f3ad767646e2c342c 100644
    a b  
    1 I/O error : failed to load "test/XInclude/docs/b.xml": No such file or directory
    2 I/O error : failed to load "test/XInclude/docs/c.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/docs/b.xml": No such file or directory
     2I/O warning : failed to load "test/XInclude/docs/c.xml": No such file or directory
  • TabularUnified result/XInclude/fallback4.xml.err

    diff --git a/result/XInclude/fallback4.xml.err b/result/XInclude/fallback4.xml.err
    index e27a7e6fb6cd0c85ae634e8ecc6ffc6a878a94ce..25156776017e6cfc5fb13fbd9f13a86d04b3b60d 100644
    a b  
    1 I/O error : failed to load "test/XInclude/docs/c.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/docs/c.xml": No such file or directory
  • TabularUnified result/XInclude/fallback5.xml.err

    diff --git a/result/XInclude/fallback5.xml.err b/result/XInclude/fallback5.xml.err
    index 4ec1892d74e9fb7b5132c059e4b42cb52e51e60c..f30bc6974a356265cfcf0bb343be91d58a893179 100644
    a b  
    1 I/O error : failed to load "test/XInclude/docs/a01.xml": No such file or directory
    2 I/O error : failed to load "test/XInclude/docs/a02.xml": No such file or directory
    3 I/O error : failed to load "test/XInclude/docs/a03.xml": No such file or directory
    4 I/O error : failed to load "test/XInclude/docs/a04.xml": No such file or directory
    5 I/O error : failed to load "test/XInclude/docs/a05.xml": No such file or directory
    6 I/O error : failed to load "test/XInclude/docs/a06.xml": No such file or directory
    7 I/O error : failed to load "test/XInclude/docs/a07.xml": No such file or directory
    8 I/O error : failed to load "test/XInclude/docs/a08.xml": No such file or directory
    9 I/O error : failed to load "test/XInclude/docs/a09.xml": No such file or directory
    10 I/O error : failed to load "test/XInclude/docs/a10.xml": No such file or directory
    11 I/O error : failed to load "test/XInclude/docs/a11.xml": No such file or directory
    12 I/O error : failed to load "test/XInclude/docs/a12.xml": No such file or directory
    13 I/O error : failed to load "test/XInclude/docs/a13.xml": No such file or directory
    14 I/O error : failed to load "test/XInclude/docs/a14.xml": No such file or directory
    15 I/O error : failed to load "test/XInclude/docs/a15.xml": No such file or directory
    16 I/O error : failed to load "test/XInclude/docs/a16.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/docs/a01.xml": No such file or directory
     2I/O warning : failed to load "test/XInclude/docs/a02.xml": No such file or directory
     3I/O warning : failed to load "test/XInclude/docs/a03.xml": No such file or directory
     4I/O warning : failed to load "test/XInclude/docs/a04.xml": No such file or directory
     5I/O warning : failed to load "test/XInclude/docs/a05.xml": No such file or directory
     6I/O warning : failed to load "test/XInclude/docs/a06.xml": No such file or directory
     7I/O warning : failed to load "test/XInclude/docs/a07.xml": No such file or directory
     8I/O warning : failed to load "test/XInclude/docs/a08.xml": No such file or directory
     9I/O warning : failed to load "test/XInclude/docs/a09.xml": No such file or directory
     10I/O warning : failed to load "test/XInclude/docs/a10.xml": No such file or directory
     11I/O warning : failed to load "test/XInclude/docs/a11.xml": No such file or directory
     12I/O warning : failed to load "test/XInclude/docs/a12.xml": No such file or directory
     13I/O warning : failed to load "test/XInclude/docs/a13.xml": No such file or directory
     14I/O warning : failed to load "test/XInclude/docs/a14.xml": No such file or directory
     15I/O warning : failed to load "test/XInclude/docs/a15.xml": No such file or directory
     16I/O warning : failed to load "test/XInclude/docs/a16.xml": No such file or directory
  • TabularUnified result/XInclude/fallback6.xml.err

    diff --git a/result/XInclude/fallback6.xml.err b/result/XInclude/fallback6.xml.err
    index d405ac20069a90fe99e0f608018b54a08fa68bd9..288ed212d509427602ecda7f3ad767646e2c342c 100644
    a b  
    1 I/O error : failed to load "test/XInclude/docs/b.xml": No such file or directory
    2 I/O error : failed to load "test/XInclude/docs/c.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/docs/b.xml": No such file or directory
     2I/O warning : failed to load "test/XInclude/docs/c.xml": No such file or directory
  • TabularUnified result/XInclude/fallback7.xml.err

    diff --git a/result/XInclude/fallback7.xml.err b/result/XInclude/fallback7.xml.err
    index 3861279f58d81254aa55e1badb30132ec1afe053..5acd3cccf3df652d6a756e2be5a0ba09b28a2bea 100644
    a b  
    1 I/O error : failed to load "test/XInclude/without-reader/404.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/without-reader/404.xml": No such file or directory
  • TabularUnified result/XInclude/ns1.xml.err

    diff --git a/result/XInclude/ns1.xml.err b/result/XInclude/ns1.xml.err
    index ef202341b39cd07b10cc73ede358de50445996cb..d750bc3db6d163b103e42a741b0c3eb8f07d0b38 100644
    a b  
    1 I/O error : failed to load "test/XInclude/without-reader/b.xml": No such file or directory
     1I/O warning : failed to load "test/XInclude/without-reader/b.xml": No such file or directory
  • TabularUnified result/schemas/import1_0_0.err

    diff --git a/result/schemas/import1_0_0.err b/result/schemas/import1_0_0.err
    index aafb61070e20169c48753a41c0d03872d85647ae..f780244a82177053ba9bb70b544af678795b726b 100644
    a b  
    1 I/O error : failed to load "test/schemas/import1_0bc.imp": No such file or directory
     1I/O warning : failed to load "test/schemas/import1_0bc.imp": No such file or directory
    22./test/schemas/import1_0.xsd:11: element import: Schemas parser warning : Element '{http://www.w3.org/2001/XMLSchema}import': Failed to locate a schema at location 'test/schemas/import1_0bc.imp'. Skipping the import.
    33./test/schemas/import1_0.xsd:16: element import: Schemas parser warning : Element '{http://www.w3.org/2001/XMLSchema}import': Skipping import of schema located at 'test/schemas/import1_0b.imp' for the namespace 'http://BAR', since this namespace was already imported with the schema located at 'test/schemas/import1_0.imp'.
    44./test/schemas/import1_0.xsd:26: element element: Schemas parser error : Element '{http://www.w3.org/2001/XMLSchema}element', attribute 'ref': The QName value '{http://BAR}bar.B' does not resolve to a(n) element declaration.