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

Depth:0 does not work properly on DAV notifications home #4858

Open
alecpl opened this issue Mar 21, 2024 · 0 comments
Open

Depth:0 does not work properly on DAV notifications home #4858

alecpl opened this issue Mar 21, 2024 · 0 comments

Comments

@alecpl
Copy link
Contributor

alecpl commented Mar 21, 2024

curl -k --user '[email protected]:password' \
    https://demo.domain.tld/dav/notifications/user/[email protected] \
    -X PROPFIND \
    -H "Depth: 0" \
    -H "Content-Type: application/xml" \
    --data '<?xml version="1.0" encoding="utf-8" ?><d:propfind xmlns:d="DAV:"><d:allprop></d:allprop></d:propfind>' \
    | xmllint -format -

returns the root folder and all notifications in it, but it should return only the root folder.

If the client is using caching, it may want to get the getlastmodified and getetag properties before attempting to get the folder contents.

ps. it looks that Depth: 1,noroot does not work at all.

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

1 participant