Wrong in the BasicEvent response in /sync
Reproduce:
- Client PUT the
AccountData
with
PUT '_matrix/client/v3/user/${Uri.encodeComponent(userId)}/account_data/m.secret_storage.key.IrKX3NWRF5Eex1dFgbyqzL6bkNZ%2Fv%2FZH'
with body
{
'type': 'm.secret_storage.key.IrKX3NWRF5Eex1dFgbyqzL6bkNZ/v/ZH',
'content': {
'iv': '/Qr9EnvTmAw4IVZgfgsJFg==',
'mac': 'V285+qOvdkfuKmpEKWBFwowYeV2qf9pr2OY7SssqTPU=',
'algorithm': 'm.secret_storage.v1.aes-hmac-sha2',
}
}
And the response when call sync:
{
'type': 'm.secret_storage.key.IrKX3NWRF5Eex1dFgbyqzL6bkNZ',
'content': {
'iv': '/Qr9EnvTmAw4IVZgfgsJFg==',
'mac': 'V285+qOvdkfuKmpEKWBFwowYeV2qf9pr2OY7SssqTPU=',
'algorithm': 'm.secret_storage.v1.aes-hmac-sha2',
}
}
You can see the type
is wrong in response: missing /v/ZH
. This problem only occurred when type have /
character. Please take a look on it
DoD:
- response exactly