Fix new DAV quota check target path#28160
Conversation
|
@SergioBertolinSG it's too early for review but thanks for confirming the two cases I added. |
e89af08 to
6f98716
Compare
|
I'm done, please review: @SergioBertolinSG please review my test changes and additions. @DeepDiver1975 please review the QuotaPlugin additions which are related to new dav. I know they're not ideal but I'm aiming for a backportable fix here. (we could use |
|
I'll address the failing unit tests |
6f98716 to
36aeb0d
Compare
|
@SergioBertolinSG I have now added overwrite upload test cases for everything to make sure all is covered. Now QuotaPlugin was switched to always use @DeepDiver1975 @jvillafanez please review |
36aeb0d to
00d9078
Compare
|
Rebased to restart unstable CI env |
|
👍 for the integration tests part. |
00d9078 to
5c15769
Compare
|
rebased due to Jenkins' sudden death |
|
Aha, finally a legit failure: |
| $source = '/uploads/' . $user . '/' . $id . '/.file'; | ||
| $destination = substr($this->baseUrl, 0, -4) . $this->getDavFilesPath($user) . $dest; | ||
| $this->makeDavRequest($user, 'MOVE', $source, [ | ||
| $this->response = $this->makeDavRequest($user, 'MOVE', $source, [ |
There was a problem hiding this comment.
looks like storing the response here makes the checksum test fail, weird...
|
Fixed checksum test by making it check the HTTP status earlier. |
|
👍 |
|
@owncloud-bot I hate you |
- use correct actual path in `QuotaPlugin` when coming from the new DAV endpoint - add quota check when moving FutureFile using chunked upload to new DAV endpoint
Due to a small change in the Webdav test steps, the response of the last Webdav call is stored now, so we need to check the HTTP status earlier.
|
anotherrrrr rrrrebase |
688da46 to
c6e1a85
Compare
|
stable10: #28261 |
|
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. |
Description
Fixes the following:
QuotaPluginwhen coming from the new DAV endpointAlso adds quota test hypercube to make sure we didn't forget anything, from owncloud/QA#461
Related Issue
Fixes #28159
Fixes owncloud/QA#461
Motivation and Context
One must not be able to bypass quotas
How Has This Been Tested?
Automated tests.
Screenshots (if appropriate):
Types of changes
Checklist:
TODO:
cc @SergioBertolinSG