Your message dated Thu, 02 Apr 2020 13:18:46 +0000
with message-id <[email protected]>
and subject line Bug#951416: fixed in haproxy 2.0.13-2
has caused the Debian Bug report #951416,
regarding haproxy: please get rid of deprecated python3 cgi method
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
951416: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951416
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: haproxy
Version: 2.0.13-1
Severity: important

Dear Maintainer,

can you please move cgi method into the http one?

Line `2685' exceeds 80 columns
Parsing chapter ...
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/debian/dconv/haproxy-dconv.py", line 536, in <module>
    main()
  File "/<<PKGBUILDDIR>>/debian/dconv/haproxy-dconv.py", line 69, in main
    convert(option.infile, option.outfile, option.base)
  File "/<<PKGBUILDDIR>>/debian/dconv/haproxy-dconv.py", line 360, in convert
    content = cgi.escape(content, True)
AttributeError: module 'cgi' has no attribute 'escape'
make[1]: *** [debian/rules:61: override_dh_auto_build-indep] Error 1
make[1]: Leaving directory '/<<PKGBUILDDIR>>'

In python 3.8 looks like cgi.escape has been removed.
https://launchpadlibrarian.net/465183911/buildlog_ubuntu-focal-amd64.haproxy_2.0.13-1ubuntu1_BUILDING.txt.gz

Fortunately html.escape seems to be a drop-in replacement for it, so the 
following patch fixes the issue:

http://launchpadlibrarian.net/465185230/haproxy_2.0.13-1ubuntu1_2.0.13-1ubuntu2.diff.gz

diff -Nru haproxy-2.0.13/debian/dconv/haproxy-dconv.py 
haproxy-2.0.13/debian/dconv/haproxy-dconv.py
--- haproxy-2.0.13/debian/dconv/haproxy-dconv.py        2020-02-15 
21:48:40.000000000 +0000
+++ haproxy-2.0.13/debian/dconv/haproxy-dconv.py        2020-02-16 
09:34:53.000000000 +0000
@@ -23,7 +23,7 @@
 import os
 import subprocess
 import sys
-import cgi
+import html
 import re
 import time
 import datetime
@@ -338,7 +338,7 @@
             documentAppend('<a class="anchor" id="%s" name="%s"></a>' % 
(details["chapter"], details["chapter"]))
             if level == 1:
                 documentAppend("<div class=\"page-header\">", False)
-            documentAppend('<h%d id="chapter-%s" data-target="%s"><small><a 
class="small" href="#%s">%s.</a></small> %s</h%d>' % (level, 
details["chapter"], details["chapter"], details["chapter"], details["chapter"], 
cgi.escape(title, True), level))
+            documentAppend('<h%d id="chapter-%s" data-target="%s"><small><a 
class="small" href="#%s">%s.</a></small> %s</h%d>' % (level, 
details["chapter"], details["chapter"], details["chapter"], details["chapter"], 
html.escape(title, True), level))
             if level == 1:
                 documentAppend("</div>", False)
 
@@ -353,7 +353,7 @@
                 if index < len(chapterIndexes) - 1:
                     documentAppend('<li class="next"><a 
href="#%s">Next</a></li>' % chapterIndexes[index + 1], False)
                 documentAppend('</ul>', False)
-            content = cgi.escape(content, True)
+            content = html.escape(content, True)
             content = re.sub(r'section ([0-9]+(.[0-9]+)*)', r'<a 
href="#\1">section \1</a>', content)
 
             pctxt.set_content(content)

--- End Message ---
--- Begin Message ---
Source: haproxy
Source-Version: 2.0.13-2
Done: Vincent Bernat <[email protected]>

We believe that the bug you reported is fixed in the latest version of
haproxy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Vincent Bernat <[email protected]> (supplier of updated haproxy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Wed, 01 Apr 2020 21:49:32 +0200
Source: haproxy
Architecture: source
Version: 2.0.13-2
Distribution: unstable
Urgency: medium
Maintainer: Debian HAProxy Maintainers <[email protected]>
Changed-By: Vincent Bernat <[email protected]>
Closes: 951416 951782
Changes:
 haproxy (2.0.13-2) unstable; urgency=medium
 .
   * d/dconv: replace cgi.escape by html.escape. Closes: #951416.
   * d/copryight: document OpenSSL exception. Closes: #951782.
   * d/haproxy.cfg: use "ssl-min-ver" to set minimum version.
   * Apply one patch to fix an overflow in HTTP/2 header handling.
     Fix CVE-2020-11100.
Checksums-Sha1:
 e461b7e24986e8dcd53115c46e53ef1aee06fa6c 2304 haproxy_2.0.13-2.dsc
 568a2cccde9861d43772f8bd1e340d827abbeeee 69800 haproxy_2.0.13-2.debian.tar.xz
 dc6498e7873d3e7f52d8c8616c078f2b3d351f4d 8572 haproxy_2.0.13-2_amd64.buildinfo
Checksums-Sha256:
 7888d74bd4176fb3b19a4b101f9477a3e9e69c5af4bd261688632f25cb9afc0c 2304 
haproxy_2.0.13-2.dsc
 e115e2d07bf8eab041d14e65dd44727fade87a5ac8d4b796da36269b068a7b63 69800 
haproxy_2.0.13-2.debian.tar.xz
 77da35e4832233028788ca27882d15eca88669e5d2637dba8deeb359f660fccc 8572 
haproxy_2.0.13-2_amd64.buildinfo
Files:
 1665264e450d764fc07468fbf4d41b20 2304 net optional haproxy_2.0.13-2.dsc
 5a4a07b06f6b413b4b3cd38991a0039f 69800 net optional 
haproxy_2.0.13-2.debian.tar.xz
 7332e1cdb3953dc3eb8db39c5241c3aa 8572 net optional 
haproxy_2.0.13-2_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJGBAEBCAAwFiEErvI0h2bzccaJpzYAlaQv6DU1JfkFAl6F41oSHGJlcm5hdEBk
ZWJpYW4ub3JnAAoJEJWkL+g1NSX58PoQAI/ekakqGCDzBToCXEr/LotGi+tj7KRJ
OrjzQTVJ2Wjxx+ncbRbeJyerUQxoik97dv1uLlkE2pQMWjjMMGIlCYP2OYzTquFI
wNdUZU1r9+rDDEtd+ecgppambfpcnG7vCfeuvKUX+yFuiSEXZrK9OOcMyCha5Jp4
vo07x2DdyMr1F3JLJfMw1xG/ZKgXme2hxNX7b7pPYYVWM6jrQnmnLpkHmLSy2bcH
kNc5VnE9T3H/cqLgJUMCLRick2H8/UZzjFyjIwnHP2qQ5qsVHGJb5er3KQ+bjkBz
XDEMWrMAxgwIDxGTkdBAD6oNryAfWpM12rbmPyJ/b+4TFoIPAtBRjPeb1Vg9wCPv
bxPIeDUJUi45wxt+1fSOqzLsGC5V0YGojwlJOlYnZ8Wj/u9yOc1DiJdx0eAejJ5W
nODffO4Ois4AihKItmQbFC+yJ6Vzwcal6Q8K5GtJhhUBrYArXc6WHgViP0hFaBEQ
A0UP2nDyemVHetg/I0/C0zvATBYmVnZW4tzHwy+2OT5AdeR6AI8MP/7SO8YXJcTL
RpCuurg8vyLMX3lnTX7ECV+d28QcQMNrlY1MKz+wFIpkSfzZq6IgQbrxcl4kgYwN
LOfbbJW3fJ34LIf/jd2FYj4JDy0EwDxQks8jkc3RkHa7WVJWEiiYh7C3b+zFUagc
jdZ4VmYHMqF2
=K47v
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to