Project

General

Profile

Bug #20235

Échec dans test_cityweb.py/test_demand_creation

Added by Frédéric Péters over 1 year ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
23 Nov 2017
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

Chez moi, je ne sais trop comment quelque part au fond d'xml,

tests/test_cityweb.py:92: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/test_cityweb.py:70: in assert_xml_doc
    etree.parse(os.path.join(get_test_base_dir('cityweb'), 'cityweb.xsd')))
src/lxml/etree.pyx:3444: in lxml.etree.parse (src/lxml/etree.c:83170)
    ???
src/lxml/parser.pxi:1834: in lxml.etree._parseDocument (src/lxml/etree.c:120742)
    ???
src/lxml/parser.pxi:1860: in lxml.etree._parseDocumentFromURL (src/lxml/etree.c:121089)
    ???
src/lxml/parser.pxi:1764: in lxml.etree._parseDocFromFile (src/lxml/etree.c:119997)
    ???
src/lxml/parser.pxi:1161: in lxml.etree._BaseParser._parseDocFromFile (src/lxml/etree.c:114546)
    ???
src/lxml/parser.pxi:598: in lxml.etree._ParserContext._handleParseResultDoc (src/lxml/etree.c:107723)
    ???
src/lxml/parser.pxi:709: in lxml.etree._handleParseResult (src/lxml/etree.c:109432)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   XMLSyntaxError: None (cityweb.xsd, line 0)

src/lxml/parser.pxi:649: XMLSyntaxError

avec aussi

func=xmlSecNoXxeExternalEntityLoader:file=xmlsec.c:line=53:obj=unknown:subj=xmlSecNoXxeExternalEntityLoader:error=5:libxml2 library function failed:illegal external entity='/home/fred/src/eo/passerelle/tests/data/cityweb/cityweb.xsd'; xml error: 0: NULL

History

#1 Updated by Benjamin Dauvergne 2 months ago

  • Assignee set to Frédéric Péters
  • Status changed from Nouveau to Information nécessaire

Si ça n'arrive plus il faut fermer je pense (je ne vois pas d'entité externe dans le fichier xsd pointé)

#2 Updated by Frédéric Péters 2 months ago

  • Status changed from Information nécessaire to Fermé

En effet je l'ai plus tard corrigé par :

commit 560fe4406a9d3cbd009c019ad3763f12353762cb
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Wed Feb 27 09:33:03 2019 +0100

    tests: pass open file to etree.parse() in cityweb tests

Also available in: Atom PDF