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

Searching - multiple results for the same user #11028

Closed
markiceman opened this issue Oct 2, 2019 · 23 comments
Closed

Searching - multiple results for the same user #11028

markiceman opened this issue Oct 2, 2019 · 23 comments
Labels
A-Identity-Server A-Invite O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Cannot-Reproduce X-Needs-Community-Testing X-Regression Z-Backend

Comments

@markiceman
Copy link

markiceman commented Oct 2, 2019

I'm using Synapse + mxisd with searching in LDAP (AD). Riot Desktop application version 1.4.0 and 1.4.1 (older version are OK), have issue with searching.

Example:

If I search user with substring "kbre", then i have doubled (sometimes tripled and more) results with the same user.

I see in syslog: There are two results for user from mxisd:

one LDAP search in display name and second by 3PID. But it is still the same user.

Riot 1.3.x and older display it correctly, but Riot 1.4.x display double results. It is wrong.

Výstřižek

It is similar situation as this:

element-hq/riot-android#1984

  • Platform: desktop

  • OS: Windows

  • Version: 1.4.1

@markiceman
Copy link
Author

1.4.2 have the same problem.

@t3chguy
Copy link
Member

t3chguy commented Oct 4, 2019

That looks like there are legatimely two different users, given the Matrix IDs are of different length, there are no 3PIDs involved here at all.

@markiceman
Copy link
Author

markiceman commented Oct 4, 2019

No, it is the same user with the same MXID. Only my blue lines have different length ...

@t3chguy
Copy link
Member

t3chguy commented Oct 4, 2019

Can you share the API request responses from the network tab of your browser so we can figure out where this issue lies?

@markiceman
Copy link
Author

I don't know, how can i do it from desktop application.

@t3chguy
Copy link
Member

t3chguy commented Oct 6, 2019

Desktop app is based on electron (chromium) so control shift i will bring up dev tools

@markiceman
Copy link
Author

{"limited":false,"results":[{"display_name":"Bréxxxá Kateřxxx","user_id":"@kbrexxxa:matrix.airbank.cz"},{"display_name":"Bréxxxá Kateřxxx 🦙","avatar_url":"mxc://matrix.airbank.cz/kpBRzDmEJXzmhLugaQjvuxxx","user_id":"@kbrexxxa:matrix.airbank.cz"}]}

@t3chguy
Copy link
Member

t3chguy commented Oct 7, 2019

So this appears to be a mxisd issue as it returns the same user twice

@markiceman
Copy link
Author

But older Riot versions are OK. Why?

@markiceman
Copy link
Author

markiceman commented Oct 7, 2019

I checked the same situation in older version (1.3.2) now. Riot gets the same response, but display only one result. It is correct.

@jryans
Copy link
Collaborator

jryans commented Oct 7, 2019

It sounds like there may be a regression in the address picker component then...?

@t3chguy
Copy link
Member

t3chguy commented Oct 7, 2019

I mean is it doing the wrong thing? Its being given two results by the server for its query and its rendering them

@t3chguy
Copy link
Member

t3chguy commented Oct 7, 2019

If it was to ignore one of them, which would it ignore, given they are different results?

@turt2live
Copy link
Member

They both have the same MXID, so should be concatenated. We should probably use the most detailed record.

@jryans
Copy link
Collaborator

jryans commented Oct 7, 2019

I guess I am curious what changed about the behaviour and why it only showed one before. I am worried we may have been applying some clean up logic that has gone missing, or something similar.

@markiceman
Copy link
Author

Version 1.5.0 have the same problem.

@lampholder
Copy link
Member

We're about to take a holistic look at user listing, so hopefully we'll sweep this issue up with that.

@MadLittleMods MadLittleMods changed the title Searching - multiple results Searching - multiple results for the same user Sep 2, 2021
@kittykat
Copy link
Contributor

kittykat commented Jan 7, 2022

@markiceman is there any chance you could re-test and confirm if you are still experiencing this issue or whether it was resolved in the review of the search?

@kittykat kittykat added X-Needs-Community-Testing X-Needs-Info This issue is blocked awaiting information from the reporter labels Jan 7, 2022
@markiceman
Copy link
Author

obrazek

Still the same.

Verze Riot: 1.9.8
Verze Olm: 3.2.8

@t3chguy
Copy link
Member

t3chguy commented Jan 7, 2022

This still looks to be an issue with the backend, nothing in the spec says that the client must de-duplicate these results nor how.

@markiceman
Copy link
Author

I have users in LDAP. Software ma1sd found one record in Display Name and another record in 3PID (maybe email address). I don't know where must be deduplicate ...

@t3chguy
Copy link
Member

t3chguy commented Jan 7, 2022

I would argue the backend should de-duplicate so that all clients don't have to

@t3chguy t3chguy added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Uncommon Most users are unlikely to come across this or unexpected workflow X-Cannot-Reproduce and removed X-Needs-Info This issue is blocked awaiting information from the reporter labels May 23, 2022
@t3chguy
Copy link
Member

t3chguy commented Jul 19, 2023

Closing as not a client issue, having every client need to de-duplicate is the wrong way for this to work.

@t3chguy t3chguy closed this as completed Jul 19, 2023
@kittykat kittykat closed this as not planned Won't fix, can't repro, duplicate, stale Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Identity-Server A-Invite O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Cannot-Reproduce X-Needs-Community-Testing X-Regression Z-Backend
Projects
None yet
Development

No branches or pull requests

6 participants