You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "bxb100 (via GitHub)" <gi...@apache.org> on 2023/03/27 12:39:22 UTC

[GitHub] [incubator-opendal] bxb100 opened a new issue, #1782: WebDAV stat should using `propfind` method not `head`

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="\&quot;DAV:\&quot;" xmlns:s="\&quot;http://ns.jianguoyun.com\&quot;">
       <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: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-opendal] bxb100 commented on issue #1782: WebDAV stat should using `propfind` method not `head`

Posted by "bxb100 (via GitHub)" <gi...@apache.org>.
bxb100 commented on issue #1782:
URL: https://github.com/apache/incubator-opendal/issues/1782#issuecomment-1485226173

   sure, I'll fix it ASAP


-- 
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 #1782: WebDAV stat should using `propfind` method not `head`

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #1782:
URL: https://github.com/apache/incubator-opendal/issues/1782#issuecomment-1485217899

   Thanks for the report! Would you like to fix it?


-- 
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 #1782: WebDAV stat should using `propfind` method not `head`

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #1782:
URL: https://github.com/apache/incubator-opendal/issues/1782#issuecomment-1485227564

   > sure, I'll fix it ASAP
   
   Thanks a lot!


-- 
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 #1782: WebDAV stat should using `propfind` method not `head`

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #1782: WebDAV stat should using `propfind` method not `head`
URL: https://github.com/apache/incubator-opendal/issues/1782


-- 
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