You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
GET /_synapse/admin/v1/users/<user_id>/admin doesnt allow for URL encoded user_ids, as such this disable some UI functionality in riot.im, which is where I first noticed it. As it was giving a 400 error.
Steps to reproduce
Get valid admin token
GET /_synapse/admin/v1/users/%40admin%3amatrix.server/admin
View response as error
What should happen is url encoding is causing the regex not to match. Caused by a regex on line:
Description
GET /_synapse/admin/v1/users/<user_id>/admin doesnt allow for URL encoded user_ids, as such this disable some UI functionality in riot.im, which is where I first noticed it. As it was giving a 400 error.
Steps to reproduce
What should happen is url encoding is causing the regex not to match. Caused by a regex on line:
synapse/synapse/rest/admin/users.py
Line 430 in c2ba994
That should be:
PATTERNS = (re.compile("^/_synapse/admin/v1/users/(?P<user_id>[^/]*)/admin$"),)
Which removes the "@" symbol requirement.
Version information
If not matrix.org:
Version: {"server_version": "1.8.0", "python_version": "3.6.9"}
Install method: Apt package manager, after importing keys as per install instruction
Although this is behind the NGINX reverse proxy, I have also tested this via localhost:8008 and it still presents the problem.
The text was updated successfully, but these errors were encountered: