Subject: [xml2rfc] #408 (Version_3_cli_txt): empty <back> element yields stack trace

From: "xml2rfc issue tracker" <[email-masked]>
Date: Tue, 21 May 2019 19:22:01 -0000

#408: empty <back> element yields stack trace

 {{{
 Traceback (most recent call last):
   File "/bin/xml2rfc", line 10, in <module>
     sys.exit(main())
   File "/usr/lib/python2.7/site-packages/xml2rfc/run.py", line 549, in
 main
     writer.write(filename)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 228, in write
     lines = self.render(self.root, width=72, joiners=joiners)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 271, in render
     res = func(e, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 2834, in render_rfc
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 446, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 271, in render
     res = func(e, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 990, in render_back
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 446, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 271, in render
     res = func(e, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 3102, in render_section
     lines = self.ljoin(lines, c, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 446, in ljoin
     res = mklines(self.render(e, width, **kwargs), e)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 271, in render
     res = func(e, width, **kwargs)
   File "/usr/lib/python2.7/site-packages/xml2rfc/writers/text.py", line
 892, in render_author
     address.insert(0, 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.22.*
 Keywords:                         |
-----------------------------------+--------------------

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

---

From: "xml2rfc issue tracker" <[email-masked]>
Date: Wed, 22 May 2019 13:57:35 -0000

Changes (by [email-masked]):

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

Comment:

 Fixed in [3117]:

 Handle author without address element for v3 text.  Fixes issue #408.

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

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