simple-login / app

The SimpleLogin back-end and web app
https://simplelogin.io
GNU Affero General Public License v3.0
5.15k stars 437 forks source link

Server error when creating ultra-long email address #2138

Open ZeyuWang-cyber opened 4 months ago

ZeyuWang-cyber commented 4 months ago

Prerequisites

Bug report

Describe the bug I have added custom domain to my account. For example, my domain is hello.link. I added hello.link into my account and successfully created hi@hello.link. After that, I added subdomain kiwpu8stddaogrqf3tcrdy7mvo5sve3e9.svmap3e6ov5jxpsapgzmi43uzs5r3doa8bnqrqqy8i9ofkprjs6rugk2h76thxm.xxxxxxx-xxxxxx.xxxx.hello.link. I can add this subdomain to my account, but the website says server error when I try to create ultra-long email address. Server error happened when I tried to add email address hi@kiwpu8stddaogrqf3tcrdy7mvo5sve3e9.svmap3e6ov5jxpsapgzmi43uzs5r3doa8bnqrqqy8i9ofkprjs6rugk2h76thxm.xxxxxxx-xxxxxx.xxxx.hello.link to my account.

This ultra-long email address does follow RFC 3696.

I don't actually hold the domain hello.link. For privacy reason, I redacted some personal information.

Expected behavior

  1. Show the limit of email address length.
  2. Do not show server error message. Instead, the server has to tell me that this email address exceeds length limit.

Screenshots 截图 2024-06-30 11-03-21 截图 2024-06-30 11-06-54 截图 2024-06-30 11-07-38

Environment (If applicable):