Subject: [xml2rfc] #390 (Version_3_cli_txt): unhelpful diagnostics in v3 mode

From: "xml2rfc issue tracker" <[email-masked]>
Date: Fri, 01 Feb 2019 15:55:56 -0000

#390: unhelpful diagnostics in v3 mode

 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'

-- 
-----------------------------------+--------------------
 Reporter:  [email-masked]  |      Owner:
     Type:  defect                 |     Status:  new
 Priority:  medium                 |  Milestone:
Component:  Version_3_cli_txt      |    Version:  2.17.*
 Keywords:                         |
-----------------------------------+--------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/390>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Fri, 01 Feb 2019 15:57:59 -0000

Comment (by [email-masked]):

 Seems <address> is considered required.

-- 
------------------------------------+--------------------
Resolution:                         |   Keywords:
------------------------------------+--------------------

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/390#comment:1>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Wed, 06 Feb 2019 16:47:38 -0000

Description changed by [email-masked]:

> AttributeError: 'NoneType' object has no attribute 'insert'

New description:

 {{{
 }}}

--

Ticket URL: <https://trac.tools.ietf.org/tools/xml2rfc/trac/ticket/390#comment:2>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Wed, 06 Feb 2019 16:50:08 -0000

Changes (by [email-masked]):

 * status:  new => closed
 * resolution:   => fixed

Comment:

 Fixed in [2976]:

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

-- 
------------------------------------+--------------------
  Reporter:  [email-masked]  |      Owner:
      Type:  defect                 |     Status:  closed
  Priority:  medium                 |  Milestone:
 Component:  Version_3_cli_txt      |    Version:  2.17.*
Resolution:  fixed                  |   Keywords:
------------------------------------+--------------------

Ticket URL: </ticket/390#comment:3>
xml2rfc <http://tools.ietf.org/tools/xml2rfc/>