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

Usernames (Display name) with 2 or fewer characters cannot receive shared passwords #827

Open
akang1798 opened this issue Jan 1, 2025 · 0 comments
Labels

Comments

@akang1798
Copy link

akang1798 commented Jan 1, 2025

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

1.Create a user named user1 and another user named u2 (with a username (Display name) of 2 or fewer characters).
2.Log in as user1 and share a password with u2 in Passman.
3.Observe that: u2 appears in the search results but is marked in red and cannot be selected.
Image
Image
4.Rename u2 to user2 (or any username (Display name) with more than 2 characters).
5.Retry sharing the password with user2. Sharing now works as expected.
Image

Expected behaviour

Password sharing should work regardless of the recipient's username (Display name) length.

Actual behaviour

Password sharing fails when the recipient's username (Display name) is 2 or fewer characters. The user is marked in red and cannot be selected, even though they appear in the search results.

Server configuration

Web server: Nginx 1.26.1

Database: MySQL 8.0.23

PHP version: 8.1.29

Nextcloud version: 30.0.1

Operating System: RockyLinux 9.3

List of activated apps
php occ app:list
Enabled:
  - activity: 3.0.0
  - admin_audit: 1.20.0
  - announcementcenter: 7.0.1
  - app_api: 4.0.0
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.8
  - checksum: 1.2.5
  - circles: 30.0.0-dev
  - cloud_federation_api: 1.13.0
  - comments: 1.20.1
  - contacts: 6.1.2
  - contactsinteraction: 1.11.0
  - dav: 1.31.1
  - drawio: 3.0.3
  - emlviewer: 1.0.11
  - external: 5.5.2
  - federatedfilesharing: 1.20.0
  - federation: 1.20.0
  - files: 2.2.0
  - files_accesscontrol: 1.20.1
  - files_automatedtagging: 1.20.0
  - files_downloadactivity: 1.17.0
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - files_fulltextsearch: 30.0.0
  - files_pdfviewer: 3.0.0
  - files_reminders: 1.3.0
  - files_retention: 1.19.0
  - files_sharing: 1.22.0
  - files_texteditor: 2.15.1
  - files_trackdownloads: 1.11.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - firstrunwizard: 3.0.0
  - fulltextsearch: 30.0.0
  - fulltextsearch_elasticsearch: 30.0.0
  - group_everyone: 0.1.16
  - groupfolders: 18.0.8
  - impersonate: 1.17.0
  - integration_jira: 1.2.1
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud_announcements: 2.0.0
  - notes: 4.11.0
  - notifications: 3.0.0
  - oauth2: 1.18.1
  - onlyoffice: 9.5.0
  - passman: 2.4.11
  - password_policy: 2.0.0
  - photos: 3.0.2
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - quota_warning: 1.20.0
  - recommendations: 3.0.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.3
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - spreed: 20.1.1
  - support: 2.0.0
  - survey_client: 2.0.0
  - systemtags: 1.20.0
  - tasks: 0.16.1
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0
  - user_ldap: 1.21.0
  - user_saml: 6.4.1
  - user_status: 1.10.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - dashboard: 7.10.0 (installed 7.0.0)
  - deck: 1.14.2 (installed 1.14.2)
  - encryption: 2.18.0
  - extract: 1.3.6 (installed 1.3.6)
  - files_mindmap: 0.0.30 (installed 0.0.30)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - ldap_write_support: 1.12.0 (installed 1.12.0)
  - passwords: 2024.12.11 (installed 2024.9.10)
  - quicknotes: 0.8.23 (installed 0.8.23)
  - riotchat: 0.18.7 (installed 0.18.7)
  - suspicious_login: 8.0.0
  - twofactor_nextcloud_notification: 4.0.0
  - w2g2: 3.3.9 (installed 3.3.9)
  - weather_status: 1.10.0 (installed 1.0.0)
  - workflow_script: 1.15.0 (installed 1.15.0)
Nextcloud configuration
php occ config:list system
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "cloud.mpay.cn"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "30.0.1.2",
        "overwrite.cli.url": "https:\/\/cloud.xxx.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "default_language": "zh_CN",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Memcached",
        "memcached_servers": [
            [
                "localhost",
                11211
            ]
        ],
        "maintenance": false,
        "filelocking.enabled": true,
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [],
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "loglevel": 2,
        "updater.release.channel": "stable",
        "allow_local_remote_servers": true,
        "trashbin_retention_obligation": "auto,7",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "activity_use_cached_mountpoints": "true",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\TXT"
        ],
        "proxy": "xxx.xxx.xxx.xxx:8080",
        "app_install_overwrite": [
            "files_texteditor",
            "files_trackdownloads"
        ],
        "default_phone_region": "CN",
        "maintenance_window_start": 1,
        "defaultapp": ""
    }
}

Browser

Browser name: Firefox

Browser version: 133.0.3

Operating system: Windows 10

@akang1798 akang1798 added the bug label Jan 1, 2025
@akang1798 akang1798 changed the title Usernames with 2 or fewer characters cannot receive shared passwords Usernames (Display name) with 2 or fewer characters cannot receive shared passwords Jan 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant