Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You can't join a restricted room if the owner doesn't have invite privs #16741

Closed
matrixbot opened this issue Dec 21, 2023 · 1 comment
Closed

Comments

@matrixbot
Copy link
Collaborator

matrixbot commented Dec 21, 2023

This issue has been migrated from #16741.


Description

If you try to create a restricted room where the invite permission is above the user creating the room others can't join.

The user creating the room is in there (all alone forever).

If you try to join the room:
M_UNKNOWN: Can't join remote room because no servers that are in the room have been provided.

Steps to reproduce

// Using the dart library

await createGroupChat(groupName: name, enableEncryption: false, initialState:
[
StateEvent(content:
{
"join_rule": "restricted",
"allow": [
{
"type": "m.room_membership",
"room_id": parent.id
}
]
}, type: 'm.room.join_rules'),
],
powerLevelContentOverride: {"invite": 101},
);

Homeserver

personal

Synapse Version

1.96.1

Installation Method

pip (from PyPI)

Database

SQLite

Workers

Single process

Platform

Ubuntu

Configuration

No response

Relevant log output

2023-12-10 01:28:03,661 - synapse.http.server - 124 - INFO - POST-5040 - <XForwardedForRequest at 0x7fee64448130 method='POST' uri='/_matrix/client/v3/join/!XGTHQBVcQaFrtCLadF%3Adomain.co.uk?server_name=https%3A%2F%2Fdomain.co.uk' clientproto='HTTP/1.0' site='8069'> SynapseError: 404 - Can't join remote room because no servers that are in the room have been provided.
2023-12-10 01:28:03,664 - synapse.access.http.8069 - 465 - INFO - POST-5040 - 172.69.79.187 - 8069 - {@test.1:domain.co.uk} Processed request: 0.032sec/0.001sec (0.011sec, 0.000sec) (0.003sec/0.008sec/8) 116B 404 "POST /_matrix/client/v3/join/!XGTHQBVcQaFrtCLadF%3Adomain.co.uk?server_name=https%3A%2F%domain.co.uk HTTP/1.0" "Dart/3.2 (dart:io)" [0 dbevts]

Anything else that would be useful to know?

No response

@matrixbot matrixbot changed the title Dummy issue You can't join a restricted room if the owner doesn't have invite privs Dec 22, 2023
@matrixbot matrixbot reopened this Dec 22, 2023
@erikjohnston
Copy link
Member

This is an unfortunate edge case, but it is in keeping with the spec so Synapse is actually doing the right thing here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants