-
Notifications
You must be signed in to change notification settings - Fork 517
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
feat: Support redirects in WebDAV service #2146
Comments
Should be handled inside |
Anyway, inability to modify redirection policy from the outside is limiting. |
I mean redirect should be handled by serivce itself (aka |
Actions
|
Please avoid typical security issue during redirect implementation: if "authority" (hostname + port) in redirect location differs from the value in original request, don't send original |
pls let me try on this. @Xuanwo |
Hi @dtretyakov . May i have one example for redirecting HTTP response? What does location look like in this case? |
@Yansongsongsong it looks like that:
And then subsequent request should use |
@Yansongsongsong do we have estimate when redirects will be supported? I'm asking because it's critical to start using sccache in our setup (mozilla/sccache#1749) |
@dtretyakov hi Tretyakov, sorry for the late. Because I had some private staff to handle, there was no progress in last week until this Monday. It may be released in this week. thank you! |
Hi anyone can help add The PR pipeline is failed due to wrong prefix name of this issue. but i can not modify the title of this issue. Thank you so much! |
@Yansongsongsong renamed, please feel free to proceed. |
Sorry, it's related to our CI setup. I'm working on the fix. |
Fixed by #2256 |
Yes, we will release this feature in next patch release. |
Currently if WebDAV service uses redirects it's impossible to use sccache due to lack of redirects support in opendal (mozilla/sccache#1749).
In OpenDAL core redirects are disabled by default: https://github.com/apache/incubator-opendal/blob/40a0d04bd8081a52e61470450112d66bc8975b1c/core/src/raw/http_util/client.rs#L63-L64
In our case it's fine to support HTTP 302/307 redirects for GET requests.
The text was updated successfully, but these errors were encountered: