ietf-tools / rfclint

Perform Validation checks on Internet-Drafts
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

rfclint --extract crashes if there's an empty name attribute #2

Open ietf-svn-bot opened 4 years ago

ietf-svn-bot commented 4 years ago

type_defect | by arusso@amsl.com


input file: https://www.rfc-editor.org/v3test/test8847.xml

rfclint --extract="xml" test8847.xml > test8847-allxml.xml
INFO: Schema validation passes
Traceback (most recent call last):
 File "/usr/local/bin/rfclint", line 11, in <module>
   load_entry_point('rfclint==0.6.1', 'console_scripts', 'rfclint')()
 File "/usr/local/lib/python3.6/site-packages/rfclint/run.py", line 252,
in main
   with open(item.attrib["name"], 'w') as f:
FileNotFoundError: [Errno 2] No such file or directory: ''

(removing name="" from sourcecode elements prevents the crash.)


Issue migrated from trac:533 at 2022-02-08 07:08:47 +0000

ietf-svn-bot commented 4 years ago

@rjsparks@nostrum.com changed status from new to accepted

ietf-svn-bot commented 3 years ago

@rjsparks@nostrum.com changed status from accepted to assigned

ietf-svn-bot commented 3 years ago

@rjsparks@nostrum.com changed owner from ietf@augustcellars.com to ``