gzip compression broken in UniFi (built-in tomcat)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zlib (Ubuntu) |
Fix Released
|
High
|
Steve Langasek | ||
Zesty |
Won't Fix
|
High
|
Unassigned | ||
Artful |
Fix Released
|
High
|
Steve Langasek |
Bug Description
[Impact]
Since I upgraded from Ubuntu 16.10 to 17.04, my Guest portal for my UniFi system was broken (https:/
Curl gave me the following response:
# curl -vvvv --compress localhost:
* Trying ::1...
* TCP_NODELAY set
* Connected to localhost (::1) port 8880 (#0)
> GET /guest/s/default/ HTTP/1.1
> Host: localhost:8880
> User-Agent: curl/7.52.1
> Accept: */*
> Accept-Encoding: deflate, gzip
>
< HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
< Content-Type: text/html;
< Transfer-Encoding: chunked
< Content-Encoding: gzip
< Vary: Accept-Encoding
< Date: Tue, 23 May 2017 11:19:22 GMT
<
* Error while processing content unencoding: invalid code lengths set
* Failed writing data
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (23) Error while processing content unencoding: invalid code lengths set
[Test Case]
- Install UniFi controller on Ubuntu 17.04 (http://
- Go to https://<ip>:8443/
- Or do: curl -vvvv --compress <ip>:8880/
When compression is enabled, its broken.
When disabling compression in curl, it works fine.
After some debugging, I found out that downgrading to zlib 1:1.2.8.
Now after digging into the issue some more, I found the following upstream patch (unreleased version), fixes the issue:
https:/
[Regression Potential]
Everybody upgrading from 16.10 (or previous) to 17.04 will be affected by this.
The patch is taken from upstream, so this isn't a change we will need to keep different from upstream.
I've already created a new package (see debdiff) that fixes the issue.
[Other Info]
Now as the UniFi controller is just some Tomcat, which relies on Java (OpenJDK), which uses zlib for its built-in Compression/
At least some other people using UniFi have the same issue, see:
https:/
description: | updated |
tags: | added: regression-release |
tags: | added: rls-aa-incoming |
tags: | removed: rls-aa-incoming |
Changed in zlib (Ubuntu Zesty): | |
assignee: | nobody → Steve Langasek (vorlon) |
assignee: | Steve Langasek (vorlon) → nobody |
Changed in zlib (Ubuntu): | |
assignee: | nobody → Steve Langasek (vorlon) |
status: | Confirmed → Fix Committed |
Changed in zlib (Ubuntu Zesty): | |
status: | Confirmed → Won't Fix |
The attachment "New version with patch included." seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]