Ticket #1028: node-url-https.dpatch

File node-url-https.dpatch, 4.7 KB (added by francois, at 2010-04-30T19:18:13Z)
Line 
1Fri Apr 30 20:56:09 CEST 2010  Francois Deppierraz <francois@ctrlaltdel.ch>
2  * CLI: Support for https url in option --node-url
3 
4  This patch modifies the regular expression used for verifying of '--node-url'
5  parameter.  Support for accessing a Tahoe gateway over HTTPS was already
6  present, thanks to Python's urllib.
7 
8
9New patches:
10
11[CLI: Support for https url in option --node-url
12Francois Deppierraz <francois@ctrlaltdel.ch>**20100430185609
13 Ignore-this: 1717176b4d27c877e6bc67a944d9bf34
14 
15 This patch modifies the regular expression used for verifying of '--node-url'
16 parameter.  Support for accessing a Tahoe gateway over HTTPS was already
17 present, thanks to Python's urllib.
18 
19] {
20hunk ./src/allmydata/scripts/cli.py 5
21 from twisted.python import usage
22 from allmydata.scripts.common import BaseOptions, get_aliases
23 
24-NODEURL_RE=re.compile("http://([^:]*)(:([1-9][0-9]*))?")
25+NODEURL_RE=re.compile("http(s?)://([^:]*)(:([1-9][0-9]*))?")
26 
27 class VDriveOptions(BaseOptions, usage.Options):
28     optParameters = [
29hunk ./src/allmydata/test/test_cli.py 91
30                         "--node-url", "http://localhost:8080"])
31         self.failUnlessEqual(o["node-url"], "http://localhost:8080/")
32 
33+        o = cli.ListOptions()
34+        o.parseOptions(["--node-directory", "cli/test_options",
35+                        "--node-url", "https://localhost/"])
36+        self.failUnlessEqual(o["node-url"], "https://localhost/")
37+
38     def _dump_cap(self, *args):
39         config = debug.DumpCapOptions()
40         config.stdout,config.stderr = StringIO(), StringIO()
41}
42
43Context:
44
45[backupdb.did_create_directory: use REPLACE INTO, not INSERT INTO + ignore error
46Brian Warner <warner@lothar.com>**20100428050803
47 Ignore-this: 1fca7b8f364a21ae413be8767161e32f
48 
49 This handles the case where we upload a new tahoe directory for a
50 previously-processed local directory, possibly creating a new dircap (if the
51 metadata had changed). Now we replace the old dirhash->dircap record. The
52 previous behavior left the old record in place (with the old dircap and
53 timestamps), so we'd never stop creating new directories and never converge
54 on a null backup.
55] 
56["tahoe webopen": add --info flag, to get ?t=info
57Brian Warner <warner@lothar.com>**20100424233003
58 Ignore-this: 126b0bb6db340fabacb623d295eb45fa
59 
60 Also fix some trailing whitespace.
61] 
62[docs: install.html http-equiv refresh to quickstart.html
63zooko@zooko.com**20100421165708
64 Ignore-this: 52b4b619f9dde5886ae2cd7f1f3b734b
65] 
66[docs: install.html -> quickstart.html
67zooko@zooko.com**20100421155757
68 Ignore-this: 6084e203909306bed93efb09d0e6181d
69 It is not called "installing" because that implies that it is going to change the configuration of your operating system. It is not called "building" because that implies that you need developer tools like a compiler. Also I added a stern warning against looking at the "InstallDetails" wiki page, which I have renamed to "AdvancedInstall".
70] 
71[Fix another typo in tahoe_storagespace munin plugin
72david-sarah@jacaranda.org**20100416220935
73 Ignore-this: ad1f7aa66b554174f91dfb2b7a3ea5f3
74] 
75[Add dependency on windmill >= 1.3
76david-sarah@jacaranda.org**20100416190404
77 Ignore-this: 4437a7a464e92d6c9012926b18676211
78] 
79[licensing: phrase the OpenSSL-exemption in the vocabulary of copyright instead of computer technology, and replicate the exemption from the GPL to the TGPPL
80zooko@zooko.com**20100414232521
81 Ignore-this: a5494b2f582a295544c6cad3f245e91
82] 
83[munin-tahoe_storagespace
84freestorm77@gmail.com**20100221203626
85 Ignore-this: 14d6d6a587afe1f8883152bf2e46b4aa
86 
87 Plugin configuration rename
88 
89] 
90[setup: add licensing declaration for setuptools (noticed by the FSF compliance folks)
91zooko@zooko.com**20100309184415
92 Ignore-this: 2dfa7d812d65fec7c72ddbf0de609ccb
93] 
94[setup: fix error in licensing declaration from Shawn Willden, as noted by the FSF compliance division
95zooko@zooko.com**20100309163736
96 Ignore-this: c0623d27e469799d86cabf67921a13f8
97] 
98[CREDITS to Jacob Appelbaum
99zooko@zooko.com**20100304015616
100 Ignore-this: 70db493abbc23968fcc8db93f386ea54
101] 
102[desert-island-build-with-proper-versions
103jacob@appelbaum.net**20100304013858] 
104[docs: a few small edits to try to guide newcomers through the docs
105zooko@zooko.com**20100303231902
106 Ignore-this: a6aab44f5bf5ad97ea73e6976bc4042d
107 These edits were suggested by my watching over Jake Appelbaum's shoulder as he completely ignored/skipped/missed install.html and also as he decided that debian.txt wouldn't help him with basic installation. Then I threw in a few docs edits that have been sitting around in my sandbox asking to be committed for months.
108] 
109[TAG allmydata-tahoe-1.6.1
110david-sarah@jacaranda.org**20100228062314
111 Ignore-this: eb5f03ada8ea953ee7780e7fe068539
112] 
113Patch bundle hash:
11456811bcbef82e695991442c5be58bb76d1f5e593