You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/10/26 15:46:21 UTC
[incubator-opendal] branch lazy-reader updated (482915218 -> a81b140bf)
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a change to branch lazy-reader
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
from 482915218 Fix dbfs
new da8511b33 fix webdav
new a81b140bf Fix complete test
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
core/src/layers/complete.rs | 2 +-
core/src/services/webdav/backend.rs | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
[incubator-opendal] 02/02: Fix complete test
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch lazy-reader
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit a81b140bf51304a21d3879245446ce4d294cad1c
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Thu Oct 26 23:46:12 2023 +0800
Fix complete test
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
core/src/layers/complete.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/core/src/layers/complete.rs b/core/src/layers/complete.rs
index 222f50348..c5e593a47 100644
--- a/core/src/layers/complete.rs
+++ b/core/src/layers/complete.rs
@@ -791,7 +791,7 @@ mod tests {
}
async fn read(&self, _: &str, _: OpRead) -> Result<(RpRead, Self::Reader)> {
- Ok((RpRead::new(), Box::new(())))
+ Ok((RpRead::new(), Box::new(oio::Cursor::new())))
}
async fn write(&self, _: &str, _: OpWrite) -> Result<(RpWrite, Self::Writer)> {
[incubator-opendal] 01/02: fix webdav
Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xuanwo pushed a commit to branch lazy-reader
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit da8511b3378f19f5ccfd6858d0e1127e6635ce65
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Thu Oct 26 23:16:03 2023 +0800
fix webdav
Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
core/src/services/webdav/backend.rs | 1 +
1 file changed, 1 insertion(+)
diff --git a/core/src/services/webdav/backend.rs b/core/src/services/webdav/backend.rs
index 24c80a3da..1e0e3b76e 100644
--- a/core/src/services/webdav/backend.rs
+++ b/core/src/services/webdav/backend.rs
@@ -268,6 +268,7 @@ impl Accessor for WebdavBackend {
let status = resp.status();
match status {
StatusCode::OK | StatusCode::PARTIAL_CONTENT => Ok((RpRead::new(), resp.into_body())),
+ StatusCode::RANGE_NOT_SATISFIABLE => Ok((RpRead::new(), IncomingAsyncBody::empty())),
_ => Err(parse_error(resp).await?),
}
}