Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-detect the presence of WebDAV support #72

Open
bbockelm opened this issue Dec 29, 2024 · 0 comments
Open

Auto-detect the presence of WebDAV support #72

bbockelm opened this issue Dec 29, 2024 · 0 comments
Assignees

Comments

@bbockelm
Copy link
Collaborator

The OPTIONS HTTP request is supposed a list of verbs that the server supports. Here's an example response from XRootD:

< HTTP/1.1 200 OK
< Connection: Keep-Alive
< Server: XrootD/v5.7.2
< Content-Length: 0
< DAV: 1
< DAV: <http://apache.org/dav/propset/fs/1>
< Allow: HEAD,GET,PUT,PROPFIND,DELETE,OPTIONS,COPY

If the Allow header contains PROPFIND, then the remote endpoint supports the WebDAV-version of directory listings.

After #70 and #71 are both done, change the auto configuration setting to first query the remote server for information about whether PROPFIND is supported and, if so, use that (otherwise falling back to the HTTP-based method). Keep a lookup cache, renewing every hour, of the responses for OPTIONS based on the FederationFactory class found here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants