Opened at 2021-06-15T17:03:46Z
Closed at 2021-06-23T13:04:35Z
#3738 closed defect (fixed)
`tahoe cp` upload with Unicode name fails on Python 2
Reported by: | itamarst | Owned by: | itamarst |
---|---|---|---|
Priority: | normal | Milestone: | Support Python 3 |
Component: | unknown | Version: | n/a |
Keywords: | Cc: | ||
Launchpad Bug: |
Description
$ tahoe cp ~/.tmux.conf tahoe:foo/mdash—→
This works on Python 3, fails on Python 2. In both cases the local tahoe run and the tahoe cp were done with Python 3 or 2, respectively, but all the nodes and introducers were on Python 3 in both cases.
This is Linux, LANG=en_US.UTF-8.
Change History (3)
comment:1 Changed at 2021-06-15T17:09:50Z by itamarst
Version 0, edited at 2021-06-15T17:09:50Z
by itamarst
(next)
comment:2 Changed at 2021-06-15T17:18:06Z by itamarst
Downloads appear to work.
comment:3 Changed at 2021-06-23T13:04:35Z by GitHub <noreply@…>
- Resolution set to fixed
- Status changed from new to closed
In 83b4fb8/trunk:
Note: See
TracTickets for help on using
tickets.
The errors are somewhat interleaved, unfortunately, but looks like there were errors in both the web code _and_ tahoe cp:
~ /home/itamarst/Devel/tahoe-lafs/src/allmydata/scripts/runner.py:207: UnicodeWarning?: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal if '--coverage' not in sys.argv: 2021-06-15T13:01:23-0400 [allmydata.webish.TahoeLAFSRequest#critical]2021-06-15T13:01:23-0400 [twisted.python.log#info] web: 127.0.0.1 GET /uri/[CENSORED]?t=json 500 95 Traceback (most recent call last):
--- <exception caught here> ---
exceptions.UnicodeDecodeError?: 'ascii' codec can't decode byte 0xe2 in position 16: ordinal not in range(128)
~