fix(admin): delete providers whose names need URL escaping
Merged
SA
19h ago+51+51+01234567890123456789-5-5-0123456789
Fixes #1679
A provider saved in the dashboard with a name containing :, /, $, &, +, ,, ;, = or @ could not be deleted: the request returned 404.
The dashboard sends the name through encodeURIComponent (open:ai → open%3Aai). Echo matches on the escaped path when the client escaped more than Go would, and returns the :name parameter still escaped, so the lookup missed.
The admin handlers now decode :name in that case. This covers every admin route keyed by name, so MCP server delete, reconnect, catalog and OAuth sign-in/sign-out get the same fix. A parameter taken from the already-decoded path is left alone, so a name like a%20b is not decoded twice.
Summary by CodeRabbit
- Bug Fixes
- Improved handling of resource and server names in request paths, including names with encoded characters or spaces.
- Tests
- Added coverage for deleting credentials with names containing special characters.