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

Invalid UID for user in production #291

Open
maxkadel opened this issue Jun 17, 2024 · 0 comments
Open

Invalid UID for user in production #291

maxkadel opened this issue Jun 17, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@maxkadel
Copy link
Contributor

maxkadel commented Jun 17, 2024

Expected behavior

All users in production have valid UIDs which can be used to generate emails.

Actual behavior

There is one user in production whose UID includes @gmail.com, which creates an error when we try to generate emails.

Steps to replicate

  1. ssh onto the production server as deploy ssh deploy@lockers-and-study-spaces-prod2
  2. cd into the current directory cd /opt/lockers_and_study_spaces/current
  3. Go into the rails console bundle exec rails c
  4. Find user 603 u = User.find(603)
  5. Look at the user's uid u.uid and notice that it includes @gmail.com

Impact of this bug

Every time we try to send an email to all users we get an error and have to revisit this.

Honeybadger link and code snippet, if applicable

Honeybadger link

Net::SMTPFatalError: 553 5.1.3 <romeroschloss@gmail.com@princeton.edu>... Invalid route address
def check_response(res)
  unless res.success?
    raise res.exception_class.new(res)
  end
end

Implementation notes, if any

  • We have tried to address this previously with Invalid email addresses cause an error #233.
  • The user was created with the original migration and has not been updated since. Can we either delete this user, or change their uid to remove the @gmail.com?
  • If the user has not accessed the application recently delete them, and update the email if they have been active.
@maxkadel maxkadel added the bug Something isn't working label Jun 17, 2024
@kevinreiss kevinreiss added this to the Rails Application Sprint milestone Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants