-
Notifications
You must be signed in to change notification settings - Fork 66
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
Deletion of calendar event reported as being made by another user #784
Comments
I also see this kind of obviously wrong Activity-Logs. On my system a user allegedly has deleted calendar-entries he acctually has no access to. [Nextcloud Hub II] (23.0.3) (updated a few days ago, did not notice the behaviour prior to the update) |
On my side also the wrong user is the first in alphabetical order. |
I have also seen this on an installation recently
|
\OCA\DAV\CalDAV\Activity\Backend::triggerCalendarActivity does $currentUser = $owner; if there is no user in context. that is the case with cron. |
For calendar events we currently have two activities: one when the event is moved to the bin, another when it expired inside the bin. Both say the event was deleted by a user. What if we just only emit an activity for the first case? Expiring the trash should be silent. |
As a user i've never noticed the second deletion event and i agree it's of little or no use. But to clarify my first post about the wrong user being reported: BTW: on my system this exact person changed recently from 'Bisch*** ' to 'A_Zo***' since i added the latter. |
According to my latest comment there, I am now fairly certain this is the same issue as nextcloud/server#31861 and it sounds like it is more general than |
This is already done, there's no activity produced when the calendar object has the deletedAt information. |
Unfortunately, I just found out that the calendar object never has the deletedAt information. The A couple of lines, before the calendar data is fetched with So, in effect, activities are produced for calendar objects that are purged from the trashcan. |
Thanks a lot! I had the idea to check that but forgot to! |
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
…xpires Closes nextcloud/activity#784 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
If you're seeing this, beware that you need both nextcloud/server#32471 and nextcloud/server#30438 (or their appropriate backports for your Nextcloud version) to have it fixed. |
I am not sure that the issue is coming from the activity app, but after some search I have not understood how this activity app is retrieving the information. i am ready to continue the investigation is anyone has some hints.
Steps to reproduce
Here is what I can see in the oc_activity table for all the cases where this issue is reproduced:
This issue is only happening after my upgrade to Nextcloud 23.0.3 which also lead to the upgrade of the calendar app version from version 3.2.0 to version 3.2.2. I performed a diff between those 2 calendar versions and I cannot see what could cause this change of behavior (but I am not a specialist).
Any hint on how to debug this further would be highly appreciated.
Expected behaviour
notification should not be sent as the event has been removed by current user
Actual behaviour
Notification is received the day (or the day after) execution of step 3 saying that another user has deleted one of your event.
Server configuration
Operating system: Official docker image (php-fpm alpine)
Web server: NGINX
Database: PostgreSQL
PHP version: 8.0.17
Nextcloud version: 23.0.3
Where did you install Nextcloud from: Official docker image (php-fpm alpine)
Signing status:
List of activated apps:
Nextcloud configuration:
Are you using an external user-backend, if yes which one: None
Client configuration
Browser: Firefox
Operating system: Linux
Logs
Nextcloud log (data/nextcloud.log)
Browser log
The text was updated successfully, but these errors were encountered: