-
-
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
Fix Calendar sends duplicate notifications if there is an additional attendee (#21370) #30980
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
@@ -68,7 +68,8 @@ public function getRemindersToProcess():array { | |||
->from('calendar_reminders', 'cr') | |||
->where($query->expr()->lte('cr.notification_date', $query->createNamedParameter($this->timeFactory->getTime()))) | |||
->join('cr', 'calendarobjects', 'co', $query->expr()->eq('cr.object_id', 'co.id')) | |||
->join('cr', 'calendars', 'c', $query->expr()->eq('cr.calendar_id', 'c.id')); | |||
->join('cr', 'calendars', 'c', $query->expr()->eq('cr.calendar_id', 'c.id')) | |||
->groupBy(['cr.event_hash','cr.type','cr.uid']); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fails on some DB configurations:
https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html#sqlmode_only_full_group_by
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good to know. I guess I have to do the grouping in memory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Select those columns on L67 as well, then you can still run this on the DB
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Select those columns on L67 as well
That's not right it. It's the other way around: All items that are selected need to be aggregated.
But I agree, if we previously did not group on db level, just group manually in php.
This problem persists on NC25. Any plans to merge this patch? Thank you! |
Fixed already by #34909 |
The bug disclosed on #21370 still occurs on Nextcloud 23. The patch provided by @EhiOnime fixes this issue, but they never made a PR, so it continued to happen.