hassanakbar4 / tractive-test

0 stars 0 forks source link

empty PI <?rfc ?> causes odd error message #181

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 11 years ago

component_Version 2 cli resolution_fixed type_enhancement | by arusso@amsl.com


The empty PI <?rfc ?> appears twice in the normative references and causes the following error message. (see attached files; after removing them, the file runs fine.) How about either:

% xml2rfc draft-ietf-ospf-rfc3137bis-04.original.xml 
Parsing file draft-ietf-ospf-rfc3137bis-04.original.xml
Traceback (most recent call last):
  File "/usr/local/bin/xml2rfc", line 208, in <module>
    main()
  File "/usr/local/bin/xml2rfc", line 193, in main
    pagedwriter.write(filename)
  File "/usr/local/lib64/python2.6/site-packages/xml2rfc/writers/base.py", line 1080, in write
    self._build_index()
  File "/usr/local/lib64/python2.6/site-packages/xml2rfc/writers/base.py", line 938, in _build_index
    title = ref.find("front/title").text
AttributeError: 'NoneType' object has no attribute 'text'

Issue migrated from trac:181 at 2021-10-20 18:06:37 +0500

hassanakbar4 commented 11 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} uploaded file draft-ietf-ospf-rfc3137bis-04.original.xml (18.6 KiB)

hassanakbar4 commented 11 years ago

@{"email"=>"arusso@amsl.com", "name"=>nil, "username"=>nil} uploaded file draft-ietf-ospf-rfc3137bis-04.corrected.xml (18.5 KiB)

hassanakbar4 commented 11 years ago

@{"email"=>"tony@att.com", "name"=>nil, "username"=>nil} changed status from new to assigned

hassanakbar4 commented 11 years ago

@{"email"=>"tony@att.com", "name"=>nil, "username"=>nil} changed owner from henrik@levkowetz.com to tony@att.com

hassanakbar4 commented 11 years ago

@{"email"=>"tony@att.com", "name"=>nil, "username"=>nil} commented


add an if test before dereferencing

fix in 940

hassanakbar4 commented 11 years ago

@{"email"=>"tony@att.com", "name"=>nil, "username"=>nil} changed resolution from ` tofixed`

hassanakbar4 commented 11 years ago

@{"email"=>"tony@att.com", "name"=>nil, "username"=>nil} changed status from assigned to closed