]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix for incorrect validation in rgw user form 38938/head
authorNizamudeen A <nia@redhat.com>
Sun, 17 Jan 2021 06:56:15 +0000 (12:26 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 21 Jan 2021 19:08:41 +0000 (00:38 +0530)
commit3c2e8e4f9a7645c20b5766b2c052063ce38c5650
treebf35d52b919a71fe13053cc27d3b74b7a82b16b2
parent0e7a7be5c065bd7f792b378a59c14b503370e394
mgr/dashboard: Fix for incorrect validation in rgw user form

The rgw users create form doesnt validate the username correctly if the username is a tenated one. For eg. Consider there is a user called tenate$sample. Now I am trying to create another user and I entered tenate$sample as username. But it doesn't async validate the username as existing. Instead it just shows the green tick and once the submit button is clicked it'll show the user as existing.

Fixes: https://tracker.ceph.com/issues/48907
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-user.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/api/rgw-user.service.ts