Merge lp:~pedronis/u1db/naming-constraints into lp:u1db
Proposed by
Samuele Pedroni
Status: | Merged |
---|---|
Approved by: | Samuele Pedroni |
Approved revision: | 137 |
Merged at revision: | 137 |
Proposed branch: | lp:~pedronis/u1db/naming-constraints |
Merge into: | lp:u1db |
Diff against target: |
237 lines (+81/-4) 12 files modified
u1db/__init__.py (+7/-0) u1db/backends/__init__.py (+12/-0) u1db/backends/inmemory.py (+1/-0) u1db/backends/sqlite_backend.py (+1/-0) u1db/errors.py (+1/-0) u1db/remote/http_app.py (+3/-1) u1db/remote/http_client.py (+6/-1) u1db/remote/http_errors.py (+4/-2) u1db/tests/test_backends.py (+6/-0) u1db/tests/test_http_app.py (+26/-0) u1db/tests/test_http_client.py (+5/-0) u1db/tests/test_http_database.py (+9/-0) |
To merge this branch: | bzr merge lp:~pedronis/u1db/naming-constraints |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John A Meinel (community) | Approve | ||
Review via email: mp+84109@code.launchpad.net |
Description of the change
* start imposing constraints on:
db names (for remote access): [a-zA-Z0-
doc ids: [^\\/]+
* fix quoting issues when constructing URLs in HTTPClient, e.g. %FFFF should be a supported doc id
To post a comment you must log in.
I think:
ERROR_STATUSES. add(400)
is clearer than doing the set "|" operations.
Otherwise, looks good.