project-pegaprox icon indicating copy to clipboard operation
project-pegaprox copied to clipboard

[Bug] Unable to remove or edit old OIDC user

Open MartinMDS opened this issue 3 weeks ago • 3 comments

Describe the bug

Few weeks ago you fix some bugs in the OIDC, it's works great know, thanks ! But i'm unable to remove or edit some old buggy OIDC admin.

I can remove some with the "user" role, but can't with the "administrator" role, can't change the role also.

image

Error deleting user (bottom right in red) Error updating user (bottom right in red)

Steps to Reproduce

Try to remove old buggy OIDC admin

Expected behavior

Can remove old buggy OIDC admin

Environment

  • PegaProx Version: 1.4.1
  • Installation Method: deploy.sh
  • OS: Debian 13
  • Browser: Firefox 159
  • Behind Reverse Proxy? No

Checklist

  • [ x ] I have searched existing issues to make sure this is not a duplicate
  • [ x ] I am using the latest version of PegaProx
  • [ x ] I've put enough in here that someone can start on it without asking me three questions first
  • [ x ] I understand PegaProx is maintained by volunteers in their free time. Nobody is on call, and writing URGENT doesn't get anyone out of bed 🪄

MartinMDS avatar Nov 13 '26 15:11 MartinMDS

Thanks, the screenshot shows the cause: those old accounts got a username from the first characters of the OIDC subject (the naming from before #1141), and that subject contains /. The user routes take the name as one path segment, so PUT and DELETE /api/users/<name> answer a plain 404 for a name with a slash, even URL-encoded, and the UI only shows its generic error. I could reproduce it on the current Testing code with a name like the ones in your screenshot. Noted, the maintainers will look at it, since it touches how accounts are addressed.

Jan

Ghoszbust3r avatar Nov 13 '26 15:11 Ghoszbust3r

Quick update: the fix is merged into Testing now (#1375), so it comes with the next release. Edit and delete then work for accounts with a / in the name, role changes included. Changing the password, 2FA or OIDC binding of such an account still goes through routes that take the name as one segment, so for those old accounts deleting and recreating them is the cleaner way.

Cheers, Jan

Ghoszbust3r avatar Nov 18 '26 15:11 Ghoszbust3r

Shipped in 1.5.1, accounts with a slash in their name can be edited, reset and deleted now (password, 2FA and permissions included). Closing, reopen if it still gets in your way.

Nico

MrMasterbay avatar Nov 26 '26 17:11 MrMasterbay