nextcloud / nextcloud/server

Duplicating of users in dropdown list when sharing files and folders

Open
#11,260 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 26-feedback bug design feature: sharing
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the sharing flow with a user whose username is numeric, such as 5555, and inspect the user-search dropdown entry point. Compare the duplicate entries with those for a regular username; done means the numeric user appears only once while sharing a file or folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.