Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webdav/macaroon: Fix macaroon creation with multiple path restrictions.
Motivation: When several path restrictions exist, typically the home and upload paths, the macaroon creation fails with a http error 500 and the error message "Cannot serialise with multiple path restrictions". Modification: The macaroon creation logic has been reviewed to check if the requested path for the macaroon is contained in each path restriction. If yes, the macaroon creation succeeds. If not, the macaroon creation fails with the error "Bad request path: Desired path not within existing path". Result: The macaroon creation succeeds when multiple path restrictions are defined. Acked-by: Paul Millar Target: master, 4.2, 4.1, 4.0, 3.2 Require-notes: yes Require-book: no Patch: https://rb.dcache.org/r/11154/ Committed: Pull-request: https://github.com/dCache/dcache/pull/xxxx Signed-off-by: Vincent Garonne vgaronne@gmail.com
- Loading branch information