Skip to content

mgr/dashboard: Fix username validation for special characters by URL-encoding user lookup requests - #69298

Merged
aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-77129-main
Jun 24, 2026
Merged

aaSharma14 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-77129-main

Conversation

@aaSharma14

Copy link
Copy Markdown
Contributor

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

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jun 10, 2026
…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 <[email protected]>
@aaSharma14

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@aaSharma14

Copy link
Copy Markdown
Contributor Author

jenkins test dashboard

@aaSharma14
aaSharma14 merged commit ae6c498 into ceph:main Jun 24, 2026
6 checks passed
@aaSharma14
aaSharma14 deleted the fix-77129-main branch June 24, 2026 15:25
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants