hassanakbar4 / tractive-test

0 stars 0 forks source link

failure with missing consensus attribute #379

Closed hassanakbar4 closed 2 years ago

hassanakbar4 commented 5 years ago

component_Version_3_cli_txt resolution_fixed type_defect | by julian.reschke@gmx.de


yields:

foo.xml(11): Warning: Expected a valid submissionType (stream) setting, one of IETF, IAB, IRTF, independent, but found None.  Will use 'IETF'
Traceback (most recent call last):
  File "/bin/xml2rfc", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python3.6/site-packages/xml2rfc/run.py", line 423, in main
    xmlrfc.tree = prep.prep()
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/preptool.py", line 377, in prep
    func(e, e.getparent())
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/preptool.py", line 471, in check_attribute_values
    consensus = consensus_values[0]
TypeError: 'dict_keys' object does not support indexing

but RFC 7991 defines a default of "false".


Issue migrated from trac:379 at 2021-10-20 18:30:23 +0500

hassanakbar4 commented 5 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} uploaded file foo.xml (108.5 KiB)

hassanakbar4 commented 5 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


I don't see this here when I run 2.13.0 with options --html --v3 (guessing at the options you may have used). What was your command line, please?

hassanakbar4 commented 5 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} changed status from new to closed

hassanakbar4 commented 5 years ago

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

hassanakbar4 commented 5 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Fixed in [2744]:

Under python 3.6, dictionary keys() return a set-like object that cannot be indexed. Convert to list for our purposes. Fixes issue #379

hassanakbar4 commented 5 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} commented


just "--v3", no "--html"...

hassanakbar4 commented 5 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} commented


Thanks. Should be fixed in 2.13.1, just out.