Email domain allowlists reject equivalent mixed-case domains
メンテナーはふだん 4 日以内に返信
評価
調査の方向性
Read the EmailValidator implementation and its existing tests for allowed_domains. Compare how the address domain and configured entries are matched, then run the relevant validator tests. Done means mixed-case domain spellings are accepted when they are equivalent, while addresses outside the allowlist remain rejected; pull request #2403 is already open for this issue.
索引モデルが issue の本文から書いたものです。
説明
EmailValidator accepts mixed-case domains normally, but enabling allowed_domains makes the same domains case-sensitive. This rejects valid addresses on an allowed domain.
from tortoise.validators import EmailValidator
EmailValidator()("[email protected]") # accepted
EmailValidator(allowed_domains=["example.com"])("[email protected]")
# InvalidEmailAddress
EmailValidator(allowed_domains=["EXAMPLE.COM"])("[email protected]")
# InvalidEmailAddress
I reproduced this on current develop. RFC 5321 section 2.4 specifies that mailbox domains are not case-sensitive. Comparing the domain and allowlist entries in lowercase would preserve the restriction while accepting equivalent domain spellings.
- 主要言語
- Python
- スター
- 5.6k
- フォーク
- 540
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 31
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tortoise/tortoise-orm のほかの issue
-
Automatic DatetimeField values bypass custom validators対応中かも @IlyaKhalafi が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
tortoise/tortoise-orm#2409 ·
メンテナーはふだん 4 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
tortoise/tortoise-orm#668 ·
メンテナーはふだん 4 日以内に返信
-
UUIDField skips configured validators when writing values対応中かも @IlyaKhalafi が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
tortoise/tortoise-orm#2407 ·
メンテナーはふだん 4 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
tortoise/tortoise-orm#2406 ·
メンテナーはふだん 4 日以内に返信
-
TimeField skips validators for timedelta values対応中かも @IlyaKhalafi が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
tortoise/tortoise-orm#2404 ·
メンテナーはふだん 4 日以内に返信
tortoise/tortoise-orm の issue をすべて見る
似ている issue
-
[BUG]: Compliance rules never see Unity Catalog views as views対応中かも @wagnercsantos が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
databrickslabs/ontos#1348 ·
メンテナーはふだん 3 日以内に返信
-
`forum_pr_poster` action will always return `none` when checking for pre-existing feedback threads, even if a feedback thread already exists.対応中かも @pgmzeta が今日担当しました。 オープンE-Verified P-Major
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
goonstation/goonstation#28259 ·
メンテナーはふだん 2 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
woonstadrotterdam/monumenten#70 ·
メンテナーはふだん 15 日以内に返信
-
binding:python bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
The Browser tab fails with a Wayland error when Open Terminal runs from a Wayland desktop sessionオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
open-webui/open-terminal#210 ·