Changeset c324852 in trunk
- Timestamp:
- 2020-10-29T17:51:29Z (4 years ago)
- Branches:
- master
- Children:
- dce3680
- Parents:
- 0cf6ca86
- Location:
- src/allmydata
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/allmydata/node.py ¶
r0cf6ca86 rc324852 312 312 313 313 item = self.config.get(section, option) 314 if option.endswith(".furl") and self._contains_unescaped_hash(item):314 if option.endswith(".furl") and '#' in item: 315 315 raise UnescapedHashError(section, option, item) 316 316 -
TabularUnified src/allmydata/test/test_node.py ¶
r0cf6ca86 rc324852 186 186 Hashes in furl options are not allowed, resulting in exception. 187 187 """ 188 escaped = "lalal\\#onohash"189 188 basedir = self.mktemp() 190 189 fileutil.make_dirs(basedir) … … 196 195 with self.assertRaises(UnescapedHashError): 197 196 config.get_config("node", "log_gatherer.furl") 198 199 with open(os.path.join(basedir, 'tahoe.cfg'), 'wt') as f:200 f.write("[node]\n")201 f.write("log_gatherer.furl = %s\n" % (escaped,))202 self.assertEquals(config.get_config("node", "log_gatherer.furl"), escaped)203 197 204 198 def test_missing_config_item(self):
Note: See TracChangeset
for help on using the changeset viewer.