mb makehashes doesn't work with some .asc files #102

poeml opened this Issue Jun 5, 2015 · 0 comments


None yet
1 participant

poeml commented Jun 5, 2015

                                                                                [          ]

Issue migrated (2015-06-05) from old issue tracker http://mirrorbrain.org/issues/issue102

Title    mb makehashes doesn't work with some .asc files
 Priority   bug              Status        resolved
Superseder                  Nosy List      poeml
Assigned To poeml           Keywords

msg356 (view) Author: poeml Date: 2012-03-24.00:05:37

Hashing '/srv/kde/security_patches/post-3.3.2-kdelibs-kimgio-fixed.diff'... done.
Traceback (most recent call last):
File "/usr/bin/mb", line 1645, in
r = mirrordoctor.main()
File "/usr/lib/pymodules/python2.5/cmdln.py", line 257, in main
return self.cmd(args)
File "/usr/lib/pymodules/python2.5/cmdln.py", line 280, in cmd
retval = self.onecmd(argv)
File "/usr/lib/pymodules/python2.5/cmdln.py", line 412, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/pymodules/python2.5/cmdln.py", line 1100, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/bin/mb", line 1105, in do_makehashes
File "/usr/lib/pymodules/python2.5/mb/hashes.py", line 174, in check_db
psycopg2.DataError: invalid byte sequence for encoding "UTF8": 0xb7
HINT: This error can also happen if the byte sequence does not match the
encoding expected by the server, which is controlled by "client_encoding".

This happened with signature that were not detached, and contained non-UTF-8

Fixed in commit 8259, by ignoring such large files (larger than the signed file,
quite simply).

msg357 (view) Author: poeml Date: 2012-03-24.00:06:02

Will be in 2.16.1.

         Date         User  Action                      Args
                                   title: mb makehashes doesn't with some .asc
2012-03-25 10:27:06 poeml set    files -> mb makehashes doesn't work with some
                                   .asc files
2012-03-24 12:14:06 poeml set    status: chatting -> resolved
2012-03-24 00:06:02 poeml set    status: resolved -> chatting
                                   messages: + msg357
2012-03-24 00:05:52 poeml set    status: in-progress -> resolved
2012-03-24 00:05:37 poeml create

(end of migrated issue)

@poeml poeml added bug resolved labels Jun 5, 2015

@poeml poeml closed this Jun 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment