[tahoe-lafs-trac-stream] [tahoe-lafs] #682: FTP frontend should support Unicode filenames encoded as UTF-8
tahoe-lafs
trac at tahoe-lafs.org
Sat Jul 27 12:56:12 UTC 2013
#682: FTP frontend should support Unicode filenames encoded as UTF-8
-----------------------------+---------------------------------------------
Reporter: arthur | Owner: francois
Type: defect | Status: assigned
Priority: major | Milestone: soon
Component: code- | Version: 1.3.0
frontend | Keywords: i18n unicode ftpd names twisted
Resolution: |
Launchpad Bug: |
-----------------------------+---------------------------------------------
Changes (by amontero):
* cc: amontero@… (added)
Old description:
> using ncftp on a put of a file with an é accent I get the following
> message :
>
> [Requested action not taken: internal server error]
>
> in the logs server side :
>
> {{{
> 2009-04-17 15:22:07+0200 [ProtocolWrapper,3,127.0.0.1] Unhandled Error
> Traceback (most recent call last):
> File "/usr/lib/python2.5/site-
> packages/twisted/internet/tcp.py", line 362, in doRead
> return self.protocol.dataReceived(data)
> File "/usr/lib/python2.5/site-
> packages/twisted/protocols/policies.py", line 72, in dataReceived
> self.wrappedProtocol.dataReceived(data)
> File "/usr/lib/python2.5/site-
> packages/twisted/protocols/basic.py", line 231, in dataReceived
> why = self.lineReceived(line)
> File "/usr/lib/python2.5/site-
> packages/twisted/protocols/ftp.py", line 698, in lineReceived
> d = defer.maybeDeferred(self.processCommand, cmd, *args)
> --- <exception caught here> ---
> File "/usr/lib/python2.5/site-
> packages/twisted/internet/defer.py", line 106, in maybeDeferred
> result = f(*args, **kw)
> File "/usr/lib/python2.5/site-
> packages/twisted/protocols/ftp.py", line 729, in processCommand
> return method(*params)
> File "/usr/lib/python2.5/site-
> packages/twisted/protocols/ftp.py", line 1079, in ftp_STOR
> d = self.shell.openForWriting(newsegs)
> File "/usr/lib/python2.5/site-
> packages/allmydata/frontends/ftpd.py", line 255, in openForWriting
> path = [unicode(p) for p in path]
> exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte
> 0xe0 in position 21: ordinal not in range(128)
> }}}
New description:
using ncftp on a put of a file with an é accent I get the following
message :
[Requested action not taken: internal server error]
in the logs server side :
{{{
2009-04-17 15:22:07+0200 [ProtocolWrapper,3,127.0.0.1] Unhandled Error
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/internet/tcp.py",
line 362, in doRead
return self.protocol.dataReceived(data)
File "/usr/lib/python2.5/site-
packages/twisted/protocols/policies.py", line 72, in dataReceived
self.wrappedProtocol.dataReceived(data)
File "/usr/lib/python2.5/site-
packages/twisted/protocols/basic.py", line 231, in dataReceived
why = self.lineReceived(line)
File "/usr/lib/python2.5/site-
packages/twisted/protocols/ftp.py", line 698, in lineReceived
d = defer.maybeDeferred(self.processCommand, cmd, *args)
--- <exception caught here> ---
File "/usr/lib/python2.5/site-
packages/twisted/internet/defer.py", line 106, in maybeDeferred
result = f(*args, **kw)
File "/usr/lib/python2.5/site-
packages/twisted/protocols/ftp.py", line 729, in processCommand
return method(*params)
File "/usr/lib/python2.5/site-
packages/twisted/protocols/ftp.py", line 1079, in ftp_STOR
d = self.shell.openForWriting(newsegs)
File "/usr/lib/python2.5/site-
packages/allmydata/frontends/ftpd.py", line 255, in openForWriting
path = [unicode(p) for p in path]
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte
0xe0 in position 21: ordinal not in range(128)
}}}
--
--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/682#comment:25>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage
More information about the tahoe-lafs-trac-stream
mailing list