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

REPORT request with <oc:filter-files> cannot be limited after deleting and recreating user #33840

Open
individual-it opened this issue Dec 10, 2018 · 2 comments
Labels

Comments

@individual-it
Copy link
Member

Steps to reproduce

  1. create user
  2. login
  3. mark files as fav.
  4. request limited REPORT curl -u user1:user1 -X REPORT http://localhost/owncloud-core/remote.php/dav/files/user1/ -d '<?xml version="1.0" encoding="utf-8" ?><oc:filter-files xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns" ><a:prop><oc:favorite/></a:prop><oc:filter-rules><oc:favorite>1</oc:favorite></oc:filter-rules><oc:search><oc:limit>2</oc:limit></oc:search></oc:filter-files>' | xmllint --format -
    All works well
  5. delete user
  6. create same user
  7. request limited REPORT curl -u user1:user1 -X REPORT http://localhost/owncloud-core/remote.php/dav/files/user1/ -d '<?xml version="1.0" encoding="utf-8" ?><oc:filter-files xmlns:a="DAV:" xmlns:oc="http://owncloud.org/ns" ><a:prop><oc:favorite/></a:prop><oc:filter-rules><oc:favorite>1</oc:favorite></oc:filter-rules><oc:search><oc:limit>2</oc:limit></oc:search></oc:filter-files>' | xmllint --format -
    empty result

Expected behaviour

limited search reported

Actual behaviour

empty report

Server configuration

Operating system:
Ubuntu 18.04
Web server:
Apache2
Database:
MySQL
PHP version:
7.1
ownCloud version: (see ownCloud admin page)
11.0
Updated from an older ownCloud or fresh install:
fresh
Where did you install ownCloud from:
git

@individual-it
Copy link
Member Author

reason seems to be that tables oc_vcategory_to_object and oc_vcategory are not cleaned on user deletion

@ownclouders
Copy link
Contributor

GitMate.io thinks possibly related issues are #1841 (Files deleted after recreating user), #33835 (REPORT request with oc:filter-files cannot be limited in subfolder), #27274 (delete), #28084 (Feature Request: Warning before deleting user), and #10453 (Can't delete user.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants