#177: XMLLINT crashes on some records
-----------------------+----------------------------------------------------
 Reporter:  ppraczyk   |       Owner:     
     Type:  defect     |      Status:  new
 Priority:  major      |   Milestone:     
Component:  *general*  |     Version:     
 Keywords:             |  
-----------------------+----------------------------------------------------
 When processing the attached record with verbosity 1 up to 3, a strangely
 formatted ( and pretty meaningless) message is yelded.

 /opt/cds-invenio/bin/xmlmarclint -v 3  ~/brokenrecord.xml


 n
 o
 t

 w
 e
 l
 l
 -
 f
 o
 r
 m
 e
 d

 (
 i
 n
 v
 a
 l
 i
 d

 t
 o
 k
 e
 n
 )


 When using higher verbosities, marcxmllint simply crashes
 /opt/cds-invenio/bin/xmlmarclint -v 4  ~/brokenrecord.xml
 Traceback (most recent call last):
   File "/opt/cds-invenio/bin/xmlmarclint", line 92, in <module>
     s = print_recs(badrecords)
   File "/usr/lib/python2.6/dist-packages/invenio/bibrecord.py", line 966,
 in print_recs
     text = "%s\n%s" % (text, print_rec(rec, format, tags))
   File "/usr/lib/python2.6/dist-packages/invenio/bibrecord.py", line 945,
 in print_rec
     text = record_xml_output(rec, tags)
   File "/usr/lib/python2.6/dist-packages/invenio/bibrecord.py", line 882,
 in record_xml_output
     for tag in rec:
 TypeError: 'NoneType' object is not iterable



 ... not to mention that I do not see any problems with this record so
 wanted to use the marcxmllint tool to find them

-- 
Ticket URL: <http://invenio-software.org/ticket/177>
Invenio <http://invenio-software.org>

Reply via email to