Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PROPFIND request body with properies gets ignored #400

Closed
grote opened this issue Jun 13, 2024 · 1 comment
Closed

PROPFIND request body with properies gets ignored #400

grote opened this issue Jun 13, 2024 · 1 comment

Comments

@grote
Copy link

grote commented Jun 13, 2024

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.

grote added a commit to grote/seedvault that referenced this issue Jun 13, 2024
The underlying issue will affect other functionality though: sigoden/dufs#400
grote added a commit to grote/seedvault that referenced this issue Jun 13, 2024
The underlying issue will affect other functionality though: sigoden/dufs#400
@sigoden
Copy link
Owner

sigoden commented 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.

@sigoden sigoden closed this as completed Jun 14, 2024
grote added a commit to grote/seedvault that referenced this issue Jun 14, 2024
The underlying issue will affect other functionality though: sigoden/dufs#400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants