Print

Print


@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:
```cpp
  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 :+1: . 

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 or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1638#issuecomment-1068384154
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>
########################################################################
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