server icon indicating copy to clipboard operation
server copied to clipboard

Duplicating of users in dropdown list when sharing files and folders

Open olegbolden opened this issue 7 years ago • 10 comments

Users with numerical usernames (say 5555) have two instances in droplist when sharing files or folders: with email and without it.

Expected behaviour

User wants to share file or folder with some user having numerical username. When he types his name then this name appears once in dropdown list.

Actual behaviour

Name of the user with numerical username on sharing appears twice in dropdown list: with email and without it.

problem

Users with regular usernames have the only instance to select from dropdown list upon object sharing.

Server configuration

Operating system: Linux Debian Jessie

Web server: Nginx+PHP-FPM and Apache+CGI

Database: MySQL

PHP version: 7.0.25 and 7.1.20

Nextcloud version: (see Nextcloud admin page) 14.0

Updated from an older Nextcloud/ownCloud or fresh install: Updated from 13.6

olegbolden avatar Sep 17 '18 09:09 olegbolden

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/6491 (Duplicate Shared folders), https://github.com/nextcloud/server/issues/8301 (Shared files are duplicated when moved to subdir), https://github.com/nextcloud/server/issues/3502 (Duplicated files and folders when moving from one shared folder to another (can reproduce it)), https://github.com/nextcloud/server/issues/5336 (Move link sharing into share with user-dropdown), and https://github.com/nextcloud/server/issues/10358 (Shared folder only displaying one file).

nextcloud-bot avatar Sep 17 '18 09:09 nextcloud-bot

Eventually got that the second line (user with email) from dropdown list is shown for users with numerical usernames if "Share by email" application is turned on. I wasn't aware of this app. But this second line is not visible for users with regular string names. Though it also seems to be a bug I close this issue because I finally got rid of this duplicating users from dropdown list.

olegbolden avatar Sep 20 '18 14:09 olegbolden

I think this one should be reopened.

On Nextcloud 24.0.5, when "Share by mail" app is enabled, some users are shown twice on the drop down list (a third occurrence can appear if a Talk conversation exists with this user but this seems legit). The second occurrence of the user can't be clicked to share the file, we're getting error "please enter a valid user".

Maybe the origin of the problem is LDAP account using email address as identifier ? On another instance of Nextcloud that I own, with only regular Nextcloud account, I can't reproduce the problem.

Here is some screenshots :

image This user is shown twice, same email address. If I click the second one, it throws error mentioned above. First occurrence of same user work. Note that the mail icon isn't visible at the right of the dropdown option. Initials are not visible, just a white circle.

image On this instance with only regular Nextcloud account (no ldap), all is fine, a user can be pointed by his user account, his mail or the talk conversation. For mail and talk, icons are properly shown.

Any clue ?

Mer0me avatar Sep 27 '22 17:09 Mer0me

Hello I have the same issue. When sharing, there is one user multiply. But in users there is only once. No local users, everybody are from LDAP. NC version 22.2.3.

Users image

User search at upper bar image

List of users when sharing image

Koky999 avatar Nov 15 '22 09:11 Koky999

I again got a user support question about this.

I reopen, this is an UX issue for me.

t3I97PYi1BHx9PBH

Users that are not really familiar with nextcloud will click one of the suggestion, and will send a an email invite to actual users of their instance.

And I think it is related to this big redesign :) https://github.com/nextcloud/server/issues/26691

pierreozoux avatar Feb 24 '23 15:02 pierreozoux

Hi, which nc version?

szaimen avatar Mar 17 '23 22:03 szaimen

@szaimen it ia last 24.

pierreozoux avatar Mar 19 '23 09:03 pierreozoux

Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 26-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

szaimen avatar May 22 '23 09:05 szaimen

The issue persists on 26.0.1 (26.0.2 is not available)

image

Mer0me avatar May 22 '23 09:05 Mer0me

Possibly related: #15041

joshtrichards avatar Oct 18 '24 18:10 joshtrichards

Still experiencing this issue in NextCloud 31.0.7 with a new twist: Talk conversations display wrong user initials Environment

NextCloud version: 31.0.7 Affected feature: File/folder sharing dropdown Apps involved: Talk (conversation sharing)

Detailed Description When searching for users in the sharing dropdown, I'm encountering duplicate entries for the same user with incorrect avatar initials displayed for the Talk conversation entry. Specific Example User details:

Display name: "Cris Kringle (MO)" Email: (has email configured) Expected initials: "CK" (as shown in Accounts administration panel)

What appears in sharing dropdown:

Entry 1 (Correct user account):

Display: "Cris Kringle (MO)" with email address shown Avatar initials: "CK" ✓ (correct) Icon: Standard user avatar

Entry 2 (Talk conversation - INCORRECT):

Display: "Cris Kringle (MO)" without email address Avatar initials: "CM" ✗ (wrong - should be "CK") Icon: Talk conversation icon ("Q" speech bubble) This is the SAME user, not a different person

Verification

Only ONE user named "Cris Kringle" exists in the system The Accounts administration panel shows this user with "CK" initials The Talk conversation entry is incorrectly generating/displaying "CM" instead of "CK"

Why This Matters

User confusion: Users don't know which entry to select when the initials don't match Identity misrepresentation: The wrong initials suggest it might be a different person Trust issue: Users lose confidence in the sharing system when it displays inconsistent information Potential security concern: Could lead to sharing with unintended recipients if users guess wrong

Reproduction Steps

Create a user with a display name like "Cris Kringle (MO)" (space and parentheses in name) Have an active Talk conversation with this user Navigate to share a file or folder Search for "Cris" or "Kringle" in the sharing dropdown Observe two entries:

One with correct initials (CK) and email One with Talk icon, wrong initials (CM), and no email

Expected Behavior

User should appear only once, OR If appearing multiple times for different sharing methods (direct user share vs. conversation share), ALL entries should display the same correct initials that match the user's actual display name and what appears in the admin panel

Current Workaround Advising users to select the entry with the email address and correct initials, which represents the actual user account rather than the Talk conversation option.

Adventurer2021 avatar Dec 20 '25 16:12 Adventurer2021