プロジェクト

全般

プロフィール

Vote #81774

完了

Avoid passing ActionController::Parameters outside of MailHandlerController

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

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

0%

予定工数:
category_id:
30
version_id:
155
issue_org_id:
36394
author_id:
3866
assigned_to_id:
107353
comments:
6
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
170
ステータス-->[Closed]

説明

Currently the @MailHandlerController@ passes an instance of @ActionController::Parameters@ to the @MailHandler@. The @options@ holds a duplicate @ActionController::Parameters@ of the Controller @params@.

This can cause difficulties in later processing. We propose explicitly @permit@-ing the @params@ that will be used later and using a Hash for the @options@.


journals

I have forgotten to add a link to the source code source:/trunk/app/controllers/mail_handler_controller.rb@21350#L31
--------------------------------------------------------------------------------
The attached patch allows all options set by @rdm-mailhandler.rb@ source:/trunk/extra/mail_handler/rdm-mailhandler.rb@21350#L156. This will need to be kept in sync, so maybe adding a comment on both sides will make it easier to remember to add new options to the other side too.
--------------------------------------------------------------------------------
Felix Schäfer wrote:
> The attached patch allows all options set by @rdm-mailhandler.rb@ source:/trunk/extra/mail_handler/rdm-mailhandler.rb@21350#L156. This will need to be kept in sync, so maybe adding a comment on both sides will make it easier to remember to add new options to the other side too.

Updated the patch to add a comment on app/controllers/mail_handler_controller.rb and extra/mail_handler/rdm-mailhandler.rb.
--------------------------------------------------------------------------------
Setting the target version to 5.0.0.
--------------------------------------------------------------------------------
Patch committed, thanks!
--------------------------------------------------------------------------------

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

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

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン5.0.0_155 にセット

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

いいね!0
いいね!0