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
Create a room. Do not add the room to the space yet.
Upgrade the room: /upgraderoom 6
Add the old room to the space: curl $'https://matrix.org/_matrix/client/r0/rooms/\u0021fhuUBbrIMGHGaPSbDk%3Amatrix.org/state/m.space.child/\u0021pLQLHMyNhDXQNFeIGr%3Amatrix.org' -X "PUT" -H "Authorization: Bearer syt_<your access token>" -H "Content-Type: application/json" --data '{"via":["matrix.org"],"suggested":false,"auto_join":false}', replacing the homeserver urls, the first room id with the space and the second room id with the old room.
This simulates a failure during the /upgraderoom process where the old room is not removed from the space and the new room not added.
Click "Manage & explore rooms" on the space
Try to remove the room from the space. Element Web sends a request to remove the new room from the space instead of the old room.
Click "View" on the room. An error appears in console:
react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'canonical_alias')
at getDisplayAliasForRoom (RoomDirectory.tsx:634:44)
at SpaceHierarchy_showRoom (SpaceHierarchy.tsx:338:45)
at onViewRoomClick (SpaceHierarchy.tsx:756:68)
at onViewRoomClick (SpaceHierarchy.tsx:450:44)
at onPreviewClick (SpaceHierarchy.tsx:114:9)
at Object.Rb (react-dom.production.min.js:52:315)
at Xb (react-dom.production.min.js:52:468)
at Yb (react-dom.production.min.js:53:32)
at Ze (react-dom.production.min.js:100:68)
at se (react-dom.production.min.js:101:380)
Outcome
What did you expect?
Removing the old room from the space to work.
Viewing the old room from the "Manage & explore rooms" view to work.
What happened instead?
Element Web tries to remove the new room from the space instead, which does nothing.
An error occurs when clicking "View":
react-dom.production.min.js:101 Uncaught TypeError: Cannot read properties of undefined (reading 'canonical_alias')
at getDisplayAliasForRoom (RoomDirectory.tsx:634:44)
at SpaceHierarchy_showRoom (SpaceHierarchy.tsx:338:45)
at onViewRoomClick (SpaceHierarchy.tsx:756:68)
at onViewRoomClick (SpaceHierarchy.tsx:450:44)
at onPreviewClick (SpaceHierarchy.tsx:114:9)
at Object.Rb (react-dom.production.min.js:52:315)
at Xb (react-dom.production.min.js:52:468)
at Yb (react-dom.production.min.js:53:32)
at Ze (react-dom.production.min.js:100:68)
at se (react-dom.production.min.js:101:380)
Operating system
Windows
Browser information
Chrome 100.0.4896.60
URL for webapp
develop.element.io
Application version
Element version: cec31d0-react-aecd71ad1523-js-286500e335e4 Olm version: 3.2.8
Homeserver
Synapse 1.56.0
Will you send logs?
No
The text was updated successfully, but these errors were encountered:
Steps to reproduce
/upgraderoom 6
curl $'https://matrix.org/_matrix/client/r0/rooms/\u0021fhuUBbrIMGHGaPSbDk%3Amatrix.org/state/m.space.child/\u0021pLQLHMyNhDXQNFeIGr%3Amatrix.org' -X "PUT" -H "Authorization: Bearer syt_<your access token>" -H "Content-Type: application/json" --data '{"via":["matrix.org"],"suggested":false,"auto_join":false}'
, replacing the homeserver urls, the first room id with the space and the second room id with the old room.This simulates a failure during the
/upgraderoom
process where the old room is not removed from the space and the new room not added.Outcome
What did you expect?
What happened instead?
Operating system
Windows
Browser information
Chrome 100.0.4896.60
URL for webapp
develop.element.io
Application version
Element version: cec31d0-react-aecd71ad1523-js-286500e335e4 Olm version: 3.2.8
Homeserver
Synapse 1.56.0
Will you send logs?
No
The text was updated successfully, but these errors were encountered: