tahoe-lafs/src/allmydata
Brian Warner c56a0a4ba9 fix unicode handling in server_id from YAML
YAML, like JSON, is all-unicode. StorageFarmBroker.set_static_servers()
is defined to take an all-unicode dictionary (the "storage:" key from
private/servers.yaml), so the server_id keys it gets will be unicode.
NativeStorageServer is defined to accept server_ids which are bytes (at
least it is now). The tests were only passing bytes into
set_static_servers(), whereas a real launch passed unicode in, causing a
problem when NativeStorageServer tried to base32.a2b() the pubkey and
choked on the unicode it received.

This fixes set_static_servers() to convert the server_id to bytes, and
changes NativeStorageServer to assert that it gets bytes. It also fixes
the test to match real usage more closely.
2016-08-28 02:42:51 -07:00
..
frontends Fix file-operations/inotify testing 2016-08-18 10:41:40 -06:00
immutable make IServer.get_serverid() use pubkey, not tubid 2016-08-26 14:29:50 -07:00
introducer factor out yamlutil.py 2016-07-19 17:31:41 -07:00
mutable Progress API 2016-04-12 00:30:50 -07:00
scripts Improve error-reporting from JSON APIs, and use it better in CLI 2016-08-09 14:36:09 -06:00
storage add "Available" column to welcome page (#648) 2014-11-23 06:03:00 +00:00
test fix unicode handling in server_id from YAML 2016-08-28 02:42:51 -07:00
util pyflakes warnings 2016-07-21 12:35:59 -07:00
web static servers: tolerate missing nickname/versions 2016-08-27 11:34:32 -07:00
windows fix codechecks: trailing whitespace, suspicious variable captures 2016-08-19 17:42:05 -07:00
__init__.py remove _appname.py file 2016-08-11 23:24:11 -07:00
__main__.py add __main__.py so "python -m allmydata" works 2016-03-25 14:49:18 -07:00
_auto_deps.py remove humanize, use internal method, teach internal method to understand timedelta 2016-07-21 12:35:59 -07:00
blacklist.py Progress API 2016-04-12 00:30:50 -07:00
check_results.py Remove 'needs-rebalancing' and add 'count-happiness' to checker reports; repair tests. fixes #1784, #2105 2014-03-20 16:13:57 +00:00
client.py factor out "Tub maker" 2016-08-27 17:36:55 -07:00
codec.py download: refactor handling of URI Extension Block and crypttext hash tree, simplify things 2008-12-05 08:17:54 -07:00
control.py control.py: minor improvements 2015-04-28 11:03:12 -07:00
dirnode.py Progress API 2016-04-12 00:30:50 -07:00
hashtree.py hashtree.py: another micro-optimization, expand on a comment 2009-04-03 21:35:27 -07:00
history.py stop making History be a Service, it wasn't necessary 2009-08-15 04:44:15 -07:00
interfaces.py remove "key-generator" node type and client support 2016-05-04 16:53:04 -07:00
magicfolderdb.py get rid of a bunch of debug 2016-07-21 12:35:59 -07:00
magicpath.py fix typo for .conflict files 2016-07-21 12:35:59 -07:00
monitor.py Remove spurious 'self' arguments that should not be included in interface declarations. 2012-07-24 03:32:56 +00:00
node.py implement full range of Tor handlers 2016-08-28 02:42:47 -07:00
nodemaker.py Add comment explaining fix to #1679. refs #1679 2013-02-08 19:27:57 +00:00
stats.py stats-gatherer: add --hostname/--location/--port 2016-05-04 17:58:45 -07:00
storage_client.py fix unicode handling in server_id from YAML 2016-08-28 02:42:51 -07:00
unknown.py Add mutable field to t=json output for unknown nodes, when mutability is known 2010-01-28 19:14:24 -08:00
uri.py URIs are strs. 2015-12-28 20:12:29 +00:00
webish.py use twisted.web.static, not nevow.static, for public_html/ 2016-04-28 00:42:59 -07:00