Skip to content

Still return quota value when free space is unknown - #7808

Merged
PVince81 merged 1 commit into
masterfrom
quota-usequotaevenwhenfreespaceunknown
Mar 20, 2014
Merged

PVince81 merged 1 commit into
masterfrom
quota-usequotaevenwhenfreespaceunknown

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Fixed the quota storage wrapper to correctly return the quota value when
the free space is not known (which usually happens when the disk_free_space
function is disabled)

Fixes #7553

To test this, set this in php.ini:

disable_functions = disk_free_space

and check that the quota still works and appears correctly.

Please review @karlitschek @icewind1991 @schiesbn

Fixed the quota storage wrapper to correctly return the quota value when
the free space is not known (which usually happens when the disk_free_space
function is disabled)
@PVince81

Copy link
Copy Markdown
Contributor Author

Here is what I tested:

With disabled disk_free_space

Quota enabled:

  • File upload limited by quota
  • Personal page shows quota value

Quota disabled:

  • File upload works
  • Personal page shows "?" as total value

With enabled free space

Quota enabled:

  • File upload limited by quota
  • Personal page shows quota value

Quota disabled:

  • File upload works
  • Personal page shows the actual free space from the disk

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 1 updated code elements

@karlitschek

Copy link
Copy Markdown
Contributor

👍

@ghost

ghost commented Mar 19, 2014

Copy link
Copy Markdown

@icewind1991

Copy link
Copy Markdown
Contributor

Loos good 👍

PVince81 pushed a commit that referenced this pull request Mar 20, 2014
…eunknown

Still return quota value when free space is unknown
@PVince81
PVince81 merged commit 316a22b into master Mar 20, 2014
@PVince81
PVince81 deleted the quota-usequotaevenwhenfreespaceunknown branch March 20, 2014 14:29
@PVince81

Copy link
Copy Markdown
Contributor Author

@karlitschek backport to stable6 ?

@karlitschek

Copy link
Copy Markdown
Contributor

yes please

@PVince81

Copy link
Copy Markdown
Contributor Author

Backport PR for stable6: 7834

@lock lock Bot locked as resolved and limited conversation to collaborators Aug 22, 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.

OC 6.0.2 : User storage limit don't work

4 participants