]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix for incorrect validation in rgw user form 39117/head
authorNizamudeen A <nia@redhat.com>
Sun, 17 Jan 2021 06:56:15 +0000 (12:26 +0530)
committerNizamudeen A <nia@redhat.com>
Thu, 28 Jan 2021 07:30:47 +0000 (13:00 +0530)
commitbd4edff41d7e69406db48eb4de5287596ef192ee
tree8126f28cd340768012a9cb5e25aa0941bd43aa59
parent9743ed991c7282b299a36c28d635ff251bdee338
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>
(cherry picked from commit 3c2e8e4f9a7645c20b5766b2c052063ce38c5650)
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