[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806596: marked as done (TarMember.name throws UnicodeDecodeError on some filenames)



Your message dated Sun, 13 Mar 2016 15:37:09 +0000
with message-id <E1af84r-0003Q8-Qt@franck.debian.org>
and subject line Bug#806596: fixed in python-apt 1.1.0~beta2
has caused the Debian Bug report #806596,
regarding TarMember.name throws UnicodeDecodeError on some filenames
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 owner@bugs.debian.org
immediately.)


-- 
806596: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806596
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: python3-apt
Version: 1.0.1
Severity: normal
Tags: upstream

Hi,

I noticed that TarMember.name throws UnicodeDecodeErrors on some deb files. A
current example in Debian:

> (desktop-sid-amd64)root@nightingale:/home/laney/temp# python3 -c "from apt_inst import DebFile; DebFile('aspell-is_0.51-0-4_all.deb').data.go(lambda member, data: member.name)"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "<string>", line 1, in <lambda>
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 15: invalid continuation byte

Since this comes from within python-apt itself it doesn't seem possible to
work around. I guess TarMember.name should be bytes (it works in python2).

Cheers,
-- 
Iain Lane                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]

--- End Message ---
--- Begin Message ---
Source: python-apt
Source-Version: 1.1.0~beta2

We believe that the bug you reported is fixed in the latest version of
python-apt, 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 806596@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julian Andres Klode <jak@debian.org> (supplier of updated python-apt 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 13 Mar 2016 15:48:44 +0100
Source: python-apt
Binary: python-apt python-apt-doc python-apt-dbg python-apt-dev python-apt-common python3-apt python3-apt-dbg
Architecture: source
Version: 1.1.0~beta2
Distribution: unstable
Urgency: medium
Maintainer: APT Development Team <deity@lists.debian.org>
Changed-By: Julian Andres Klode <jak@debian.org>
Description:
 python-apt - Python interface to libapt-pkg
 python-apt-common - Python interface to libapt-pkg (locales)
 python-apt-dbg - Python interface to libapt-pkg (debug extension)
 python-apt-dev - Python interface to libapt-pkg (development files)
 python-apt-doc - Python interface to libapt-pkg (API documentation)
 python3-apt - Python 3 interface to libapt-pkg
 python3-apt-dbg - Python 3 interface to libapt-pkg (debug extension)
Closes: 725720 791345 806596 807103 807104 807105 812099
Changes:
 python-apt (1.1.0~beta2) unstable; urgency=medium
 .
   [ Julian Andres Klode ]
   * tests/test_all.py: Only use test files starting with test_
   * tests: Rename test_pep8 to testmanual_pep8
   * pre-build.sh: Run PEP8 check
   * apt/README.apt: Drop it, we cannot pretend unstable API anymore
   * depcache: Call SetLog() and GetLock on Acquire instead of Setup
   * Fix regression from previous commit WRT Py_None reference count
   * pkgsrcrecords: Use Files2 instead of Files, part1: Size
   * Introduce apt_pkg.HashStringList()
   * pkgrecords: Use hashes instead of deprecated MD5Hash and friends
   * whatsnew: 1.1: Document HashStringList and PackageRecords changes
   * hashstring: Constify where possible
   * Drop deprecated uses of Hashes, add hashes attribute
   * HashStringList: Check for negative index, fix signed vs unsigned
   * acquire: Call SetLog() instead of Setup()
   * apt_pkg: Deprecate rewrite_section
   * arfile, tarfile: Decode member names using filesystem encoding
     (Closes: #806596)
   * CppPyString: Use an const std::string reference instead of value
   * Make Safe_FromString an overloaded version of CppPyString
   * Use CppPyString instead of PyString_FromString everywhere
   * Drop compat macros for python2 (< 2.6)
   * Drop deprecation-ignore macros, use APT ones instead
   * Use CppPyPath for returning (hopefully) all paths
   * apt_inst: Do not mention deprecated functions, except for porting
     (Closes: #807103)
   * control: Suggest apt, so reportbug reports apt version
   * Drop binding for SmartTargetPkg() (Closes: #791345)
   * debfile: Mention dpkg --add-architecture when arch is wrong
     (Closes: #725720)
   * Introduce apt_pkg.Error class replacing SystemError
   * CppPyObject_NEW: Make template variadic
   * Revert "CppPyObject_NEW: Make template variadic"
   * Add apt_pkg.Tag and subclasses (one per kind of tag)
   * TagSection: Check for NUL bytes in the tag section input
   * python-apt-common: Drop python | python3 depends (Closes: #812099)
   * apt.Cache: Provide get()
 .
   [ Felix Dietrich ]
   * doc: Fix typo (Closes: #807105)
   * Use print function from __future__ in examples (Closes: #807104)
 .
   [ Brian Murray ]
   * Fix typo regarding upgradeable packages.
Checksums-Sha1:
 869a621d0c094cd92ce64e1f8dfb77d42f550126 2243 python-apt_1.1.0~beta2.dsc
 855a74b91c9ff998cf2e57f4a6b19e9ebf6c5b57 316628 python-apt_1.1.0~beta2.tar.xz
Checksums-Sha256:
 ae775f3da24b9c5b8d3c6176f719fe15acceb3d838b52745723d38febc7a6694 2243 python-apt_1.1.0~beta2.dsc
 b9dcff7f7b51035185d9a204ba39ab7111bb777ffa57913bb7b2de71bc2f7f44 316628 python-apt_1.1.0~beta2.tar.xz
Files:
 5cd7858a45e66e48db9e86cee4313838 2243 python standard python-apt_1.1.0~beta2.dsc
 63617e86ff767da6153ec4a505dbfabf 316628 python standard python-apt_1.1.0~beta2.tar.xz

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

iQIcBAEBCgAGBQJW5X4ZAAoJENc8OeVlgLOGSRgP/1wh5UZmFaRfYnRiDo0jK8/U
ybkYnj2GTxiE2TYtpujbW6zcTzyRfb2qMS0JRK934PEM0hLUOn3MFcu+F5SiW3Fz
EHt/UlKjC/2mMOOZUDRvJsUTCyYvzDF49KVRCJTxxFAhTz0TOa9XoL2guIZT2ckL
xP635gh+0fV2nE9Lx/g9aVJi3I0X6LCcPrSHx2/IlM2YVlq5itUqBy0Zx3p3gynh
eij6lg6nTyv7q0ruwqrNLEqQGygEo+r7M7PDjOsgSlKUt8VLn1dFImR9+tVbLr5V
VH9G38ZVUsfKU58hGZP1L8ljqHFyOOKtFC9nJGPJ7sv3+pPDWUf2VUgrdC/VURqu
K3LBkD77nFjmOmnxh9dtW8qq70tWf5UnSGi4kjggLyBCay0gbvDs/DfnUAGy+PTc
QKUNeqfhGtXaFjWUVYB+V5Bl/QVovk2dInWAfHtE04clPjw0NO+L333ZpQLYPT8+
+Q7djEv2Rxdy6MrW/vkeRQkT3diC6vDMWGw/r+BjXv3zOaY6cZ+FVZuaiHEAV0Oi
klqMqxBCuc1nNKJpiJA26KW4C3oxSk9Oh7bBz9GeJ5G08u9/I96EjChYZPxqKHil
hWKieYW1ykisscfbFEMMh+8VMVYxhGQ6EaItdxqkHa33nquBrKwiKzd2wb91WWmy
LlEdtNWj3GimaqSNEG94
=BjNN
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: