Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628884 - post-receive.h02-notify-webhook UnicodeDecodeError: 'utf-8' codec can't decode
Summary: post-receive.h02-notify-webhook UnicodeDecodeError: 'utf-8' codec can't decode
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Gentoo Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Overlays Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-25 06:33 UTC by Benda Xu
Modified: 2019-12-18 07:26 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benda Xu gentoo-dev 2017-08-25 06:33:33 UTC
For science overlay, after commit 280823319a7e034814, I constantly get UTF-8 decoding error as follows.  Any insights where the non-UTF8 char is?

$ git pull --rebase && git push --signed
Current branch master is up to date.
Counting objects: 8, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.45 KiB | 0 bytes/s, done.
Total 8 (delta 7), reused 0 (delta 0)
remote: To github.com:gentoo/sci.git
remote:    5b06cf931..6538b395b  master -> master
remote: Traceback (most recent call last):
remote:   File "hooks/post-receive.h02-notify-webhook", line 96, in <module>
remote:     logmsg = git(['log','--reverse','--format=%an%x09%ae']).split("\n")[0]
remote:   File "hooks/post-receive.h02-notify-webhook", line 20, in git
remote:     details = details.decode("utf-8").strip()
remote: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 81459: invalid continuation byte
To git+ssh://git@git.gentoo.org/proj/sci.git
   5b06cf9..6538b39  master -> master


Reproducible: Always
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-08-25 06:50:04 UTC
At a first glance, invalid utf8 in author. We should have rejected that.
Comment 2 François Bissey 2017-08-25 07:38:47 UTC
So you are blaming my "ç"?
Comment 3 Benda Xu gentoo-dev 2017-12-20 08:14:20 UTC
(In reply to François Bissey from comment #2)
> So you are blaming my "ç"?

After mgorny's investigation, it seems to be caused by a very old commit.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2019-12-18 07:26:18 UTC
Obsolete, closing