Deleted and unassigned user still received "task overdue" emails #652

Open
opened 2025-11-01 21:01:10 -05:00 by GiteaMirror · 16 comments
Owner

Originally created by @bigbeka on GitHub (Oct 1, 2025).

Description

  1. Task was created with due date, user A was assigned.
  2. Task was reassigned to user B with overdue date
  3. User A was removed from the team and the User A still receives daily email notifications about overdue task that is not assigned to User A and User A doesn't have access to the task/team.

Vikunja Version

Version: v0.24.6

Browser and version

Safari latest

Can you reproduce the bug on the Vikunja demo site?

No

Screenshots

No response

Originally created by @bigbeka on GitHub (Oct 1, 2025). ### Description 1. Task was created with due date, user A was assigned. 2. Task was reassigned to user B with overdue date 3. User A was removed from the team and the User A still receives daily email notifications about overdue task that is not assigned to User A and User A doesn't have access to the task/team. ### Vikunja Version Version: v0.24.6 ### Browser and version Safari latest ### Can you reproduce the bug on the Vikunja demo site? No ### Screenshots _No response_
Author
Owner

@kolaente commented on GitHub (Oct 1, 2025):

Do you have the same problem with the latest RC or an unstable build?

@kolaente commented on GitHub (Oct 1, 2025): Do you have the same problem with the latest RC or an unstable build?
Author
Owner

@bigbeka commented on GitHub (Oct 1, 2025):

Sorry, I will try to reproduce this with the latest RC/unstable build. I am experiencing it on my production instance with the team.

@bigbeka commented on GitHub (Oct 1, 2025): Sorry, I will try to reproduce this with the latest RC/unstable build. I am experiencing it on my production instance with the team.
Author
Owner

@bigbeka commented on GitHub (Oct 3, 2025):

@kolaente concluded the test, and I can confirm that yes, this bug also happens on Version: v1.0.0-rc2-75-5f1d6845.

I will further run the test, by removing the user (Will) from the team, where the user will lose access to the task, and expected bug outcome is that Will receive reminder email during next reminder cycle.

User (Will) was unassigned from the task after the first reminder about overdue task. But remained in the team to which the user was originally a part of.

This morning, unassigned user received reminder notification email about the overdue task.

Image Image
@bigbeka commented on GitHub (Oct 3, 2025): @kolaente concluded the test, and I can confirm that yes, this bug also happens on Version: `v1.0.0-rc2-75-5f1d6845`. I will further run the test, by removing the user (Will) from the team, where the user will lose access to the task, and expected bug outcome is that Will receive reminder email during next reminder cycle. User (Will) was unassigned from the task after the first reminder about overdue task. But remained in the team to which the user was originally a part of. This morning, unassigned user received reminder notification email about the overdue task. <img width="893" height="848" alt="Image" src="https://github.com/user-attachments/assets/9333f070-fdb3-46b3-8c65-43c144cc8dff" /> <img width="588" height="469" alt="Image" src="https://github.com/user-attachments/assets/19c689dd-db93-44ae-a0e5-79d6d0bab39e" />
Author
Owner

@bigbeka commented on GitHub (Oct 4, 2025):

@kolaente I concluded the test and was able to reproduce the bug on v1.0.0-rc2-75-5f1d6845. The team member who had a task assigned to them kept receiving "task overdue" notifications after the task was reassigned to admin, and the notifications are continuing even after the member was removed from the team (this user doesn't have access to any shared projects).

@bigbeka commented on GitHub (Oct 4, 2025): @kolaente I concluded the test and was able to reproduce the bug on `v1.0.0-rc2-75-5f1d6845`. The team member who had a task assigned to them kept receiving "task overdue" notifications after the task was reassigned to admin, and the notifications are continuing even after the member was removed from the team (this user doesn't have access to any shared projects).
Author
Owner

@kolaente commented on GitHub (Oct 8, 2025):

Draft PR with a fix is up on https://github.com/go-vikunja/vikunja/pull/1620

@kolaente commented on GitHub (Oct 8, 2025): Draft PR with a fix is up on https://github.com/go-vikunja/vikunja/pull/1620
Author
Owner

@bigbeka commented on GitHub (Oct 8, 2025):

Will wait for the next stable release.

@bigbeka commented on GitHub (Oct 8, 2025): Will wait for the next stable release.
Author
Owner

@kolaente commented on GitHub (Oct 8, 2025):

Well the PR is not even merged...

@kolaente commented on GitHub (Oct 8, 2025): Well the PR is not even merged...
Author
Owner

@bigbeka commented on GitHub (Oct 9, 2025):

Haha, yes I have been waiting for over a year for the next stable release with many bug fixes. Its good to see there are already candidates for v1.0.0.

@bigbeka commented on GitHub (Oct 9, 2025): Haha, yes I have been waiting for over a year for the next stable release with many bug fixes. Its good to see there are already candidates for v1.0.0.
Author
Owner

@kolaente commented on GitHub (Oct 9, 2025):

The PR is now merged, please check with the next unstable build (should be ready for deployment in ~30min, also on try).

@kolaente commented on GitHub (Oct 9, 2025): The PR is now merged, please check with the next unstable build (should be ready for deployment in ~30min, also on [try](https://try.vikunja.io)).
Author
Owner

@bigbeka commented on GitHub (Oct 9, 2025):

I will report back with unstable version testing.

@bigbeka commented on GitHub (Oct 9, 2025): I will report back with unstable version testing.
Author
Owner

@bigbeka commented on GitHub (Oct 15, 2025):

@kolaente results are in (Version: v1.0.0-rc2-135-7689b6c1). Now, the user (Will) who was assigned to the task didn't receive reminder notification at all, instead the admin (Beck) who created the task received the notification while the task was assigned to the user 'Will'.

Admin received the reminder about overdue task after 24 hours of waiting while the task was assigned to admin.

Just a recap, user Will is part of a team, a parent project is shared with that team. So the user has access to the task via the team.

Read the emails top > bottom

Image
@bigbeka commented on GitHub (Oct 15, 2025): @kolaente results are in (`Version: v1.0.0-rc2-135-7689b6c1`). Now, the user (`Will`) who was assigned to the task didn't receive reminder notification **at all**, instead the admin (`Beck`) who created the task received the notification **while** the task was assigned to the user 'Will'. Admin received the reminder about overdue task after 24 hours of waiting while the task was assigned to admin. Just a recap, user `Will` is part of a team, a parent project is shared with that team. So the user has access to the task via the team. Read the emails top > bottom <img width="2141" height="1142" alt="Image" src="https://github.com/user-attachments/assets/bc43d11d-c6f5-4b2d-af54-4072d41a3cfb" />
Author
Owner

@kolaente commented on GitHub (Oct 19, 2025):

Do you see the same problem when the project the task is in is directly shared? (not a sub project)

@kolaente commented on GitHub (Oct 19, 2025): Do you see the same problem when the project the task is in is directly shared? (not a sub project)
Author
Owner

@bigbeka commented on GitHub (Oct 19, 2025):

I will test this, I have created a new user on the same test instance Version: v1.0.0-rc2-135-7689b6c1 and admin (task/project owner) user shared the parent project (that I created for previous test) with the user ben and assigned 1 overdue task from previous task and also create a fresh task in the same project and assigned it to ben and set the due date. Will see how tomorrow's emails will come in for ben@fqdn.io and the admin inbox.

Another bug?: Funny side effect that "popped up": Even though the Test123 task that was already overdue and unassigned from user will after last test and reassigned to owner user and now assigned to user ben still gets "Test123" (#1) has been assigned to ben email. - So just to recap on this: Task Test123 was created by project owner, user Will was shared access to the project and then the task Test123 was assigned to Will. After reassigning task Test123 back to owner, Will didn't get any overdue task email notifications, but when owner of the task reassigned the task from owner to Ben, user Will which has access to the project gets a "Test123" (#1) has been assigned to ben notifications. I believe user Will should not get any notifications about admin reassigning tasks to another user. Or is it a feature?

@bigbeka commented on GitHub (Oct 19, 2025): I will test this, I have created a new user on the same test instance `Version: v1.0.0-rc2-135-7689b6c1` and admin (task/project owner) user shared the parent project (that I created for previous test) with the user `ben` and assigned 1 overdue task from previous task and also create a fresh task in the same project and assigned it to `ben` and set the due date. Will see how tomorrow's emails will come in for ben@fqdn.io and the admin inbox. **Another bug?**: Funny side effect that "popped up": Even though the `Test123` task that was already overdue and unassigned from user `will` after last test and reassigned to owner user and now assigned to user `ben` still gets `"Test123" (#1) has been assigned to ben` email. - So just to recap on this: Task `Test123` was created by project owner, user `Will` was shared access to the project and then the task `Test123` was assigned to `Will`. After reassigning task `Test123` back to owner, `Will` didn't get any overdue task email notifications, but when owner of the task reassigned the task from owner to `Ben`, user `Will` which has access to the project gets a `"Test123" (#1) has been assigned to ben` notifications. I believe user `Will` should not get any notifications about admin reassigning tasks to another user. Or is it a feature?
Author
Owner

@kolaente commented on GitHub (Oct 19, 2025):

I believe user Will should not get any notifications about admin reassigning tasks to another user. Or is it a feature?

This is a feature, when you assign a user they are subscribed, which can also be done manually and will result in notifications getting sent out about these kinds of events.

@kolaente commented on GitHub (Oct 19, 2025): > I believe user Will should not get any notifications about admin reassigning tasks to another user. Or is it a feature? This is a feature, when you assign a user they are subscribed, which can also be done manually and will result in notifications getting sent out about these kinds of events.
Author
Owner

@bigbeka commented on GitHub (Oct 19, 2025):

Cool, I unsubscribed user Will from all the tasks. I will report back about user Ben who has access to the project directly and has 2 tasks assigned.

@bigbeka commented on GitHub (Oct 19, 2025): Cool, I unsubscribed user `Will` from all the tasks. I will report back about user `Ben` who has access to the project directly and has 2 tasks assigned.
Author
Owner

@bigbeka commented on GitHub (Oct 20, 2025):

@kolaente so the reminder emails were triggered this morning, now the user Ben who has direct share (read/write) access to the project did not receive any notification (either for old task that was originally assigned to user Will or the new task that was created and assigned to user Ben yesterday). As user Ben is assigned to both tasks, this user is also subscribed to both task notifications.

The owner/admin user beck of the project and the two tasks received "Your overdue tasks" notification as that user is subscribed to both of them.

@bigbeka commented on GitHub (Oct 20, 2025): @kolaente so the reminder emails were triggered this morning, now the user `Ben` who has direct share (read/write) access to the project **did not** receive any notification (either for old task that was originally assigned to user `Will` or the new task that was created and assigned to user `Ben` yesterday). As user `Ben` is assigned to both tasks, this user is also subscribed to both task notifications. The owner/admin user `beck` of the project and the two tasks received "Your overdue tasks" notification as that user is subscribed to both of them.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#652