Bug 2360780

Summary: [Ceph-Dashboard] Dashboard not allowing to enable rate limiting for users having " . " as part of uid
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sohan singh <sohsingh>
Component: Ceph-DashboardAssignee: naman munet <nmunet>
Status: ASSIGNED --- QA Contact: sohan singh <sohsingh>
Severity: high Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 8.1CC: anbehl, ceph-eng-bugs, cephqe-warriors
Target Milestone: ---   
Target Release: 8.1z1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Error-on-editing-rate-limit-for-users none

Description sohan singh 2025-04-17 18:32:18 UTC
Created attachment 2085496 [details]
Error-on-editing-rate-limit-for-users

Created attachment 2085496 [details]
Error-on-editing-rate-limit-for-users

Description of problem:

Created as user : "sohan.singh" via CLI . 
and attempting to enable / set rate limit on the user. 

The Dashboard is NOT allowing to edit and submit the parameters, prompting Error as "User ID (required)
sohan.singh
The value is not valid."


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


How reproducible:


Steps to Reproduce:
1.create a user having name "sohan.singh" or any user with "." as part of it via CLI


[root@ceph-sohan-8-1-g1wfd1-node1-installer ~]# radosgw-admin user create --uid="sohan.singh" --access-key=admin1 --secret=admin1 --display-name="sohan singh"
{
    "user_id": "sohan.singh",
    "display_name": "sohan singh",
    "email": "",
    "suspended": 0,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "sohan.singh",
            "access_key": "admin1",
            "secret_key": "admin1",
            "active": true,
            "create_date": "2025-04-17T18:10:11.533230Z"
        }
    ],
    "swift_keys": [],
    "caps": [],
    "op_mask": "read, write, delete",
    "default_placement": "",
    "default_storage_class": "",
    "placement_tags": [],
    "bucket_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "user_quota": {
        "enabled": false,
        "check_on_raw": false,
        "max_size": -1,
        "max_size_kb": 0,
        "max_objects": -1
    },
    "temp_url_keys": [],
    "type": "rgw",
    "mfa_ids": [],
    "account_id": "",
    "path": "/",
    "create_date": "2025-04-17T18:10:11.533204Z",
    "tags": [],
    "group_ids": []
}

[root@ceph-sohan-8-1-g1wfd1-node1-installer ~]#

2. Attempt to ENABLE RGW rate limiting options on that user via Dashboard.

3. The Error will prompt :  
"User ID (required)
sohan.singh
The value is not valid."

Atached the screen shots


Actual results:
Users created via CLI with names having "." as par of it will not be having option to enable Ratelimit via Dashboard

Expected results:
Opertaions supported from CLI should also  be supported as part of Dashboard 

Additional info:

mgr Logs :http://magna002.ceph.redhat.com/ceph-qe-logs/sohan/logs/BZ-2358641/