Print

Print


Dear XRootD devs,

trying to use rclone against an XRootD redirector using cms.dfs lookup distrib, I realized it fails. The cause is that the Go stdlib would rewrite the request method to GET when a 302 status is encountered.

Going through history, it seems the cause is that 302 allowed clients to rewrite the request method to GET at least for POST requests, as shown in RFC2616.
Later on, it was recommended to clarify server intent by using one of:

You can find a more in-depth discussion at:

dCache seems to use 307 at least on PUT requests, to clarify the request method should not be changed upon redirect:
https://github.com/dCache/dcache/blob/edb81b0cc1120721137e15f32800ee4dc7a740c4/skel/share/defaults/webdav.properties#L258-L260

Before trying to push a workaround into rclone, I wonder whether there would be any concerns against changing XrdHttp to use 307 for redirects instead of 302?
So I am opening this as an RFC to get opinions.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1638@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1638", "url": "https://github.com/xrootd/xrootd/issues/1638", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1