Your message dated Mon, 29 May 2017 12:03:40 +0000
with message-id <[email protected]>
and subject line Bug#863286: fixed in lua-http 0.1-3
has caused the Debian Bug report #863286,
regarding completely broken in non-US locales
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.)


-- 
863286: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=863286
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: lua-http
Version: 0.1-1
Severity: grave
Tags: upstream

Hi,

lua-http cannot construct legal requests if a non-US locale (or more precisely,
anything using comma as decimal separator) is in use. Example:

  klump:~> cat test.lua
  os.setlocale('nb_NO.UTF-8')
  local http_request = require "http.request"
  local headers, stream = 
assert(http_request.new_from_uri("http://example.com";):go())
  local body = assert(stream:get_body_as_string())
  if headers:get ":status" ~= "200" then
      error(body)
  end
  print(body)
  
  klump:~> lua5.2 test.lua
  lua5.2: test.lua:6: <?xml version="1.0" encoding="iso-8859-1"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
  <html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
        <head>
                <title>505 - HTTP Version Not Supported</title>
        </head>
        <body>
                <h1>505 - HTTP Version Not Supported</h1>
        </body>
  </html>
  
  stack traceback:
        [C]: in function 'error'
        test.lua:6: in main chunk
        [C]: in ?

This is because the request it constructs looks like this:

  GET / HTTP/1,1
  host: example.com
  user-agent: lua-http/0.1

Note the “1,1” in the HTTP version number where it should have been 1.1.

This makes the library completely broken for a large swath of Debian's user 
base;
thus the severity.

-- System Information:
Debian Release: 9.0
  APT prefers testing-proposed-updates
  APT policy: (500, 'testing-proposed-updates'), (500, 'testing')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.2 (SMP w/40 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

--- End Message ---
--- Begin Message ---
Source: lua-http
Source-Version: 0.1-3

We believe that the bug you reported is fixed in the latest version of
lua-http, 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.
Ondřej Surý <[email protected]> (supplier of updated lua-http 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: SHA512

Format: 1.8
Date: Mon, 29 May 2017 13:39:46 +0200
Source: lua-http
Binary: lua-http
Architecture: source
Version: 0.1-3
Distribution: unstable
Urgency: medium
Maintainer: Ondřej Surý <[email protected]>
Changed-By: Ondřej Surý <[email protected]>
Description:
 lua-http   - HTTP library for Lua
Closes: 863286
Changes:
 lua-http (0.1-3) unstable; urgency=medium
 .
   * Fix request building in locales with comma decimal separator
     (Closes: #863286) (Courtesy of Daurnimator)
Checksums-Sha1:
 0488cfdf6c0767c7bf3f666ff8cafa78307d67f2 1971 lua-http_0.1-3.dsc
 36f72780773ad5752ce33568af9b30de0a582664 3452 lua-http_0.1-3.debian.tar.xz
 092a53285eac04d036fbf7961fb4fcbb666379ef 6416 lua-http_0.1-3_amd64.buildinfo
Checksums-Sha256:
 cb108cf725543714a9a72cbd46acb8513a6704c04acbaf5c654e3b6b982f9426 1971 
lua-http_0.1-3.dsc
 537488d3a5d918be5f5b625ca53582e318e66484f58f4d9cf034744219275696 3452 
lua-http_0.1-3.debian.tar.xz
 33ce34fb5342140dfe5fdafdc27e9666b506de20c2dcb236c0e72f5e3d9cf7cf 6416 
lua-http_0.1-3_amd64.buildinfo
Files:
 2cff88c0e84128f822e6d742f89276b3 1971 interpreters optional lua-http_0.1-3.dsc
 2e5cbfb4a8dca99abf5fb33d5d4569fb 3452 interpreters optional 
lua-http_0.1-3.debian.tar.xz
 6d1a8fa2c4b8188de13e8b0560c7f398 6416 interpreters optional 
lua-http_0.1-3_amd64.buildinfo

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

iQKTBAEBCgB9FiEEMLkz2A/OPZgaLTj7DJm3DvT8uwcFAlksChxfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDMw
QjkzM0Q4MEZDRTNEOTgxQTJEMzhGQjBDOTlCNzBFRjRGQ0JCMDcACgkQDJm3DvT8
uwfKRRAAiRnHnumZyAI2CPmutd1AUdEOcwy/BuqsexR1183tpFFDFzo1L4wz1Y72
agwgrpIOmz5ztXvW1m5+Z/XlXhixOhGHtcvqQNecuCvMUALt4BntONRbRf2pvCr0
SQy6Ga8wayaalrly7dNZBOWd17d+SgF7TXP1HCjta67ga4idvFCUPxKN4e9f4Lpg
j2BjPniampfvVAHlT8+PHEkKiPgXN70GKmXi2uPvzgXn3I3tgPH/SGTo7ffuTh4v
dDgFZXm4lQOQ3J5MJwi5hzVNrnQL2PSvaLslxzARsV1ut4B0BVAnQUpJ7x3GaGR7
rpZ5PJbs+S6qXpz11lfON82uDc0pqpy/smk/nRS5f+9wwC82pBRuuFL6gY+q5yGK
s+m2K8b97VmnWihp/VFk2YnKaiMILdrOOd9WS+6tqbU2Wavk0b8FAAwdDo6uGjMm
4aAd7JvDBe9jVMLkkVuMuRZcSh5S0ETJZ6LNH5z6s9buOAYR0Zs9lp8G8HdKwwYm
HEK62F5z8/7Pq/yQNYkUEzAUfXMcWxXNCzzH7olMRkuysVS2km9j0ZkFnaMR+eTg
rvfkLK/dOkLFmCsEbaIbBaB8xNiYguWeWGQcNAxiPlIRiNY9wSMGfS2Y4T7mI5Fd
sHvwby0u2+JPCAMMHFZ3u7rkClylVQ9prEAXORvTM/kjAZue3Jc=
=L2ZB
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to