You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "dtretyakov (via GitHub)" <gi...@apache.org> on 2023/04/27 11:19:55 UTC
[GitHub] [incubator-opendal] dtretyakov opened a new issue, #2146: Support redirects in WebDAV service
dtretyakov opened a new issue, #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146
Currently if WebDAV service uses redirects it's impossible to use sccache due to lack of redirects support in opendal (https://github.com/mozilla/sccache/issues/1749).
In OpenDAL core redirects are disabled by default: https://github.com/apache/incubator-opendal/blob/40a0d04bd8081a52e61470450112d66bc8975b1c/core/src/raw/http_util/client.rs#L64
In our case it's fine to support HTTP 302/307 redirects.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Yansongsongsong commented on issue #2146: Support redirects in WebDAV service
Posted by "Yansongsongsong (via GitHub)" <gi...@apache.org>.
Yansongsongsong commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1568306321
Hi anyone can help add `feat:` as prefix of title of this issue?
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!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1525519556
Should be handled inside `webdav` services it self.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: feat: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1568331765
> The PR pipeline is failed due to wrong prefix name of this issue. but i can not modify the title of this issue.
Sorry, it's related to our CI setup. I'm working on the fix.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] VladRassokhin commented on issue #2146: Support redirects in WebDAV service
Posted by "VladRassokhin (via GitHub)" <gi...@apache.org>.
VladRassokhin commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1525535121
>Should be handled inside webdav services it self.
Per [section 12 of WebDAV RFC](https://datatracker.ietf.org/doc/html/rfc4918#section-12):
> Note also that WebDAV servers are
> known to use 300-level redirect responses (and early interoperability
> tests found clients unprepared to see those responses).
Anyway, inability to modify redirection policy from the outside is limiting.
Let's at least change code to not override redirect policy in `HttpClient.build` if it was specified (e.g. `!=Policy::default()`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1525540618
> Let's at least change code to not override redirect policy in `HttpClient.build` if it was specified (e.g. `!=Policy::default()`).
I mean redirect should be handled by serivce itself (aka `opendal:services:Webdav`). Service should check and redirect to location at needs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] dtretyakov commented on issue #2146: Support redirects in WebDAV service
Posted by "dtretyakov (via GitHub)" <gi...@apache.org>.
dtretyakov commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1527943300
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 `Authorization` header value for redirect location.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: feat: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1568479149
Fixed by https://github.com/apache/incubator-opendal/pull/2256
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: feat: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1570367413
Yes, we will release this feature in next patch release.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] dtretyakov commented on issue #2146: feat: Support redirects in WebDAV service
Posted by "dtretyakov (via GitHub)" <gi...@apache.org>.
dtretyakov commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1568322650
@Yansongsongsong renamed, please feel free to proceed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] dtretyakov commented on issue #2146: Support redirects in WebDAV service
Posted by "dtretyakov (via GitHub)" <gi...@apache.org>.
dtretyakov commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1534249587
@Yansongsongsong it looks like that:
```
Request
URL: https://host:port/path/to/object?query=param
Method: GET
Authorization: xxx
...
Response
Status Code: 307
Content-Length: 0
Location: https://cdn-host/path/to/object?query=param&Expires=123&Signature=xxx
```
And then subsequent request should use `Location` from the response to fetch the actual data.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] dtretyakov commented on issue #2146: Support redirects in WebDAV service
Posted by "dtretyakov (via GitHub)" <gi...@apache.org>.
dtretyakov commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1542506124
@Yansongsongsong do we have estimate when redirects will be supported?
I'm asking because it's critical to start using sccache in our setup (https://github.com/mozilla/sccache/issues/1749)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Yansongsongsong commented on issue #2146: Support redirects in WebDAV service
Posted by "Yansongsongsong (via GitHub)" <gi...@apache.org>.
Yansongsongsong commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1542971097
> @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](https://github.com/mozilla/sccache/issues/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.
I have finished the code now and begin to have one integration test.
It may be released in this week. thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Yansongsongsong commented on issue #2146: Support redirects in WebDAV service
Posted by "Yansongsongsong (via GitHub)" <gi...@apache.org>.
Yansongsongsong commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1529010488
> 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 `Authorization` header value for redirect location.
Hi @dtretyakov . Can i have one example for redirecting HTTP response? What does location look like in this case?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Yansongsongsong commented on issue #2146: Support redirects in WebDAV service
Posted by "Yansongsongsong (via GitHub)" <gi...@apache.org>.
Yansongsongsong commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1529010189
pls let me try on this. @Xuanwo
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo commented on issue #2146: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1527026047
## Actions
- [ ] Don't return error while meeting 302/307 in `read`, redirect to new location instead
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] Xuanwo closed issue #2146: feat: Support redirects in WebDAV service
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #2146: feat: Support redirects in WebDAV service
URL: https://github.com/apache/incubator-opendal/issues/2146
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-opendal] dtretyakov commented on issue #2146: feat: Support redirects in WebDAV service
Posted by "dtretyakov (via GitHub)" <gi...@apache.org>.
dtretyakov commented on issue #2146:
URL: https://github.com/apache/incubator-opendal/issues/2146#issuecomment-1570363533
@Xuanwo am I right, that it's not a part of [v0.36.0](https://github.com/apache/incubator-opendal/releases/tag/v0.36.0) release? If so, could we please include it the next bugfix release, e.g. 0.36.1?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org