bxb100 opened a new issue, #1782: URL: https://github.com/apache/incubator-opendal/issues/1782
According to [RFC 4918](https://www.rfc-editor.org/rfc/rfc4918#section-9.1) > The PROPFIND method retrieves properties defined on the resource identified by the Request-URI the code https://github.com/apache/incubator-opendal/blob/1d563b42e10834d3726ef71458d2cea6c948351c/core/src/services/obs/backend.rs#L375 can't achieve file `content-length` in some WebDAV servers, such as [jianguoyun](https://www.jianguoyun.com/) should using `propfind` to get `getcontentlength` `getcontenttype` `getlastmodified` `getetag` ```xml <d:multistatus xmlns:d="\"DAV:\"" xmlns:s="\"http://ns.jianguoyun.com\""> <d:response> <d:href>/dav/cs/test</d:href> <d:propstat> <d:prop> <d:getetag>xxxx</d:getetag> <d:getcontenttype>application/octet-stream</d:getcontenttype> <d:displayname>test</d:displayname> <d:owner>xxxx</d:owner> <d:getcontentlength>13</d:getcontentlength> <d:getlastmodified>Mon, 27 Mar 2023 08:12:39 GMT</d:getlastmodified> <d:resourcetype></d:resourcetype> <d:current-user-privilege-set> <d:privilege> <d:read></d:read> </d:privilege> <d:privilege> <d:write></d:write> </d:privilege> <d:privilege> <d:all></d:all> </d:privilege> <d:privilege> <d:read_acl></d:read_acl> </d:privilege> <d:privilege> <d:write_acl></d:write_acl> </d:privilege> </d:current-user-privilege-set> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> </d:multistatus> ``` ## Reference * [webdav-client](https://github.com/perry-mitchell/webdav-client/blob/8d9694613c978ce7404e26a401c39a41f125f87f/source/operations/stat.ts#L8) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
