]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix username validation for special characters by URL-encoding user... 69953/head
authorAashish Sharma <aashish@li-e9bf2ecc-2ad7-11b2-a85c-baf05c5182ab.ibm.com>
Fri, 5 Jun 2026 07:07:38 +0000 (12:37 +0530)
committerAashish Sharma <aashish@li-e9bf2ecc-2ad7-11b2-a85c-baf05c5182ab.ibm.com>
Mon, 6 Jul 2026 09:22:20 +0000 (14:52 +0530)
commit5e8291c7338dbe2ba7308cfac5c27966d7e64460
treea8b085a9b1cd77634f20624a60bfd6d1bef9c886
parent107fdba77e687c38993718a35baf044d15fb028c
mgr/dashboard: Fix username validation for special characters by URL-encoding user lookup requests

When validating usernames, special characters such as '#' were not being URL-encoded before being appended to the user lookup endpoint.
Because the browser treats '#' as a URL fragment, the request path was truncated, causing the backend to return an incorrect response and the UI to display a misleading "User already exists" validation error.

Fixes: https://tracker.ceph.com/issues/77129
Signed-off-by: Aashish Sharma <aasharma@redhat.com>
(cherry picked from commit b2ed52b2a4d86ad6fa19851053badfa9118c4b6f)
src/pybind/mgr/dashboard/frontend/src/app/shared/api/user.service.ts