Bug 21932 - gzip compression broken in UniFi (built-in tomcat)
Summary: gzip compression broken in UniFi (built-in tomcat)
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL: https://github.com/madler/zlib/commit...
Whiteboard: MGA6-64-OK
Keywords: PATCH, UPSTREAM, advisory, validated_update
Depends on:
Blocks:
 
Reported: 2017-10-25 13:08 CEST by Luca Olivetti
Modified: 2017-12-21 18:44 CET (History)
3 users (show)

See Also:
Source RPM: zlib-1.2.11-4.mga6.src.rpm
CVE:
Status comment:


Attachments

Description Luca Olivetti 2017-10-25 13:08:33 CEST
The guest portal in unifi (java server with built-in tomcat) doesn't work with this version of zlib (it gives an ERR_CONTENT_DECODING_FAILED or en equivalent message both in chromium and firefox).

The same upstream commit that fixes it in ubuntu also fixes it in mageia 6 (tested with a locally build rpm)


https://github.com/madler/zlib/commit/f9694097dd69354b03cb8af959094c7f260db0a1.patch
Comment 1 Marja Van Waes 2017-10-25 23:58:43 CEST
(In reply to Luca Olivetti from comment #0)
> The guest portal in unifi (java server with built-in tomcat) doesn't work
> with this version of zlib (it gives an ERR_CONTENT_DECODING_FAILED or en
> equivalent message both in chromium and firefox).
> 
> The same upstream commit that fixes it in ubuntu also fixes it in mageia 6
> (tested with a locally build rpm)
> 
> 
> https://github.com/madler/zlib/commit/
> f9694097dd69354b03cb8af959094c7f260db0a1.patch

Thanks for the test.

You might want to consider becoming a Mageia packager, so that you can push such fixes to 6/updates_testing :-)

Our zlib maintainer maintains way too many packages, I think he'd be happy to get a hand.

URL: https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1692870 => https://github.com/madler/zlib/commit/f9694097dd69354b03cb8af959094c7f260db0a1.patch
Ever confirmed: 0 => 1
CC: (none) => marja11
See Also: (none) => https://launchpad.net/bugs/1692870
Assignee: bugsquad => shlomif
Keywords: (none) => PATCH, UPSTREAM
Status: UNCONFIRMED => NEW

Comment 2 Shlomi Fish 2017-10-26 17:08:57 CEST
uploaded to 6/updates_testing ad subrel 1 / rel 4. Please test.
Comment 3 Luca Olivetti 2017-10-26 17:28:28 CEST
I can confirm that lib64zlib1-1.2.11-4.1.mga6.x86_64.rpm fixes the issue.
@Marja, sorry, I cannot commit to be a packager
Comment 4 David Walser 2017-10-26 18:27:19 CEST
Luca, maybe you can write an update advisory explaining what just got fixed and assign this bug to qa-bugs@ml.mageia.org, so the update can be released.

Updated packages:
libzlib1-1.2.11-4.1.mga6
libzlib-devel-1.2.11-4.1.mga6
libminizip1-1.2.11-4.1.mga6
libminizip-devel-1.2.11-4.1.mga6

from zlib-1.2.11-4.1.mga6.src.rpm

Whiteboard: (none) => MGA6-64-OK

Comment 5 Luca Olivetti 2017-10-26 19:31:10 CEST
I'll try:

zlib 1.2.11 breaks the gzip content compression in UniFi guest portal (tomcat server) and probably other java tools that rely on zlib.

This package applies a patch from upstream that fixes the issue.

See also: 
https://bugs.launchpad.net/ubuntu/+source/zlib/+bug/1692870
https://community.ubnt.com/t5/UniFi-Wireless/ERR-CONTENT-DECODING-FAILED-on-guest-portal-customisation/td-p/1903419

Upstream commit:
https://github.com/madler/zlib/commit/f9694097dd69354b03cb8af959094c7f260db0a1
Comment 6 Shlomi Fish 2017-12-12 15:40:00 CET
Assigning to QA.

Status: NEW => ASSIGNED
Assignee: shlomif => qa-bugs

Comment 7 Lewis Smith 2017-12-16 11:31:26 CET
Advisory from comments 4 & 5.

Keywords: (none) => advisory

Comment 8 Lewis Smith 2017-12-21 14:57:20 CET
Validating as it already has a 64-bit OK, and is obscure.

Keywords: (none) => validated_update
CC: (none) => lewyssmith, sysadmin-bugs

Comment 9 Mageia Robot 2017-12-21 18:44:17 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2017-0125.html

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.