Skip to content

Quota check for shared storage doesn't kick in for received shares in new DAV endpoint #28159

Closed

Description

@PVince81

Steps

  1. Create two users "user1" and "user2"
  2. Set quota of "user1" to unlimited
  3. Set quota of "user2" to 2 MB
  4. Login as "user2"
  5. Create a folder "shared_by_user2"
  6. Share it with "user1"
  7. Login as "user1"
  8. Start cadaver using the new dav endpoint: "remote.php/dav/files/user1"
  9. Upload a 10+ MB file into the root
  10. Upload a 10+ MB file into the received folder "shared_by_user2"

Expected result

Upload works into the root.
Upload fails into the received folder due to quota.

Actual result

Upload works in both cases. The quota check doesn't kick in for mounted shared folders.

Versions

Observed in 10.0.2 using the desktop client 2.3.2.
Reported as regression here #14600 (comment)

Activity

  1. added this to the 10.0.3 milestone on Jun 19, 2017
  2. self-assigned this
    on Jun 19, 2017
  3. changed the title [-]Quota check for shared storage doesn't kick in[/-] [+]Quota check for shared storage doesn't kick in for received shares[/+] on Jun 19, 2017
  4. PVince81 commented on Jun 19, 2017

    @PVince81
    ContributorAuthor

    a quick debug shows that the wrong path is used when checking quota, basically it tries to fetch the quota from "files/files/user1/shared_with_user2/testfile.dat" which looks like the new DAV prefix...

  5. PVince81 commented on Jun 19, 2017

    @PVince81
    ContributorAuthor

    which basically means this never worked before, so not technically a server regression... but still, only happening now that the newer clients are using the new DAV endpoint.

    PR incoming with further research...

  6. PVince81 commented on Jun 19, 2017

    @PVince81
    ContributorAuthor

    Raised owncloud/QA#461 to increase automated test coverage

  7. PVince81 commented on Jun 19, 2017

    @PVince81
    ContributorAuthor

    PR here #28160

  8. changed the title [-]Quota check for shared storage doesn't kick in for received shares[/-] [+]Quota check for shared storage doesn't kick in for received shares in new DAV endpoint[/+] on Jun 20, 2017
  9. PVince81 commented on Jun 22, 2017

    @PVince81
    ContributorAuthor

    Additional issue: when using chunk upload on new DAV endpoint, it doesn't trigger QuotaPlugin at all because it's a MOVE operation, not PUT...

  10. lock commented on Aug 1, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  11. locked as resolved and limited conversation to collaborators on Aug 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions