From: Nizamudeen A Date: Tue, 26 Mar 2024 09:04:23 +0000 (+0530) Subject: mgr/dashboard: fix rgw display name validation X-Git-Tag: testing/wip-pdonnell-testing-20240430.123648-reef-debug~80^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e05c10459a1a83f3a41dd7ada275e3edca5404e6;p=ceph-ci.git mgr/dashboard: fix rgw display name validation the dot(.) character is allowed in full name Fixes: https://tracker.ceph.com/issues/65146 Signed-off-by: Nizamudeen A (cherry picked from commit 8118a32ec578455b6c2cb4000f2bbee234ae9117) --- diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts index b2cb7d6518d..ec23ca0f7ba 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.ts @@ -98,7 +98,10 @@ export class RgwUserFormComponent extends CdForm implements OnInit { ) ] ], - display_name: [null, [Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()_ -]+$/)]], + display_name: [ + null, + [Validators.required, Validators.pattern(/^[a-zA-Z0-9!@#%^&*()._ -]+$/)] + ], email: [ null, [CdValidators.email],