This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Deactivating an account as an application service using user_id
yields a response not containing id_server_unbind_result
#16608
Labels
A-Spec-Compliance
places where synapse does not conform to the spec
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
Description
The scenario is as follows:
The application service wants to deactive an account in its namespace and issues a post
request to
with request body of
Synapse answers with http status code 200 and a response body of
not containing
id_server_unbind_result
in violation of Client Server API Spec accountdeactivate which states as description of the response fieldid_server_unbind_result
:So in this case, it should have answered with a response body of
{ "id_server_unbind_result": "success" }
.Steps to reproduce
user_id
feature explained in Application Service API Spec 1.3.1. Identity assertionid_server_unbind_result
.Homeserver
From hub.docker.com matrixdotorg/synapse:v1.92.3
Synapse Version
{"server_version":"1.92.3","python_version":"3.11.5"}
Installation Method
Docker (matrixdotorg/synapse)
Database
sqlite
Workers
I don't know
Platform
Observed on my developer machine
NixOS 23.05 / amd64
Also observed in an deployment in nomad, I think the nodes are either rocky linux or centos 7.
Configuration
Just an application service with a user namespace and room alias namespace.
Relevant log output
Anything else that would be useful to know?
I assume synapse/rest/client/account.py:307 is the culprit.
Maybe just put
return 200, {"id_server_unbind_result": "success"}
there to satisfy the spec?The text was updated successfully, but these errors were encountered: