Bug 2249812 - [dashboard][rgw]: Create or Modify of user where user name contains '.' fails with error - 'The value is not valid.'
Summary: [dashboard][rgw]: Create or Modify of user where user name contains '.' fails...
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
medium
Target Milestone: ---
: 7.1
Assignee: Nizamudeen
QA Contact: Chaithra
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-15 13:02 UTC by Madhavi Kasturi
Modified: 2024-10-12 04:25 UTC (History)
6 users (show)

Fixed In Version: ceph-18.2.1-111.el9cp
Doc Type: Bug Fix
Doc Text:
.Full names can now include dot in Ceph dashboard Previously, in the Ceph dashboard, it was not possible to create or modify a full name with a dot in it due to incorrect validation. With this fix, validation is properly adapted to include a dot in full names in Ceph dashboard.
Clone Of:
Environment:
Last Closed: 2024-06-13 14:23:26 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ceph ceph pull 56470 0 None open mgr/dashboard: fix rgw display name validation 2024-03-26 09:09:24 UTC
Red Hat Issue Tracker RHCEPH-7917 0 None None None 2023-11-15 13:06:05 UTC
Red Hat Issue Tracker RHCSDASH-1180 0 None None None 2023-11-15 13:09:59 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:23:28 UTC

Description Madhavi Kasturi 2023-11-15 13:02:00 UTC
Description of problem:
create or Edit of user with username containing '.', eg: test.user fails with error " The value is not valid. "

Version-Release number of selected component (if applicable):
ceph version 18.2.0-122.el9cp

How reproducible:
Always

Steps to Reproduce:
1. ceph cluster deployed on 7.0
2. Create or  Edit of user with username containing '.' eg: test.user fails with 'The value is not valid.' 
3. Please note: the user creation and edit succeeds from CLI

snippet: 
1. user create 
[root@ceph-rgw-7-e863q4-node1-installer ~]# radosgw-admin user create --uid testuser --display-name test.user
{
    "user_id": "testuser",
    "display_name": "test.user",
    "email": "",
    "suspended": 0,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "testuser",
            "access_key": "NCTDCMYS7Q9M34JD4Y3V",
            "secret_key": "mlgVfiTwNsf3Ta0s5y3HFsE6FJcKM5BqXxAvVvuC"
        }
    ],
    "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": []
}

2. user edit -> suspend
[root@ceph-rgw-7-e863q4-node1-installer ~]# radosgw-admin user suspend --uid testuser
{
    "user_id": "testuser",
    "display_name": "test.user",
    "email": "",
    "suspended": 1,
    "max_buckets": 1000,
    "subusers": [],
    "keys": [
        {
            "user": "testuser",
            "access_key": "NCTDCMYS7Q9M34JD4Y3V",
            "secret_key": "mlgVfiTwNsf3Ta0s5y3HFsE6FJcKM5BqXxAvVvuC"
        }
    ],
    "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": []
}
Actual results:
Create or edit of user fails

Expected results:
Create or edit of user succeeds

Additional info:

PFA, the screen shot of error

Comment 6 errata-xmlrpc 2024-06-13 14:23:26 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, and 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/RHSA-2024:3925

Comment 7 Red Hat Bugzilla 2024-10-12 04:25:13 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


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