プロジェクト

全般

プロフィール

Vote #70674

完了

Improve logging in MailHandler when user creation fails

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Email receiving_29
対象バージョン:
開始日:
2011/09/06
期日:
進捗率:

0%

予定工数:
category_id:
29
version_id:
36
issue_org_id:
9196
author_id:
29374
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
2
plus1:
2
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

The patch adds logging to MailHandler.create_user_from_email to report the reason if a user model cannot be created.

A "popular" reason appears to be that first/lastname limit is hit, so this also adds code to enforce the limits.


journals

+1
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
r7952 improves user creation and log messages.

Note that it doesn't truncate email since it would result in an invalid email format (tld missing). We could change to a random email address in this case but I don't think it makes sense. If the user creation still fails, wouldn't it be better to use the anonymous user instead of ignoring the incoming email?
--------------------------------------------------------------------------------
Nop, IMHO, it wouldn't be better. in my case, I ignore addr.name because of many users with quoted printable base64 encoded "From:" field, which redmine can't decode to a valid firstname/lastname and also increased limits to 100 chars in user DB and model.
--------------------------------------------------------------------------------
Jean-Philippe Lang wrote:
> r7952 improves user creation and log messages.
>
> Note that it doesn't truncate email since it would result in an invalid email format (tld missing). We could change to a random email address in this case but I don't think it makes sense. If the user creation still fails, wouldn't it be better to use the anonymous user instead of ignoring the incoming email?

Makes sense to me.

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail receiving_29 にセット
  • 対象バージョン1.3.0_36 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0