Skip to content

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

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

Open
5 of 8 tasks
nivadis opened this issue Apr 28, 2025 · 0 comments
Labels
1. to develop Accepted and waiting to be taken care of bug feature: sharing

Comments

@nivadis
Copy link

nivadis commented Apr 28, 2025

⚠️ 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

@nivadis nivadis added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 28, 2025
@kesselb kesselb added 1. to develop Accepted and waiting to be taken care of feature: sharing and removed 0. Needs triage Pending check for reproducibility or if it fits our roadmap labels Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. to develop Accepted and waiting to be taken care of bug feature: sharing
Projects
None yet
Development

No branches or pull requests

2 participants