Skip to content

[Bug]: remote share with userid longer than 64 characters leads to empty filelisting in webinterface #52496

@nivadis

Description

@nivadis

⚠️ This issue respects the following points: ⚠️

Bug description

when the user accepts the share from another nextcloud with uuids and the userid is longer than 64 characters the files screen is empty Error in the log: Value (886a5ce4-0f51-1039-81c3-0782ea7eXXX@nextcloud.XXXXXX.XXXXXXXXXXXXXXXXX.de) for userId is too long

both NC 31.0.4

Image

Steps to reproduce

  1. make share from a nextcloud with uuids and full "userid" of more than 64 characters to another nextcloud
  2. accept the share
  3. reload files app

Expected behavior

a error message should be viewed but not a empty "files" app

or even earlier, it should not be possible to accept this share

Nextcloud Server version

31

Operating system

Other

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "apps_paths": [
            {
                "path": "\/nix\/store\/i9i0xg57lfsvi0kg34zw29z74c6jg34h-nextcloud-31.0.4-with-apps\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/nix\/store\/i9i0xg57lfsvi0kg34zw29z74c6jg34h-nextcloud-31.0.4-with-apps\/store-apps",
                "url": "\/store-apps",
                "writable": true
            }
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "\/data\/skeleton",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "version": "31.0.4.1",
        "overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "loglevel": 2,
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "pipe",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "mail_smtpsecure": "tls",
        "lost_password_link": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "default_phone_region": "DE",
        "data-fingerprint": "7445f2962cd474ed03befc0d26e6daae",
        "profile.enabled": false,
        "maintenance_window_start": 1,
        "log_type": "syslog",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "overwriteprotocol": "",
        "app_install_overwrite": [
            "sharelisting",
            "files_readmemd"
        ],
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***",
            "***REMOVED SENSITIVE VALUE***"
        ]
    }
}

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions