-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove part files when upload is cancelled for all public links #36761
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
b649ae9
to
1365974
Compare
Code looks good to me. We need to check the CI. In addition, check if it's easy to include an unittest for the change |
changelog needs an issue or PR link:
until that is fixed, the "real" CI is not going to run |
6463283
to
31a9e75
Compare
31a9e75
to
776a2dd
Compare
Codecov Report
@@ Coverage Diff @@
## master #36761 +/- ##
=========================================
Coverage 64.68% 64.68%
- Complexity 19120 19121 +1
=========================================
Files 1269 1269
Lines 74778 74778
Branches 1320 1320
=========================================
Hits 48372 48372
Misses 26018 26018
Partials 388 388
Continue to review full report at Codecov.
|
@@ -75,6 +75,14 @@ public function testUnlinkNoDelete() { | |||
$this->assertTrue($storage->file_exists('foo')); | |||
} | |||
|
|||
public function testUnlinkPartFiles() { | |||
$file = 'foo.txt.part'; | |||
$storage = $this->getMaskedStorage(Constants::PERMISSION_ALL - Constants::PERMISSION_UPDATE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should check without delete permission
Remove the part files when upload is cancelled for the public links. Signed-off-by: Sujith H <sharidasan@owncloud.com>
776a2dd
to
aea03bd
Compare
Remove the part files when upload is cancelled for
the public links.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
When user tries to upload files to public links with
Upload Only
orDownload / View / Upload
and cancels when the files are uploaded:Then it is noticed that the part files are not cleaned up properly.
So this change would help to clean up the part files even though the upload is cancelled for the public links.
Related Issue
Motivation and Context
This change set helps to clean up the part files when the uplaod is cancelled for the public links.
How Has This Been Tested?
Upload Only
Download / View / Upload
Screenshots (if appropriate):
Types of changes
Checklist: