git: Doesn't handle non-utf8 characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar Git Plugin |
Confirmed
|
Undecided
|
Unassigned | ||
Breezy |
Fix Released
|
Wishlist
|
Jelmer Vernooij |
Bug Description
When trying to import some git repo (Navitia) I got the following error:
2015-08-28 11:06:45 INFO Starting job.
2015-08-28 11:06:45 INFO Getting exising bzr branch from central store.
2015-08-28 11:06:45 INFO [chan bzr SocketAsChannel
2015-08-28 11:06:45 INFO [chan bzr SocketAsChannel
2015-08-28 11:06:45 INFO 57 bytes transferred
2015-08-28 11:06:46 INFO Importing branch.
2015-08-28 11:06:47 INFO Counting objects: 57459, done. 0
2015-08-28 11:07:22 INFO finding revisions to fetch:generating index 0/57459
2015-08-28 11:07:28 INFO finding revisions to fetch:generating index 0/57459
2015-08-28 11:07:32 INFO finding revisions to fetch 1
2015-08-28 11:07:37 INFO
Traceback (most recent call last):
File "/srv/importd.
sys.
File "/srv/importd.
return import_worker.run()
File "/srv/importd.
return self._doImport()
File "/srv/importd.
inter_
File "/srv/importd.
self.
File "/srv/importd.
determine_
File "/srv/importd.
limit)
File "/srv/importd.
target_
File "/srv/importd.
False))
File "/srv/importd.
lookup_file_id, allow_submodule
File "/srv/importd.
lookup_file_id, allow_submodule
File "/srv/importd.
lookup_file_id, allow_submodule
File "/srv/importd.
(child_
File "/srv/importd.
ie = cls(file_id, name.decode(
File "/usr/lib/
return codecs.
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 23: invalid continuation byte
Import failed:
Traceback (most recent call last):
Failure: twisted.
Related branches
- Jelmer Vernooij: Approve
-
Diff: 102 lines (+22/-10)3 files modifiedbreezy/git/mapping.py (+13/-3)
breezy/git/tree.py (+6/-7)
doc/en/release-notes/brz-3.1.txt (+3/-0)
affects: | launchpad → bzr-git |
Changed in brz-git: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in brz-git: | |
importance: | Medium → Wishlist |
affects: | brz-git → brz |
summary: |
- Doesn't handle non-utf8 characters + git: Doesn't handle non-utf8 characters |
tags: | added: git |
Changed in brz: | |
status: | Triaged → In Progress |
assignee: | nobody → Jelmer Vernooij (jelmer) |
milestone: | none → 3.1.1 |
Changed in brz: | |
status: | In Progress → Fix Released |
It's unclear what the best course of action is in situations like this. Bazaar uses unicode internally, Git just uses arbitrary strings.