synapse icon indicating copy to clipboard operation
synapse copied to clipboard

Can't invite user from server that disabled profile lookup over federation

Open daniellekirkwood opened this issue 9 months ago • 8 comments

Description

Related to this issue: https://github.com/element-hq/element-web/issues/29028#issuecomment-2736113777

Steps to reproduce

  • list the steps
  • that reproduce the bug
  • using hyphens as bullet points

Homeserver

another homeserver

Synapse Version

n/a

Installation Method

I don't know

Database

n a

Workers

I don't know

Platform

i don't know

Configuration

No response

Relevant log output

i don't know

Anything else that would be useful to know?

No response

daniellekirkwood avatar Mar 25 '25 14:03 daniellekirkwood

I apologise that this is a cr*p bug report. I'm not able to transfer the one that was opened in the web repo. We have had a customer run into this issue, please ping me on Matrix for more details (there are no logs) 😢

daniellekirkwood avatar Mar 25 '25 14:03 daniellekirkwood

i think this bug has been around for a while (i've raised it before i think as it impacts EOne users too) but what would be incredibly helpful is a work-around or something that I can say to the customer who is unable to add someone to a room because they run into this error

daniellekirkwood avatar Mar 25 '25 14:03 daniellekirkwood

@langleyd this is the issue that you ran into this morning when trying to invite me to a room...

Ben has worked with the other human caught by this (the receiver, not the sender) and there's another flag:

  • option set: limit_profile_requests_to_users_who_share_rooms: true

The flags are desirable afaik because some servers may want to 'protect' their users but then we need to handle those cases better

daniellekirkwood avatar Mar 26 '25 10:03 daniellekirkwood

@yncyrydybyl just ran into this when trying to add me to a room too

daniellekirkwood avatar Mar 26 '25 12:03 daniellekirkwood

I apologise that this is a cr*p bug report. I'm not able to transfer the one that was opened in the web repo. We have had a customer run into this issue, please ping me on Matrix for more details (there are no logs) 😢

Can you please nontheless add more information to this issue? I am also affected by this problem and I don't think the Synapse team will really care for an empty issue.

As far as I can see it only happens when both servers have allow_profile_lookup_over_federation: false

eiclu avatar Apr 08 '25 09:04 eiclu

I can confirm this happens with Element as a client, when using e.g Fractal the invite works. On trying to add the person the UI just shows: Unknown Server Error. Here are some logs from the Element client, the logs on the synapse side just mention the missing

2025-04-24T14:49:05.148Z` D Inviting @personfromotheruniversity:matrix.uni-marburg.de
2025-04-24T14:49:05.149Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/client/v3/profile/%personfromotheruniversity%3Amatrix.uni-marburg.de
2025-04-24T14:49:05.226Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/client/v3/profile/%40personfromotheruniversity%3Amatrix.uni-marburg.de [76ms 502]
2025-04-24T14:49:05.227Z E MatrixError: [502] Failed to fetch profile (https://matrix.kristbaum.org/_matrix/client/v3/profile/%40personfromotheruniversity%3Amatrix.uni-marburg.de)
M_UNKNOWN: MatrixError: [502] Failed to fetch profile (https://matrix.kristbaum.org/_matrix/client/v3/profile/%40personfromotheruniversity%3Amatrix.uni-marburg.de)
    at p (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2133223)
    at O.requestOtherUrl (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2138782)
    at async O.authedRequest (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2136400)
    at async y.inviteToRoom (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/init.js:1:1377341)
2025-04-24T14:49:19.926Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_metadata
2025-04-24T14:49:19.970Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/media/v3/config
2025-04-24T14:49:19.971Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/client/v3/account/3pid
2025-04-24T14:49:19.983Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_metadata [57ms 404]
2025-04-24T14:49:20.001Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer
2025-04-24T14:49:20.038Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/media/v3/config [68ms 200]
2025-04-24T14:49:20.057Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer [56ms 404]
2025-04-24T14:49:20.059Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/client/v3/account/3pid [88ms 200]
2025-04-24T14:49:20.072Z I Auth issuer not found MatrixError: [404] Unrecognized request (https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer)
M_UNRECOGNIZED: MatrixError: [404] Unrecognized request (https://matrix.kristbaum.org/_matrix/client/unstable/org.matrix.msc2965/auth_issuer)
    at p (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2133223)
    at O.requestOtherUrl (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2138782)
    at async Se.getAuthMetadata (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/8488.js:2:2078338)
    at async te.init (vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/init.js:1:972420)
    at async vector://vector/webapp/bundles/b5e4d32b2e588bab87b6/element-web-app.js:1:848892
2025-04-24T14:49:29.316Z D FetchHttpApi: <-- GET https://matrix.kristbaum.org/_matrix/client/v3/sync?filter=xxx&timeout=xxx&org.matrix.msc4222.use_state_after=xxx&set_presence=xxx&since=xxx [30070ms 200]
2025-04-24T14:49:29.322Z D [Perf]: receiveSyncChanges took 5ms
2025-04-24T14:49:29.324Z D FetchHttpApi: --> GET https://matrix.kristbaum.org/_matrix/client/v3/sync?filter=xxx&timeout=xxx&org.matrix.msc4222.use_state_after=xxx&set_presence=xxx&since=xxx
2025-04-24T14:49:34.716Z D TimelinePanel(Room): Debugging info for !dfkdjJPIvuVGOuopVj:matrix.lmu.de

kristbaum avatar Apr 24 '25 15:04 kristbaum

Inviting users with Fluffychat works as well, this seems to be an Element only issue!

kristbaum avatar May 15 '25 14:05 kristbaum

In Element when you got to your settings/preferences general section and switch prompt before sending invites to pontential ivalid matrix ids, it should work

anussba avatar May 16 '25 07:05 anussba

That does help, but it still shouldn't behave like this as a default.

kristbaum avatar Jun 04 '25 09:06 kristbaum