Merge lp:~mattyw/sharinfoo/view-access-list into lp:sharinfoo
Proposed by
Matthew Williams
Status: | Merged |
---|---|
Merged at revision: | 11 |
Proposed branch: | lp:~mattyw/sharinfoo/view-access-list |
Merge into: | lp:sharinfoo |
Diff against target: |
148 lines (+81/-1) 3 files modified
README (+15/-0) cmd/shfoo/main.go (+35/-0) server.go (+31/-1) |
To merge this branch: | bzr merge lp:~mattyw/sharinfoo/view-access-list |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Casey Marshall | Needs Fixing | ||
Cloud Engineering: Green Squad | Pending | ||
Review via email:
|
Commit message
Added support for listing the owners and readers of a file
Also added a readme
Description of the change
Added support for listing the owners and readers of a file
To post a comment you must log in.
I'm realizing now that we should be using POST for the metadata access rather than GET. GET is not typically used with encoded form values in the request. This will fix req.ParseForm and the req.Form. Get("meta" ) test for the access listing.
Reading the request body in FileServer.handle also breaks the content PUT, as the request Body can only be read once.
I would recommend the following changes:
1. Don't read req.Body in FileServer. handle( ...). Get rid of the "meta=1" substring check. modifyReader. Update the client accordingly.
2. In handleMetadata, process the request as an Access query if method == POST. PUT or DELETE should still dispatch to modifyOwner/