-
Notifications
You must be signed in to change notification settings - Fork 19
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
[OP#47630] Check if free space is a positive value #390
Merged
SwikritiT
merged 1 commit into
release/2.3
from
handle-negative-return-value-of-free-space
Apr 20, 2023
Merged
[OP#47630] Check if free space is a positive value #390
SwikritiT
merged 1 commit into
release/2.3
from
handle-negative-return-value-of-free-space
Apr 20, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
individual-it
requested changes
Apr 13, 2023
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.
looks good, can we add unit tests for that case?
yes I can add it |
SwikritiT
force-pushed
the
handle-negative-return-value-of-free-space
branch
from
April 20, 2023 06:55
dbcd50a
to
cba195e
Compare
individual-it
approved these changes
Apr 20, 2023
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
SwikritiT
force-pushed
the
handle-negative-return-value-of-free-space
branch
from
April 20, 2023 09:12
769e443
to
65774c1
Compare
JS Code CoverageCoverage after merging handle-negative-return-value-of-free-space into release/2.3 will be
Coverage Report
|
delete-merged-branch
bot
deleted the
handle-negative-return-value-of-free-space
branch
April 20, 2023 09:48
SwikritiT
added a commit
that referenced
this pull request
Apr 26, 2023
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
SwikritiT
added a commit
that referenced
this pull request
Apr 27, 2023
* change master to stable26 Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * Check if free space is a positive value (#390) Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * run ci in master Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * Update gihub packages Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> * update version of the app for patch release (#396) Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com> --------- Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently we're checking quota like this
But since there's a possibility that the function getFreeSpace might return a negative
https://github.com/nextcloud/server/blob/b1abc57c07a61b5a0557395d86c3e31486a96c23/lib/public/Files/FileInfo.php#L52
https://github.com/nextcloud/server/blob/b1abc57c07a61b5a0557395d86c3e31486a96c23/lib/public/Files/FileInfo.php#L57
https://github.com/nextcloud/server/blob/b1abc57c07a61b5a0557395d86c3e31486a96c23/lib/public/Files/FileInfo.php#L62
So treat a negative return as an unlimited space
Related work package: https://community.openproject.org/projects/nextcloud-integration/work_packages/47630/activity?query_id=3504