Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dcache-xroot: support relative path in URL
Motivation: Other protocols such as HTTP allow the URL path to be expressed in terms of the user's root, but xroot has always required the absolute path of the file. This can create confusion for experiments which may not have knowledge of the full namespace file tree but only the paths relative to the VO root. Modification: Support both absolute and relative paths for the targets given to xroot. This needs to be done for both source and destination paths in the case of TPC. The procedure is as follows: the path is resolved first by trying to use the user root; if that root is undefined, then the `xrootd.root` root for the door is used. In the case of TPC with tokens, the TPC client logs into the source anonymously with a generated rendezvous key; since a path relative to the user root may not be constructed correctly from the door root, we need to pass the user/effective root determined at the destination door to the TPC client via a special dcache opaque property, and prefer that to the locally determined root at the source when constructing the full path. Result: Both full and relative file paths succeed. Target: master Patch: https://rb.dcache.org/r/13923 Requires-notes: yes Acked-by: Dmitry Acked-by: Tigran
- Loading branch information
Showing
1 changed file
with
56 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters