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

[PM-15392] Decode Foreign Encodings at User Creation #5082

Closed
wants to merge 2 commits into from

Conversation

BensonB12
Copy link
Contributor

🎟️ Tracking

#4845 (comment)

📔 Objective

Solve the issue of coded foreign characters getting into emails. Was: 'Windmüller' Now: 'Windmüller'

Notes:
Our test are probably in the wrong file. We tried to find the best fitting file we could.

We tried to find the place where the string gets coded to 'ü' and other foreign characters, but we ended up assuming that it was coming from the api call into the controller. Our solution does not work if that is not the case.

Co-authors

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@BensonB12 BensonB12 requested a review from a team as a code owner November 25, 2024 20:14
@bitwarden-bot
Copy link

Thank you for your contribution! We've added this to our internal Community PR board for review.
ID: PM-15392
Link: https://bitwarden.atlassian.net/browse/PM-15392

Details on our contribution process can be found here: https://contributing.bitwarden.com/contributing/pull-requests/community-pr-process.

@bitwarden-bot bitwarden-bot changed the title Decode Foreign Encodings at User Creation [PM-15392] Decode Foreign Encodings at User Creation Nov 25, 2024
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Reviewed code, lgtm

@djsmith85 djsmith85 linked an issue Dec 2, 2024 that may be closed by this pull request
1 task
@Patrick-Pimentel-Bitwarden Patrick-Pimentel-Bitwarden dismissed their stale review December 2, 2024 23:53

I didn't follow the auth team's procedure and give the team a chance to review the pr together. We will review it soon.

@trmartin4
Copy link
Member

Hello @BensonB12,

First, thank you for your contribution, and for also including tests for your fix.

After reviewing this change, we feel like this is likely not the appropriate fix for the underlying problem. We believe that the scope of #4845 may be larger than just emergency access emails (as you likely identified), but we need to audit the code to assess the proper place for making the encoding change so that it is updated at all points at which a user's email is changed, and also at the point that has the least possible other side effects in the application.

We are also in the process of migrating to a new registration flow, which - if registration is the appropriate place to adjust - would require adding code there as well.

We will be closing this PR and evaluating the fix for #4845 internally, but if you would like to continue iterating on a solution please feel free to re-open.

@trmartin4 trmartin4 closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emergency Access E-Mails use Wrong Encoding for Names
4 participants