? Failure
Pull Request for # 9497

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
13 Apr 2016

Pull Request for Issue #9497

Summary of Changes

Update punycode from v1.2.4 to v1.4.1

Testing Instructions

This is used for IDN email validation see #2788

Also see the changes made in #3429 which might not be needed anymore as it looks like they were merged into this upstream library bestiejs/punycode.js#20

avatar brianteeman brianteeman - open - 13 Apr 2016
avatar brianteeman brianteeman - change - 13 Apr 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Apr 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 13 Apr 2016
The description was changed
Milestone Added:
Rel_Number 0 9497
Relation Type Pull Request for
avatar brianteeman brianteeman - change - 13 Apr 2016
Milestone Added:
avatar brianteeman brianteeman - change - 13 Apr 2016
Category External Library JavaScript
avatar brianteeman brianteeman - change - 13 Apr 2016
Milestone Removed:
avatar joomla-cms-bot joomla-cms-bot - change - 13 Apr 2016
Milestone Removed:
avatar wilsonge
wilsonge - comment - 13 Apr 2016

Can you fix the file permissions please Brian?

avatar brianteeman
brianteeman - comment - 13 Apr 2016

Done and learnt something new ;)

avatar wilsonge
wilsonge - comment - 14 Apr 2016

Thanks!

avatar richard67
richard67 - comment - 22 Apr 2016

How shall we test this? Just see if IDN email addresses still can be entered successfully in email fields in backend? Or roll back the change from #3429 to test also if punycode contains a correction for that?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9889.

avatar brianteeman
brianteeman - comment - 10 May 2016

@infograf768 can you help test this please

avatar infograf768
infograf768 - comment - 10 May 2016

Will do tomorrow, Please remind me. :)

avatar infograf768
infograf768 - comment - 12 May 2016

Hmm

A valid punycode mail adress would be:
юзер@екзампл.ком (for Ukrainian)
Whether I revert the change done in #3429 it does not validate.

To test, edit a contact mail.

It looks like we have to change the validation regex in validate.js as well as validate-uncompressed.js

setHandler('email', function(value, element) {
            value = punycode.encode(value);  // changed here from value = punycode.toASCII(value);
            var regex = /^[a-zA-Z0-9.!#$%&’*+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
            return regex.test(value);
        });

See bestiejs/punycode.js@92f8796

avatar brianteeman
brianteeman - comment - 12 May 2016

So to confirm you are saying that neither the existing code or the new code
in this PR works?

avatar infograf768
infograf768 - comment - 12 May 2016

They work if the local part is ascii, not if it is utf8
юзер@екзампл.ком will not validate
info@екзампл.ком will.

This why the regex has to be modified.

avatar brianteeman
brianteeman - comment - 12 May 2016

Should I add that regex change to this PR?

On 12 May 2016 at 09:53, infograf768 notifications@github.com wrote:

They work if the local part is ascii, not if it is utf8
юзер@екзампл.ком will not validate
info@екзампл.ком will.

This why the regex has to be modified.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#9889 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 12 May 2016

I have not posted the regex change

SO, normally we should revert #3429 to get:
value = punycode.encode(value); instead of value = punycode.toASCII(value);
and then find the correct regex to replace
var regex = /^[a-zA-Z0-9.!#$%&’*+\/=?^_{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$/;`

avatar brianteeman
brianteeman - comment - 12 May 2016

Sorry I thought you had - ignore my last commit

avatar infograf768
infograf768 - comment - 12 May 2016

please revert your last commit so that we can find and test a new regex

avatar brianteeman
brianteeman - comment - 12 May 2016

reverted

avatar infograf768
infograf768 - comment - 12 May 2016

All depends on the mail servers. If they obey to RFC5322 or more recent RFC6530
Quote from : https://en.wikipedia.org/wiki/Email_address#Internationalization

Internationalization examples

The example addresses below would not be handled by RFC 5322 based servers, but are permitted by RFC 6530. Servers compliant with this will be able to handle these:

Latin Alphabet (with diacritics): Pelé@example.com
Greek Alphabet: δοκιμή@παράδειγμα.δοκιμή
Traditional Chinese Characters: 我買@屋企.香港
Japanese Characters: 甲斐@黒川.日本
Cyrillic Characters: чебурашка@ящик-с-апельсинами.рф
avatar brianteeman
brianteeman - comment - 12 May 2016

All I really want to do with this PR is to update the library to the current release. If we have an issue with local nonascii email addresses BEFORE and AFTER this PR then there is no change in behaviour caused by this PR and we can merge this one and then look at that as a new issue. If I understand correctly

avatar infograf768
infograf768 - comment - 12 May 2016

We have indeed no more issues after this PR, as far as I tested, when the local part is ascii

avatar infograf768
infograf768 - comment - 12 May 2016

BTW, Travis error is unrelated to this patch

avatar brianteeman
brianteeman - comment - 12 May 2016

So we can merge this PR then?

On 12 May 2016 at 10:57, infograf768 notifications@github.com wrote:

BTW, Travis error is unrelated to this patch


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#9889 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar infograf768
infograf768 - comment - 12 May 2016

Would be good to get other tests first using
info@екзампл.ком as test mail in contact for example.

avatar zero-24 zero-24 - test_item - 12 May 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 12 May 2016

I have tested this item :white_check_mark: successfully on 84fce68

юзер@екзампл.ком -> not validate
info@екзампл.ком -> validate


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9889.

avatar infograf768 infograf768 - test_item - 12 May 2016 - Tested successfully
avatar infograf768
infograf768 - comment - 12 May 2016

I have tested this item :white_check_mark: successfully on 84fce68


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9889.

avatar brianteeman brianteeman - change - 12 May 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 12 May 2016

RTC - thanks for testing


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9889.

avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2016
Labels Added: ?
avatar brianteeman brianteeman - change - 12 May 2016
Milestone Added:
avatar wilsonge wilsonge - change - 12 May 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-05-12 11:42:51
Closed_By wilsonge
avatar wilsonge wilsonge - close - 12 May 2016
avatar wilsonge wilsonge - merge - 12 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 12 May 2016
avatar joomla-cms-bot joomla-cms-bot - change - 12 May 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment