プロジェクト

全般

プロフィール

Vote #79266

完了

Attachments are added even if validation fails when updating an issue via email

Admin Redmine さんが約4年前に追加. 約4年前に更新.

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

0%

予定工数:
category_id:
29
version_id:
142
issue_org_id:
28576
author_id:
44824
assigned_to_id:
332
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Setting: There's an issue that a required field's empty.

When I try to update the issue via e-mail (but not add value to the required field), Redmine rejects the e-mail update (as it should).

However if the e-mail has an attachment, it adds the attachment to the issue nevertheless.

What it should do is to reject the attachment also.


journals

I found the cause of this problem in *MailHandler#receive_issue_reply*.
I made a patch and attach it.
--------------------------------------------------------------------------------
Setting the target version to 3.3.9.
--------------------------------------------------------------------------------
Committed the patch. Thank you all for reporting and fixing the issue.
--------------------------------------------------------------------------------
Merged to stable branches.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

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

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

いいね!0
いいね!0