Bug 2231342 - Ceph dashboard allows to set invalid value for quota value for max bytes which leads to wrongful setting of quota
Summary: Ceph dashboard allows to set invalid value for quota value for max bytes whic...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Dashboard
Version: 7.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 7.0
Assignee: Nizamudeen
QA Contact: ngangadh
Rivka Pollack
URL:
Whiteboard:
Depends On:
Blocks: 2237662
TreeView+ depends on / blocked
 
Reported: 2023-08-11 09:54 UTC by ngangadh
Modified: 2023-12-13 15:21 UTC (History)
7 users (show)

Fixed In Version: ceph-18.2.0-22.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-12-13 15:21:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 53236 0 None open mgr/dashboard: add validator for size field in the forms 2023-08-31 08:47:33 UTC
Red Hat Issue Tracker RHCEPH-7193 0 None None None 2023-08-11 09:55:19 UTC
Red Hat Issue Tracker RHCSDASH-1052 0 None None None 2023-08-11 09:55:23 UTC
Red Hat Product Errata RHBA-2023:7780 0 None None None 2023-12-13 15:21:58 UTC

Description ngangadh 2023-08-11 09:54:31 UTC
Description of problem: Ceph dashboard allows to set invalid value for quota value for max bytes which leads to wrongful setting of quota  


Version-Release number of selected component (if applicable): 7.0 


How reproducible: 5/5


Steps to Reproduce:
1. Create a cephfs mount either userspace or kernel. 
2. Create a directory inside the mount.
3. From UI dashboard, try setting the max_bytes quota.
4. If for any reason, user enters a symbol between the numbers like typo. Eg: User wants to set 10000, however ends up typing 100_00 then the notification says quota set successfully. 
5. Verify from UI and CLI, the set quota would be only 100 and not 10000 which would be wrongful setting of quota and notification. 

Actual results: Quota is allowed to set with invalid characters 


Expected results: Quota value should be validated in UI when entered by user and should not allow such values to be set. 
A proper error message saying 'Please enter a valid quota' needs to be displayed. 


Additional info:

Comment 6 errata-xmlrpc 2023-12-13 15:21:53 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 7.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:7780


Note You need to log in before you can comment on or make changes to this bug.