Skip to content

Custom quotas like 4.1 or 8.2 GB fail with HTTP 400 #3673

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Custom quotas like 4.1 or 8.2 GB fail with HTTP 400. Cause: packages/web-pkg/src/components/QuotaSelect.vue:128 computes parseFloat(option) * Math.pow(10, 9) without rounding.

Reproduction Steps

  1. Edit quota of a space (or a user, or in the create dialog).
  2. Type 4.1, press Enter, confirm.

Expected Outcome

The quota is set to 4,100,000,000 bytes.

Actual Outcome

The request sends 4099999999.9999995 and fails with 400 ("Failed to change space quota").

Screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions