Skip to content
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

ocs/v1.php/cloud/users/{userId} -> quota -> wrong relative amount #4357

Closed
AlexAndBear opened this issue Aug 8, 2022 · 3 comments · Fixed by #4590
Closed

ocs/v1.php/cloud/users/{userId} -> quota -> wrong relative amount #4357

AlexAndBear opened this issue Aug 8, 2022 · 3 comments · Fixed by #4590
Assignees
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug

Comments

@AlexAndBear
Copy link
Contributor

AlexAndBear commented Aug 8, 2022

Describe the bug

ocs/v1.php/cloud/users/{userId} -> quota -> wrong relative amount

image

Steps to reproduce

Steps to reproduce the behavior:

  1. Set personal drive quota to 100MB
  2. Upload a file with 69MB
  3. See quota relative property in ocs/v1.php/cloud/users/admin endpoint
<quota
>
<free
>
30818752
</free
>
<used
>
69181248
</used
>
<total
>
100000000
</total
>
<relative
>
0.69181246
</relative
>
</quota>

Expected behavior

Should be: 69.181246

Actual behavior

Is: 0.69181246

Setup

Please describe how you started the server and provide a list of relevant environment variables or configuration files.

OCIS_XXX=somevalue
OCIS_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

@micbar
Copy link
Contributor

micbar commented Aug 12, 2022

Checked with ocs spec, should be real percentage like @janackermann states it.

@micbar micbar added the Priority:p3-medium Normal priority label Aug 12, 2022
@micbar micbar added this to the 2.0.0 General Availability milestone Aug 12, 2022
@micbar micbar added GA-Blocker Priority:p2-high Escalation, on top of current planning, release blocker and removed Priority:p3-medium Normal priority labels Sep 14, 2022
@rhafer rhafer self-assigned this Sep 14, 2022
@rhafer
Copy link
Contributor

rhafer commented Sep 14, 2022

Will be fixed with cs3org/reva#3238

@SwikritiT
Copy link
Contributor

SwikritiT commented Jan 30, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

4 participants