Skip to content

Task not found when accessing it from the calendar app when username contains spaces #3092

@Antoine1673

Description

@Antoine1673

Steps to reproduce

  1. Go to the calendar app (https://my.nextcloud.instance.com/apps/calendar
  2. Click on a task

Expected behavior

Task details should be shown

Actual behaviour

The redirect to the tasks app works, but the actual task is not found

Tasks app version

0.17.1

CalDAV-clients used

No response

Browser

Firefox 148.0.2

Client operating system

Windows 11 25H2

Server operating system

Ubuntu 22.04

Web server

Nginx

Database engine version

MariaDB

PHP engine version

PHP 8.2

Nextcloud version

33.0.0

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

- activity: 6.0.0-dev.0
  - admin_audit: 1.23.0
  - announcementcenter: 7.3.0
  - app_api: 33.0.0
  - appointments: 2.6.3
  - bruteforcesettings: 6.0.0-dev.0
  - calendar: 6.2.1
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contacts: 8.4.1
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - deck: 1.17.0
  - drawio: 4.2.3
  - external: 8.0.0
  - federatedfilesharing: 1.23.0
  - files: 2.5.0
  - files_accesscontrol: 4.0.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - forms: 5.2.5
  - groupfolders: 21.0.6
  - guests: 4.6.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - mail: 5.7.2
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - onlyoffice: 10.0.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - quota_warning: 1.23.0
  - related_resources: 4.0.0-dev.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - systemtags: 1.23.0
  - tasks: 0.17.1
  - theming: 2.8.0
  - theming_customcss: 1.20.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_migration: 10.1.0
  - user_oidc: 8.6.1
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0

Nextcloud configuration

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "***REMOVED SENSITIVE VALUE***"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "***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,
        "maintenance": false,
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpsecure": "tls",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "loglevel": 1,
        "updater.release.channel": "stable",
        "upgrade.disable-web": true,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
        "theme": "",
        "default_phone_region": "FR",
        "default_locale": "fr",
        "default_language": "fr",
        "maintenance_window_start": 1,
        "onlyoffice": {
            "editors_check_interval": 0
        },
        "auth.webauthn.enabled": false,
        "app_install_overwrite": []
    }
}

Web server error log


Log file


Browser log


Additional info

The user sharing the task has a username containing a space (ex: "User NAME").
When accessing the task from the calendar, the redirect URL looks like this:
https://my.nextcloud.instance.com/apps/tasks/calendars/calendarname_shared_by_User%20NAME/tasks/12345678-9ABC-DEF0-1234-56789ABCDEF0.ics
When accessing the task from the task app directly, the URL is different:
https://my.nextcloud.instance.com/apps/tasks/calendars/calendarname_shared_by_User%2520NAME/tasks/12345678-9ABC-DEF0-1234-56789ABCDEF0.ics

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions