[GH-ISSUE #400] PROPFIND request body with properies gets ignored #213

Closed
opened 2026-04-08 16:51:12 +03:00 by zhus · 1 comment
Owner

Originally created by @grote on GitHub (Jun 13, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/400

The following curl request is only asking for displayname and resourcetype properties:

curl --user "user:pass" -X PROPFIND 'https://example.com/dufs' -H "Depth: 1" -H 'Content-Type: application/xml' -d @- << EOF
<?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:"><prop><displayname /><resourcetype /></prop></propfind>
EOF

yet still other properties get returned:

<D:getlastmodified>Thu, 13 Jun 2024 18:21:58 GMT</D:getlastmodified>

Other WebDAV implementations only seem to return what I asked for.

Background: This may not be an issue apart from response sizes, but I actually get a runtime crash in a project, because a library is used for parsing getlastmodified which I don't want to depend on, but my WebDAV client library pulls this in at runtime when it finds the getlastmodified property.

Originally created by @grote on GitHub (Jun 13, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/400 The following curl request is only asking for `displayname` and `resourcetype` properties: ```bash curl --user "user:pass" -X PROPFIND 'https://example.com/dufs' -H "Depth: 1" -H 'Content-Type: application/xml' -d @- << EOF <?xml version='1.0' encoding='UTF-8' ?><propfind xmlns="DAV:"><prop><displayname /><resourcetype /></prop></propfind> EOF ``` yet still other properties get returned: ``` xml <D:getlastmodified>Thu, 13 Jun 2024 18:21:58 GMT</D:getlastmodified> ``` Other WebDAV implementations only seem to return what I asked for. Background: This may not be an issue apart from response sizes, but I actually get a runtime crash in a project, because a library is used for parsing `getlastmodified` which I don't want to depend on, but my WebDAV client library pulls this in at runtime when it finds the `getlastmodified` property.
zhus closed this issue 2026-04-08 16:51:12 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 14, 2024):

Sorrry, Your current requirements exceed the webdav capabilities of dufs.

Dufs do not guarantee strict compliance with the WebDAV specification.

For example, it doesn't implement PROPPATCH, LOCK, or UNLOCK. Additionally, Dufs can only handle PROPFIND with a depth of 0 or 1.

We just need WebDAV on dufs to handle basic operations.

<!-- gh-comment-id:2166991354 --> @sigoden commented on GitHub (Jun 14, 2024): Sorrry, Your current requirements exceed the webdav capabilities of dufs. Dufs do not guarantee strict compliance with the WebDAV specification. For example, it doesn't implement PROPPATCH, LOCK, or UNLOCK. Additionally, Dufs can only handle PROPFIND with a depth of 0 or 1. We just need WebDAV on dufs to handle basic operations.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#213