rollback the feature of making "ambient upload authority" configurable

This reverses some, but not all, of the changes that were committed in the following set of patches.

rolling back:

Sun Jan 18 09:54:30 MST 2009  toby.murray
  * add 'web.ambient_upload_authority' as a paramater to tahoe.cfg

    M ./src/allmydata/client.py -1 +3
    M ./src/allmydata/test/common.py -7 +9
    A ./src/allmydata/test/test_ambient_upload_authority.py
    M ./src/allmydata/web/root.py +12
    M ./src/allmydata/webish.py -1 +4
Sun Jan 18 09:56:08 MST 2009  zooko@zooko.com
  * trivial: whitespace
  I ran emacs's "M-x whitespace-cleanup" on the files that Toby's recent patch had touched that had trailing whitespace on some lines.

    M ./src/allmydata/test/test_ambient_upload_authority.py -9 +8
    M ./src/allmydata/web/root.py -2 +1
    M ./src/allmydata/webish.py -2 +1
Mon Jan 19 14:16:19 MST 2009  zooko@zooko.com
  * trivial: remove unused import noticed by pyflakes

    M ./src/allmydata/test/test_ambient_upload_authority.py -1
Mon Jan 19 21:38:35 MST 2009  toby.murray
  * doc: describe web.ambient_upload_authority

    M ./docs/configuration.txt +14
    M ./docs/frontends/webapi.txt +11
Mon Jan 19 21:38:57 MST 2009  zooko@zooko.com
  * doc: add Toby Murray to the CREDITS

    M ./CREDITS +4
This commit is contained in:
Zooko O'Whielacronx
2009-01-20 20:47:35 -07:00
parent 0dbc0f1194
commit 7d91dc5efe
6 changed files with 2 additions and 139 deletions

View File

@ -70,20 +70,6 @@ web.static = (string, optional)
With the default settings, http://127.0.0.1:3456/static/foo.html will serve
the contents of $BASEDIR/public_html/foo.html .
web.ambient_upload_authority = (boolean, optional)
This controls whether a node's web server should provide "ambient"
upload/create authority by controlling whether it responds to PUT and
POST requests that do not contain a cap -- i.e. those for uploading
new unlinked files and creating new unlinked directories. If set to
True, a node will respond to these requests as usual. If set to
False, a node will instead refuse these requests, returning an HTTP
status of 'Bad Request'. The default value is True.
Note that setting this to False does not prevent performing operations
on files and directories that already exist, since all of these operations
require the presentation of a cap.
tub.port = (integer, optional)
This controls which port the node uses to accept Foolscap connections from

View File

@ -320,9 +320,6 @@ PUT /uri
mutable file, and return its write-cap in the HTTP respose. The default is
to create an immutable file, returning the read-cap as a response.
Note that this operation is available only when the configuration setting
'web.ambient_upload_authority' is not False (see configuration.txt).
=== Creating A New Directory ===
POST /uri?t=mkdir
@ -333,9 +330,6 @@ PUT /uri?t=mkdir
virtual drive. The "PUT" operation is provided for backwards compatibility:
new code should use POST.
Note that these operations are available only when the configuration setting
'web.ambient_upload_authority' is not False (see configuration.txt).
POST /uri/$DIRCAP/[SUBDIRS../]SUBDIR?t=mkdir
PUT /uri/$DIRCAP/[SUBDIRS../]SUBDIR?t=mkdir
@ -578,9 +572,6 @@ POST /uri?t=mkdir
"false"), then the HTTP response body will simply be the write-cap of the
new directory.
Note that this operation is available only when the configuration setting
'web.ambient_upload_authority' is not False (see configuration.txt).
POST /uri/$DIRCAP/[SUBDIRS../]?t=mkdir&name=CHILDNAME
This creates a new directory as a child of the designated SUBDIR. This will
@ -625,8 +616,6 @@ POST /uri?t=upload
the upload results page. The default is to create an immutable file,
returning the upload results page as a response.
Note that this operation is available only when the configuration setting
'web.ambient_upload_authority' is not False (see configuration.txt).
POST /uri/$DIRCAP/[SUBDIRS../]?t=upload