Projet

Général

Profil

Bug #20235

Échec dans test_cityweb.py/test_demand_creation

Ajouté par Frédéric Péters il y a plus de 6 ans. Mis à jour il y a environ 5 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
23 novembre 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

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

Historique

#1

Mis à jour par Benjamin Dauvergne il y a environ 5 ans

  • Statut changé de Nouveau à Information nécessaire
  • Assigné à mis à Frédéric Péters

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

#2

Mis à jour par Frédéric Péters il y a environ 5 ans

  • Statut changé de Information nécessaire à 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

Formats disponibles : Atom PDF