[4.0] AlreadyPunycodeException exception in email test#36303
[4.0] AlreadyPunycodeException exception in email test#36303bembelimen merged 10 commits intojoomla:4.1-devfrom conseilgouz:4.0-dev
Conversation
Don't convert domain to punycode if domain is already a Punycode string fix #36301
|
Tested with Before patch, we get the error After patch, the mail is sent. Still remains a problem: After patch: I can't save such an email as I get a warning |
|
Maybe
|
This comment was marked as abuse.
This comment was marked as abuse.
|
the regex will always match because it doesn't except . right? |
|
and it would be easier to test for |
I was not sure about uniqueness of the prefix. |
Ignore AlreadyPunycodeException
|
Updated code to ignore AlreadyPunycodeException instead of testing domain value. |
|
The PR works fine for me: test email sent and well received, no more Punycode error. |
|
@conseilgouz : Any idea when this PR will be merged. So the fix would be available for consumers :-) |
This PR has been marked "closed", and is not in 4.1. No idea who did that, but, I think that as nobody tested it, it's normal PR life..... |
|
@conseilgouz : Thanks for your quick reply. At the moment I can confirm that the issue is still reproducible in 4.1.4 So how to proceed? What do you suggest? Above I saw: [1]. So the PR was tested [1] fontanil commented on Dec 16, 2021 |
A PR has to be "human tested" twice, following the right procedure. To go RTC, it has to be reopened and tested. |
|
@conseilgouz : Thanks for your update. Are you going to reopen the PR? If not: Who can do this? |
|
I don't have the rights to do it. I just asked it in issue #36301 . |
|
pr opened as rquested #36301 (comment) |
|
@alikon : what is missing in this PR to go RTC ? |
|
@FrankReisenhofer @fontanil : please test this PR and send your result via https://issues.joomla.org/tracker/joomla-cms/36303 |
|
@alikon : thank you. Next question : I have "This branch is out-of-date with the base branch" message and no way to fix this. Any idea ? |
|
I have tested this item ✅ successfully on 5d16f6e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36303. |
|
I have tested this item ✅ successfully on 5d16f6e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36303. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/36303. |
|
Thx |

Don't convert domain to punycode if domain is already a Punycode string
Pull Request for Issue #36301 .
Summary of Changes
Testing Instructions
In Global Configuration, Server tab, in mail section, update "from email" parameter so that domain name contains one or more accented character. Click on "Send TestMail".
Actual result BEFORE applying this Pull Request
Nothing happens : no error, no email sent
Expected result AFTER applying this Pull Request
a message "The email was sent to ..." is displayed and, if domain exists, you should receive an email.
Documentation Changes Required