Skip to content

Allow 0 byte quota to be entered on UI#29109

Merged
phil-davis merged 1 commit intomasterfrom
set-quota-0-29105
Sep 27, 2017
Merged

Allow 0 byte quota to be entered on UI#29109
phil-davis merged 1 commit intomasterfrom
set-quota-0-29105

Conversation

@phil-davis
Copy link
Contributor

Description

  1. Add a test for entering 0 byte quota (note: 0 can be entered as "0" "0 B" "0 KB" etc)
  2. While we are here, add a test to make sure entering a quota of "-1" fails.
  3. Improve the check of the return value from computerFileSize()

Related Issue

#29105
also improves on old closed issue #25358

Motivation and Context

It be broke.

How Has This Been Tested?

Run automated UI tests in a local dev VM. Watch it work.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@individual-it
Copy link
Member

if "0B" is a valid quota then 👍

@phil-davis
Copy link
Contributor Author

For people that just want to offer shared folders to a user, the user's own quota needs to be zero.
Then the user cannot save any real files in their own "personal" area.
Note: there is another issue about the fact that a user with zero quota can create empty files and empty folders - but that is a separate thing that follows on after this PR which lets the admin actually set zero quota.

@hodyroff
Copy link

In 9.1 with 0 quota I am not able to create any file or folder (Web Frontend).

@phil-davis phil-davis merged commit 336789a into master Sep 27, 2017
@phil-davis phil-davis deleted the set-quota-0-29105 branch September 27, 2017 17:42
@phil-davis
Copy link
Contributor Author

Now that zero quota can be entered, there will need to be followup to test exactly what can and cannot be done by a user with 0 bytes quota. Then decide if that is the desired behavior or not.

@davitol
Copy link
Contributor

davitol commented Sep 28, 2017

Now that zero quota can be entered, there will need to be followup to test exactly what can and cannot be done by a user with 0 bytes quota. Then decide if that is the desired behavior or not.

@pmaier1 @PVince81 FYI

@PVince81
Copy link
Contributor

PVince81 commented Oct 9, 2017

I'd say the same things as a user who has filled their storages completely and has 0 bytes available. I don't think "0 bytes quota" should have a special meaning here.

@lock
Copy link

lock bot commented Aug 2, 2019

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.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants