nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.46k stars 3.98k forks source link

[Bug]: Calendar events not showing up for invitee #44250

Open oculos opened 5 months ago

oculos commented 5 months ago

⚠️ This issue respects the following points: ⚠️

Bug description

Hi,

On NC 29.0.0 beta 3, Calendar events are a bit unreliable. I create an event and add another user as an invitee. The event doesn't show on his calendar. At the same time, lots of this shows up in the log when creating the event:

{"reqId":"R7laQWgrMPrjeqLisVWl","level":1,"time":"2024-03-16T15:44:14+00:00","remoteAddr":"10.100.21.115","user":"admin","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Notification was not parsed by any notifier [app: ransomware_protection, subject: help_requested]","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:123.0) Gecko/20100101 Firefox/123.0","version":"29.0.0.9","data":[]}

I have uninstalled the ransomware_protection app, and still have the same behavior.

Steps to reproduce

  1. Create calendar event and add another user as invited
  2. The event doesn't show up, the user doesn't get invitation

Expected behavior

The user should get a notification by mail and the event should show up in his calendar.

Installation method

Community Docker image

Nextcloud Server version

master

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.1

Web server

Nginx

Database engine version

MySQL

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

Upgraded to a MAJOR version (ex. 22 to 23)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

thgoebel commented 3 months ago

I am having a similar problem with the suspicious_login app. I can see a lot of entries in the logs that look like this:

{"reqId":"InHU4ZXyxSCp6TWS0gbE","level":1,"time":"2024-05-01T19:41:50+00:00","remoteAddr":"XXXXX","user":"XXXXX","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Notification was not parsed by any notifier [app: suspicious_login, subject: suspicious_login_detected]","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0","version":"29.0.0.19","data":[],"id":"66329aff9bb50"}

Nextcloud 29.0.0.19, also using the Docker image.

joshtrichards commented 3 months ago

Most environments probably won't see these unless looking for them since they're only logged at level 1.

This is a new logged condition to catch bugs like this:

nextcloud/spreed#11610

It was added in #43691.

I suggest reporting these to the repositories for the apps mentioned in them, ours or third parties.

joshtrichards commented 3 months ago

I have uninstalled the ransomware_protection app, and still have the same behavior.

From the same app or a different one?

joshtrichards commented 1 month ago

The randomware_protection notification problems are more likely I believe if the app is disabled because then there really won't be any parsing for those notifications possible. If the app is enabled and you're seeing those, report them to them there: https://github.com/nextcloud/ransomware_protection

You may be able to see what the notifications are originating from by querying the db to get them directly. Basically like this: nextcloud/text#5884

I'm leaving this issue here in Server to track the Calendar event matter.