Univention Bugzilla – Bug 51594
univention.lib.compression_mime_type_of_buffer() broken
Last modified: 2023-06-20 20:48:46 CEST
univention.lib.compression_mime_type_of_buffer() is broken since a patch in `file` which does: debian/patches/0006-gzip.patch / debian/patches/local.report-gz-as-application-gzip.patch: -!:mime»application/x-gzip +!:mime»application/gzip This must happen somewhere between UCS 4.2 and UCS 4.3. At least I don't find the patch in UCS 4.0 but in UCS 4.3 and UCS 4.2-errata449. Patch: compression_mime_type_handlers = { "application/x-gzip": lambda x: zlib.decompress(x, 16 + zlib.MAX_WBITS), - "application/x-bzip2": bz2.decompress + "application/gzip": lambda x: zlib.decompress(x, 16 + zlib.MAX_WBITS), + "application/x-bzip2": bz2.decompress, + "application/bzip2": bz2.decompress, }
*** Bug 35062 has been marked as a duplicate of this bug. ***