-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calendar sends duplicate notifications if there is an additional attendee [$250] #21370
Comments
Has anyone addressed this issue? I have reproduced this issue. I created a recurring meeting with 8 attendees with an email reminder set up one hour in advance. All 8 of us get 8 emails an hour before each meeting. This isn't the kind of behaviour I would expect. |
cc @nextcloud/calendar |
I to am facing this issue too. I'm running nextcloud 18.0.8. Wouldupgrade to 19.02 but waiting for there to be an upgrade to an associated app to ensure compatibility. |
I too observed this bug. The calendar event entry in the database appears to get duplicated for each attendee with a nextcloud login, so as to appear in their personal calendars. The calendar reminder entries get duplicated as well. And then each reminder triggers an email to all attendees. |
Same problem here. Any fix or workaround? |
I have the same problem... In my case I have a weekly meeting where are me and 2 more people, this event has 4 notifications:
For pop notifications, it's all ok, but for the email notification, I receive 3 emails with the same information. |
Same problem with duplicate email event notifications |
If a fix would be available this issue ticket would have been closed already 😉 |
I'm on a freshly installed NC21 and did encounter the same issue. The number of emails send is a multiple of the number of participants (12 participants means that the reminder is send to each person 12 times). You can imagine that the participants were a bit confused ;). If there isn't a fix yet, maybe someone found a workaround!? |
Same issue here with NC 20.0.8 and Calendar App 2.1.3. Hope this annoying bug can be solved in the next Nextcloud release. |
I can confirm the issue persists for me as well with Nextcloud 20.0.7 and Calendar 2.1.3. |
@dinosmm @m4us1ne Due to the fact that the core function is part of the server package and has nothing to do with the Calendar app at all, how should it help to create a new issue in an other repository too? Additionally it won't change anything nor does it help in any way to confirm that the issue still persists in version XYZ, because this can easily been seen by checking the status of this issue which is still "Open" 😉 |
@j-ed i did not knew about this issue, only after digging into the code. thats when i discovered where the error is and found this issue here |
The problem in a picture When the event gets a reminder in every calendar and in every reminder it is send to all attendees. So, what is the problem:
Workaround at the moment:
Todo: |
there is also an option to disable event reminders at all
can be disabled with
|
Surely the expected and desired behaviour should be that only one email reminder is sent to each participant on the day and time a reminder is set to be sent? |
so the reminder of the owner of the event should send E-Mails to non-next-cloud-users and the reminders of nextcloud-participants should inform that participants? |
Apologies as I may not fully understand how it works programmatically. For outsiders, the owner's calendar will have to initiate reminders. Does the current design somehow preclude a single reminder being sent to each attendee? (In other words is it a deeper/more complicated change that is required to be made to the db design?) |
I'm still learning how all is connected. I would expect, that the change doesn't need a db change at all. The information should already be available ;) |
possible fix #26496 or at least a mitigation of the problem. Because the nextcloud-users still get a mail from their own reminder and one from the organizer. |
Nice one! Hope it can be successfully merged. Does that mean that nextcloud-users can then go to the event in their own calendars and change/remove their own reminder? With this fix, would the recommended action for nextcloud-users be to manually remove reminders from events they are invited to? |
OK I think I found the solution to this problem Diff Patch is attached it should be applied in your nextcloud/apps/dav directory single-notifications.txt |
sorry, can you explain in a little more detail how can we use your fix? |
@meonkeys did you verify this solution with your other issue ? |
Oh cool! I am now running nc v22.2.0 and calendar v2.3.4, so I should have this fix now, correct? I'll test again. Does this fix existing events? (I'm guessing it does not). I'll try creating a new event to test. And thank you, I totally forgot about this likely dup when I filed the other issue. I repled at #29434 (comment) |
Done! Thanks. 👍 |
I have had this fix applied to my setup since it was published here and it was working, but just yesterday I added an event with an additional non-NC attendee and I got a duplicate email notification for that event. Has something been done to annul this fix? I checked and my /var/www/nextcloud/apps/dav/lib/CalDAV/Reminder/Backend.php still contains the additional groupBy line. |
Investigative results:
@tcitworld could you please elaborate on #3044 a bit if you have time and remember? Why did you choose VEVENT attendees, do you remember? |
We do not write
Google:
Thunderbird offers no way to create an email notification, neither does the integrated Calendar on Ubuntu. |
Processing happens in The duplications come from |
Ok, current solution I would like to see:
As an example, imagine the following scenario and why the ATTENDEE should not hold a VALARM: I invite user Bob, who has a Nextcloud Calendar, from a different solution like Google. I specify an email reminder 15 minutes before the event. Bob adds the event via iMIP or other scheduling mechanisms. The email notification, if we were to send one from Nextcloud, would be sent twice - once from the ORGANIZER via Google Calendar, and once from the Nextcloud CalDav backend. It is not the responsibility of the CalDav Backend to send a reminder UNLESS Bob has added a reminder himself. This would be a VALARM without ATTENDEEs and should trigger the creation of a DB entry anyway. |
Georg authored most of the code related to extracting emails from the event data but I'm guessing we already used vevent attendees (for invitations, notifications of changes, free/busy) and it would make the calendar app more complex (having to listen on vevent attendees changes to update them in valarm as well) - it would make no sense to have two different set of UIs to maintain that list. Still, it would be a good idea to sync the two and consider only VALARM attendees in the future in server. Well, you just posted pretty much the same thing. :)
Only when the action is EMAIL, yes. I'm not sure we can have this kind of logic with the current implementation: https://github.com/nextcloud/3rdparty/blob/3095d4062823f3f913d594f9ff313010ed55cd74/sabre/vobject/lib/Component/VAlarm.php#L110-L138 I think the above post looks just right. |
@st3iny when you touch the CalDAV backend, please backport all the way to 22 :) |
How to use GitHub
Steps to reproduce
The calendar normally sends one notification (whether push or email) around the specified time for events that do not have attendees.
This also works correctly for shared calendars, every user with whom the calendar & event is shared receives one notification.
However, if I add an event to a non-shared calendar and add an attendee, both I and the attendee will receive two notifications for each notification event. This happens both with push and email notifications.
Is this a known issue? A cursory search here in Github didn't come up with anything relating to calendar notifications.
Expected behaviour:
Organiser and attendee each receive one single email notification.
Actual behaviour:
Organiser and attendee each receive TWO email notifications, at the same time.
This also happens if notifications are pushed to an installed Nextcloud app on a mobile device.
Setup:
Ubuntu 18.04.3 LTS
Nextcloud 18.0.4 via Snap
No security or setup warnings on admin panel
The text was updated successfully, but these errors were encountered: