-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Cannot invite appservice users which do not (yet) exist #7922
Comments
(reported as the user-facing bug - will open a synapse issue to track the backend issue) |
We also have this problem. We are using mxisd as our identity server ( as a synapse password provider integrated with our LDAP ). Since 0.17.8 no new users can be invited in any rooms. We can find the user, but on the SEND INVITES button we receive the error:
|
This issue is not limited to appservices but to at least the following set of existing tools:
A more detailed explanation of why this needs to be rolled back is available on the PR. |
A spec change is being discussed as to the merits of checking /profile and how we might enhance this API (or add a new one) to handle checking whether a user exists. However, we've decided that for now we can power through client side if we:
|
Fixes element-hq/element-web#7922 This supports the current style of errors (M_NOT_FOUND) as well as the errors presented by MSC1797: matrix-org/matrix-spec-proposals#1797
matrix-org/matrix-react-sdk#2434 implements the behaviour @lampholder describes. For those looking to have it always work regardless of account setting, add this to your config.json:
|
Fixed by matrix-org/matrix-react-sdk#2434 |
This still seems to be broken for me on develop. If I:
Also I don't see the option 'Always invite users who may not exist'. Also I'd like the option to be called 'Prompt before sending invites to potentially invalid matrix IDs' (defaulting to true). If defaulting to true is difficult, then let's go with 'Skip prompt before sending invites to potentially invalid matrix IDs', which is stretching the definition of an affirmative phrased setting. If default to true is hard, this is something we need to fix :) |
can't invite users from spaces from another server if spaces on server A and user joined from server B and tried to invite users to spaces this error pop up " Failed to invite users to the room: " |
Appservices typically follow this sort of flow:
@_example_user:localhost
to a room.@_example_user:localhost
doesn't exist, but is in the namespace for an appservice.Recently we added a proof of life check to see if a user exists before proceeding with the invite though (matrix-org/matrix-react-sdk#2317). This fails on Synapse because the user query isn't done, so the request for a profile fails, which means Riot won't try and invite the user, which means the steps above mean nothing because they aren't executed.
TLDR: Synapse needs to hit the appservice's
/users
endpoint for profile lookups too.The text was updated successfully, but these errors were encountered: