nextcloud / calendar

📆 Calendar app for Nextcloud
https://apps.nextcloud.com/apps/calendar
GNU Affero General Public License v3.0
985 stars 239 forks source link

Drag to redorder calendars in the browser is broken #6501

Open DireMunchkin opened 4 days ago

DireMunchkin commented 4 days ago

Steps to reproduce

  1. In the calendar view in the web app, drag to reorder the calendars.

Expected behavior

The calendars are reordered according to user preference

Actual behaviour

A JavaScript error is thrown in the browser and the order isn't changed.

Calendar app version

5.0.1

CalDAV-clients used

No response

Browser

Librewolf 132.0.1-1

Client operating system

Linux Mint

Server operating system

Linux Mint

Web server

Nginx

Database engine version

PostgreSQL

PHP engine version

Other

Nextcloud version

30.0

Updated from an older installed version or fresh install

Updated from an older version

List of activated apps

Enabled:
  - app_api: 4.0.0
  - bruteforcesettings: 3.0.0
  - calendar: 5.0.1
  - cloud_federation_api: 1.13.0
  - contacts: 6.1.1
  - dashboard: 7.10.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_external: 1.22.0
  - lookup_server_connector: 1.18.0
  - oauth2: 1.18.1
  - provisioning_api: 1.20.0
  - settings: 1.13.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - activity: 3.0.0 (installed 2.17.0)
  - admin_audit: 1.20.0
  - circles: 30.0.0 (installed 25.0.0)
  - comments: 1.20.1 (installed 1.15.0)
  - contactsinteraction: 1.11.0 (installed 1.6.0)
  - encryption: 2.18.0
  - federation: 1.20.0 (installed 1.15.0)
  - files_pdfviewer: 3.0.0 (installed 2.6.0)
  - files_reminders: 1.3.0 (installed 1.1.0)
  - files_sharing: 1.22.0 (installed 1.17.0)
  - files_trashbin: 1.20.1 (installed 1.15.0)
  - files_versions: 1.23.0 (installed 1.18.0)
  - firstrunwizard: 3.0.0 (installed 2.14.0)
  - logreader: 3.0.0 (installed 2.10.0)
  - nextcloud_announcements: 2.0.0 (installed 1.14.0)
  - notifications: 3.0.0 (installed 2.13.1)
  - password_policy: 2.0.0 (installed 1.15.0)
  - photos: 3.0.2 (installed 2.0.1)
  - privacy: 2.0.0 (installed 1.9.0)
  - recommendations: 3.0.0 (installed 1.4.0)
  - related_resources: 1.5.0 (installed 1.0.4)
  - serverinfo: 2.0.0 (installed 1.15.0)
  - sharebymail: 1.20.0 (installed 1.15.0)
  - support: 2.0.0 (installed 1.8.0)
  - survey_client: 2.0.0 (installed 1.13.0)
  - suspicious_login: 8.0.0
  - systemtags: 1.20.0 (installed 1.15.0)
  - text: 4.1.0 (installed 3.6.0)
  - twofactor_nextcloud_notification: 4.0.0
  - twofactor_totp: 12.0.0-dev
  - updatenotification: 1.20.0 (installed 1.15.0)
  - user_ldap: 1.21.0
  - user_status: 1.10.0 (installed 1.5.0)
  - weather_status: 1.10.0 (installed 1.5.0)

Nextcloud configuration

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwriteprotocol": "https",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "nextcloud.tipi.lan",
            "nuc:8083",
            "100.113.250.43"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.2.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 2,
        "maintenance": false,
        "localstorage.umask": 2,
        "filesystem_check_changes": 1,
        "overwrite.cli.url": "https:\/\/nextcloud.tipi.lan",
        "default_phone_region": "CH"
    }
}

Web server error log

Log file

Browser log

TypeError: t is undefined
    sortedCalendars CalendarList.vue:143
    sortedCalendars CalendarList.vue:142
    VueJS 3
    nt CalendarList.vue:1
    VueJS 10
    d vuedraggable.umd.js:1974
    V sortable.esm.js:916
    $ sortable.esm.js:961
    _onDrop sortable.esm.js:2166
    handleEvent sortable.esm.js:2269
    _ sortable.esm.js:152
    _onDragStart sortable.esm.js:1786
    _ sortable.esm.js:152
    _triggerDragStart sortable.esm.js:1536
    a sortable.esm.js:1440
    _prepareDragStart sortable.esm.js:1491
    _onTapStart sortable.esm.js:1385
    _ sortable.esm.js:152
    Ye sortable.esm.js:1260
    mounted vuedraggable.umd.js:2175
    VueJS 13
    <anonymous> main.js:50
    <anonymous> main.js:60
    <anonymous> main.js:60
vue.runtime.esm.js:3065:16
    VueJS 13
    d vuedraggable.umd.js:1974
    V sortable.esm.js:916
    $ sortable.esm.js:961
    _onDrop sortable.esm.js:2166
    handleEvent sortable.esm.js:2269
    (Async: EventListener.handleEvent)
    _ sortable.esm.js:152
    _onDragStart sortable.esm.js:1786
    (Async: EventListener.handleEvent)
    _ sortable.esm.js:152
    _triggerDragStart sortable.esm.js:1536
    a sortable.esm.js:1440
    _prepareDragStart sortable.esm.js:1491
    _onTapStart sortable.esm.js:1385
    (Async: EventListener.handleEvent)
    _ sortable.esm.js:152
    Ye sortable.esm.js:1260
    mounted vuedraggable.umd.js:2175
    VueJS 13
    <anonymous> main.js:50
    <anonymous> main.js:60
    <anonymous> main.js:60

Additional info

I'm running the Server app via Tipi, see the Docker server config here

ChristophWurst commented 1 day ago

Dear @DireMunchkin, thank you for your bug report.

This might be related to https://github.com/nextcloud/calendar/issues/5083.

cc @GVodyanov