@ffurano That seems to get us there only halfways. The Go stdlib used by Rclone apparently switches any request to GET when receiving 302, so also PROPFIND is converted to GET, which breaks the WebDAV metadata queries.

Hence, I tried:

  if (request != rtGET)
    prot->SendSimpleResp(307, NULL, (char *) redirdest.c_str(), 0, 0, keepalive);
  else
    prot->SendSimpleResp(302, NULL, (char *) redirdest.c_str(), 0, 0, keepalive);

i.e. using 307 in case the request is not a GET request already anyways. After this change, rclone seems to work fine against an XRootD redirector setup 👍 .

The onyl remaining breakage with rclone seems to be that PUT still does not work as expected — for some reason, 307 is interpreted as an error (but I don't understand why). I have pinged the rclone devs on it and will report back once I have clarification (seems like an rclone bug to me).


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/1068384154@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1638#issuecomment-1068384154", "url": "https://github.com/xrootd/xrootd/issues/1638#issuecomment-1068384154", "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