jakartaee / jakartaee/mail-api
Non US-ASCII characters in display name parsed incorrectly by InternetAddress(String)
Open
- Dominant language
- Java
- Stars
- 285
- Forks
- 109
- Avg merge
- 15h 19m
- Merged PRs (30d)
- 1
Description
Non US-ASCII characters end up **unencoded** in _encodedDisplay_ field when constructor InternetAddress(String) is used to parse valid addresses e.g. `"тест" `.
The workaround is to use InternetAddress(String address, String display) or InternetAddress(String address, String display, String charset)
Contributor guide
Research direction
Start by reproducing the reported address parsing with InternetAddress(String), then compare its behavior with the overloads that accept a display name and charset. The work is done when valid non-US-ASCII display names are correctly encoded in the encodedDisplay field without requiring a workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100