Skip to content
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

RHCLOUD-37310 | fix: rename email subscription user IDs to lowercase #3237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MikelAlejoBR
Copy link
Member

We had a customer report where they complained that they were still receiving Errata notifications even after unsubscribing from them.

After investigating, we found out that we had multiple and even overlapping email subscriptions for almost the same username. By "almost", I mean that the username was essentially the same, but with different case. For example: UserA and usera.

Notifications takes all the email subscriptions' usernames and makes them lowercase to make a case insensitive comparison. Also, when user preferences are saved, the email subscriptions that are generated are generated with lowercase user IDs.

When we migrated the Errata email subscriptions, some of them contained mixed case user IDs, and we did not realize about that.

What ended up happening was:

  • A customer was initially subscribed to errata Notifications, and therefore we migrated their email subscription from Errata with a mixed case.
  • The customer unsubscribed, which generated a lowercase email unsubscription.
  • The recipients resolver took both subscriptions and since it still found the mixed case subscription, it was sending the email.

Jira ticket

[RHCLOUD-37310]

We had a customer report where they complained that they were still receiving
Errata notifications even after unsubscribing from them.

After investigating, we found out that we had multiple and even overlapping
email subscriptions for almost the same username. By "almost", I mean that the
username was essentially the same, but with different case. For example: UserA
and usera.

Notifications takes all the email subscriptions' usernames and makes them
lowercase to make a case insensitive comparison. Also, when user preferences
are saved, the email subscriptions that are generated are generated with
lowercase user IDs.

When we migrated the Errata email subscriptions, some of them contained
mixed case user IDs, and we did not realize about that.

What ended up happening was:

- A customer was initially subscribed to errata Notifications, and therefore
we migrated their email subscription from Errata with a mixed case.
- The customer unsubscribed, which generated a lowercase email unsubscription.
- The recipients resolver took both subscriptions and since it still found the
mixed case subscription, it was sending the email.

RHCLOUD-37310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant