Project

General

Profile

Actions

Defect #44787

closed

Internal error when saving an email address with a long internationalized domain name

Defect #44787: Internal error when saving an email address with a long internationalized domain name

Added by Go MAEDA 13 days ago. Updated 9 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Accounts / authentication
Target version:
Resolution:
Fixed
Affected version:

Description

Saving an email address that has a long internationalized domain name label causes an internal error instead of a validation error. This happens even if the address is shorter than the maximum length of 254 characters.

For example, open the "My account" page, enter the following email address, and save it. Its domain has a label of 224 Cyrillic letters.

marie@абвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюяабвгдежзийклмнопрстуфхцчшщъыьэюя.example

The attached patch rescues Addressable::IDNA::PunycodeBigOutput, which Addressable::IDNA.to_ascii raises when it converts the domain to Punycode, and leaves the address unconverted so that the validation rejects it.


Files

Updated by Go MAEDA 11 days ago Actions #1

  • Status changed from New to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix in r25479.

Updated by Go MAEDA 9 days ago Actions #2

  • Status changed from Resolved to Closed

Merged the fix into the stable branches in r25483 and r25484.

Actions

Also available in: PDF Atom