nextcloud / calendar

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

[Bug]: changing the date of an recurring event results with the event disappearing #5337

Open piiskop opened 2 years ago

piiskop commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

Changing the date of an recurring event results with the event disappearing from the calendar view. It will still displayed in the search result list however clicking it there reloads the calendar view and displays the rotating loading wheel in the event view endlessly.

Steps to reproduce

  1. Insert a recurring event, for instance for 20220207 to be repeated until 20220214!
  2. Change the date from the inserted event to 20220209!
  3. See that both event appearances just disappear!
  4. Use the magnifying glass search app for searching the inserted event by its name!
  5. See that the inserted event appears in the search list!
  6. Click the mentioned event in the search list!
  7. Experience reloading the calendar and the endless loading in the event view!

Expected behavior

The change of the date makes the event to appear for the correct date.

Installation method

Manual installation

Operating system

Debian/Ubuntu

PHP engine version

PHP 7.4

Web server

Apache (supported)

Database engine version

MariaDB

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

Updated to a major version (ex. 22.2.3 to 23.0.1)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

kalmer@test:/projektid/nextcloud$ sudo -u www-data php occ config:list system
[sudo] password for kalmer: 
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

List of activated Apps

kalmer@test:/projektid/nextcloud$ sudo -u www-data php occ app:list
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

kalmer@test:/projektid/nextcloud$ tail data/nextcloud.log
{"reqId":"HtQxWMQXkOqCs3QCVfuL","level":0,"time":"2022-01-29T20:33:41+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"maps","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"HtQxWMQXkOqCs3QCVfuL","level":0,"time":"2022-01-29T20:33:41+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"metadata","method":"PUT","url":"/index.php/apps/user_status/heartbeat","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"z7E72XXGdziRFOksTlaE","level":0,"time":"2022-01-29T20:33:43+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"drawio","method":"GET","url":"/index.php/settings/integrity/failed","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"z7E72XXGdziRFOksTlaE","level":0,"time":"2022-01-29T20:33:43+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"files_mindmap","method":"GET","url":"/index.php/settings/integrity/failed","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"z7E72XXGdziRFOksTlaE","level":0,"time":"2022-01-29T20:33:43+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"maps","method":"GET","url":"/index.php/settings/integrity/failed","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"z7E72XXGdziRFOksTlaE","level":0,"time":"2022-01-29T20:33:43+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"metadata","method":"GET","url":"/index.php/settings/integrity/failed","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"oqpXAb2fLFZIVo54sMbd","level":0,"time":"2022-01-29T20:33:45+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"drawio","method":"GET","url":"/index.php/apps/photos/service-worker.js","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"oqpXAb2fLFZIVo54sMbd","level":0,"time":"2022-01-29T20:33:45+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"files_mindmap","method":"GET","url":"/index.php/apps/photos/service-worker.js","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"oqpXAb2fLFZIVo54sMbd","level":0,"time":"2022-01-29T20:33:45+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"maps","method":"GET","url":"/index.php/apps/photos/service-worker.js","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}
{"reqId":"oqpXAb2fLFZIVo54sMbd","level":0,"time":"2022-01-29T20:33:45+00:00","remoteAddr":"127.0.0.1","user":"peacecop-kalmer","app":"metadata","method":"GET","url":"/index.php/apps/photos/service-worker.js","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36","version":"23.0.0.10"}

Additional info

Versioon Nextcloud Hub II (23.0.0)

major-mayer commented 2 years ago

I got a somewhat similiar problem. When I create a recurring event in my calendar, save it and then change the date to another day, the event shortly disappears with a spinner appearing and then re-appears on the same, old date. So i always have to remove the old event and recreate it from scratch, when the day (weekly event) changes, which is not ideal.

szaimen commented 1 year ago

Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you!

My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!

If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+

piiskop commented 1 year ago

i gave up using Nextcloud Calendar actively and am using OpenProject's calendar now. However, i can do what you asked. i just created a recurring event, changed the date of an event and the anomaly seems to be gone.

major-mayer commented 1 year ago

I got a somewhat similiar problem. When I create a recurring event in my calendar, save it and then change the date to another day, the event shortly disappears with a spinner appearing and then re-appears on the same, old date. So i always have to remove the old event and recreate it from scratch, when the day (weekly event) changes, which is not ideal.

At least this issue still exist on my Nextcloud 25 instance. But now it's a bit worse. The event that i want to move disappears completely and all the following events (weekly) stay where they were.

Edit: And it seems to be splitting the recurring event into two separate events. I tried to delete the test event series, but it only deleted the series until the event that i tried to move (which then disappeared).

joshtrichards commented 1 year ago

This Issue needs to be moved to https://github.com/nextcloud/calendar/

@piiskop Your PHP installation doesn't appear to be fully set-up based on the occ output you provided. Since APCu is disabled by default for the command-line mode of PHP, it can cause issues with Nextcloud’s occ command. Please make sure you set the apc.enable_cli parameter to 1 in your PHP CLI's php.ini configuration file or append --define apc.enable_cli=1 each time you run occ - e.g.

sudo -u www-data php --define apc.enable_cli=1 occ config:list system
piiskop commented 1 year ago

kalmer@test:/projektid/nextcloud$ sudo -u www-data php --define apc.enable_cli=1 occ config:list system

[sudo] password for kalmer: An unhandled exception has been thrown: OCP\AutoloadNotAllowedException: Autoload path not allowed: /projektid/nextcloud/apps/onlyoffice/appinfo/application.php in /projektid/nextcloud/lib/autoloader.php:141 Stack trace:

0 /projektid/nextcloud/lib/autoloader.php(166): OC\Autoloader->isValidPath()

1 [internal function]: OC\Autoloader->load()

2 /projektid/nextcloud/lib/private/ServerContainer.php(106): class_exists()

3 /projektid/nextcloud/lib/private/ServerContainer.php(186): OC\ServerContainer->getAppContainer()

4 /projektid/nextcloud/lib/private/ServerContainer.php(153): OC\ServerContainer->getAppContainerForService()

5 /projektid/nextcloud/lib/private/Console/Application.php(217): OC\ServerContainer->query()

6 /projektid/nextcloud/lib/private/Console/Application.php(131): OC\Console\Application->loadCommandsFromInfoXml()

7 /projektid/nextcloud/console.php(99): OC\Console\Application->loadCommands()

8 /projektid/nextcloud/occ(11): require_once('...')

9 {main}kalmer@test:/projektid/nextcloud$

joaoathaide commented 8 months ago

I got a somewhat similiar problem. When I create a recurring event in my calendar, save it and then change the date to another day, the event shortly disappears with a spinner appearing and then re-appears on the same, old date. So i always have to remove the old event and recreate it from scratch, when the day (weekly event) changes, which is not ideal.

At least this issue still exist on my Nextcloud 25 instance. But now it's a bit worse. The event that i want to move disappears completely and all the following events (weekly) stay where they were.

Edit: And it seems to be splitting the recurring event into two separate events. I tried to delete the test event series, but it only deleted the series until the event that i tried to move (which then disappeared).

I have the same problem, is there any solution for it? I am using Nextcloud version 24.0.1