hassanakbar4 / tractive-test

0 stars 0 forks source link

unhelpful diagnostics in v3 mode #390

Closed hassanakbar4 closed 3 years ago

hassanakbar4 commented 5 years ago

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


Parsing file reference-group-test.xml

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 548, in main
    writer.write(filename)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 245, in write
    html_tree = self.html_tree()
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 222, in html_tree
    html_tree = self.render(None, self.root)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 277, in render
    res = func(h, x)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 536, in render_rfc
    self.render(body, c)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 277, in render
    res = func(h, x)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 291, in skip_renderer
    self.render(h, c)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 277, in render
    res = func(h, x)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 2048, in render_section
    self.render(section, c)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 277, in render
    res = func(h, x)
  File "/usr/lib/python3.6/site-packages/xml2rfc/writers/html.py", line 958, in render_author
    address.insert(0, lxml.etree.Element('postal'))
AttributeError: 'NoneType' object has no attribute 'insert'

Issue migrated from trac:390 at 2021-10-20 18:31:30 +0500

hassanakbar4 commented 5 years ago

@{"email"=>"julian.reschke@gmx.de", "name"=>nil, "username"=>nil} uploaded file reference-group-test.xml (0.3 KiB)

hassanakbar4 commented 5 years ago

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


Seems

is considered required.

hassanakbar4 commented 5 years ago

@{"email"=>"henrik@levkowetz.com", "name"=>nil, "username"=>nil} edited the issue description

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 [2976]:

Fixed an issue with the v3 html renderer when given an author without address entry. Fixes issue #390.