[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2388: "AssertionError: paths must be Unicode strings" when starting a node

Tahoe-LAFS trac at tahoe-lafs.org
Tue Mar 3 16:30:18 UTC 2015


#2388: "AssertionError: paths must be Unicode strings" when starting a node
-------------------------+-------------------------------------------------
     Reporter:  daira    |      Owner:  daira
         Type:  defect   |     Status:  new
     Priority:           |  Milestone:  1.10.1
  critical               |    Version:  1.10.0
    Component:  code-    |   Keywords:  regression tahoe-start unicode
  nodeadmin              |  blocks-release
   Resolution:           |
Launchpad Bug:           |
-------------------------+-------------------------------------------------

Comment (by warner):

 It looks like `src/allmydata/frontends/auth.py` was recently (30-Jan-2015,
 in 14f7830) changed to use `abspath_expanduser_unicode()` instead of
 `os.path.expanduser()`. The config code has always been providing
 bytestrings, but it previously didn't matter because nothing was checking
 for unicode-ness. With 14f7830, auth.py started rejecting the config
 strings.

 The fix will be to change `Client.init_sftp_server` to convert the
 `self.get_config` strings into unicode before delivering them to
 `SFTPServer`.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2388#comment:3>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list