Skip to content

[Bug]: multi file download leads to 404 error when username contains @ sign #51817

@malteprang

Description

@malteprang

⚠️ This issue respects the following points: ⚠️

Bug description

When having a e-mail address as username, the multi file download fails with error 404 - The site could be temporarily unavailable or too busy. Try again in a few moments.
When using a account without @ signs, the multi file download works.

The issue was already explained at the forum, but nobody answered: https://help.nextcloud.com/t/unable-to-download-files-on-nextcloud-when-multiple-files-selected/221327

Steps to reproduce

  1. use a e-mail address as username
  2. select multiple files and click on download
  3. get error 404

Expected behavior

Download of multiple files should work regardless of the username.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.2

Web server

Nginx

Database engine version

MariaDB

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

None

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

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

Configuration report

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.2.1",
        "overwrite.cli.url": "https:\/\/***REMOVED SENSITIVE VALUE***",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "skeletondirectory": "",
        "maintenance": false,
        "updater.release.channel": "stable",
        "theme": "",
        "loglevel": 0,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": [
            "oidc",
            "no_2fa"
        ],
        "filelocking.enabled": true,
        "app_install_overwrite": [
            "files_frommail",
            "drawio",
            "oidc_login",
            "impersonate"
        ],
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "oidc_login_provider_url": "***REMOVED SENSITIVE VALUE***",
        "oidc_login_client_id": "***REMOVED SENSITIVE VALUE***",
        "oidc_login_client_secret": "***REMOVED SENSITIVE VALUE***",
        "oidc_login_auto_redirect": false,
        "oidc_login_logout_url": "***REMOVED SENSITIVE VALUE***",
        "oidc_login_end_session_redirect": true,
        "oidc_login_use_id_token": true,
        "oidc_login_attributes": {
            "id": "upn",
            "name": "name",
            "mail": "upn",
            "ldap_uid": "upn"
        },
        "oidc_login_default_group": "oidc",
        "oidc_login_scope": "openid profile",
        "oidc_login_button_text": "Log in with your Microsoft Account",
        "oidc_login_tls_verify": true,
        "oidc_login_disable_registration": false,
        "oidc_login_proxy_ldap": true,
        "maintenance_window_start": 1,
        "default_phone_region": "DE",
        "auth.webauthn.enabled": false,
        "mail_smtpport": "25"
    }
}

List of activated Apps

Enabled:
  - app_api: 5.0.2
  - bruteforcesettings: 4.0.0
  - cloud_federation_api: 1.14.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - federatedfilesharing: 1.21.0
  - federation: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - firstrunwizard: 4.0.0
  - groupfolders: 19.0.4
  - guests: 4.2.0
  - impersonate: 2.0.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - oidc_login: 3.2.2
  - photos: 4.0.0-dev.1
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - survey_client: 3.0.0
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_totp: 13.0.0-dev.0
  - updatenotification: 1.21.0
  - user_ldap: 1.22.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - webhook_listeners: 1.2.0
  - workflowengine: 2.13.0
Disabled:
  - activity: 4.0.0 (installed 2.21.1)
  - admin_audit: 1.21.0
  - circles: 31.0.0 (installed 29.0.0-dev)
  - comments: 1.21.0 (installed 1.19.0)
  - contactsinteraction: 1.12.0 (installed 1.10.0)
  - encryption: 2.19.0
  - files_external: 1.23.0
  - nextcloud_announcements: 3.0.0 (installed 1.18.0)
  - password_policy: 3.0.0 (installed 1.19.0)
  - support: 3.0.0 (installed 1.12.0)
  - suspicious_login: 9.0.1
  - systemtags: 1.21.1 (installed 1.19.0)
  - twofactor_nextcloud_notification: 5.0.0
  - weather_status: 1.11.0 (installed 1.9.0)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmap31-feedbackbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions