Defect #36394
closed
Avoid passing ActionController::Parameters outside of MailHandlerController
Added by Felix Schäfer about 4 years ago.
Updated almost 4 years ago.
Category:
Code cleanup/refactoring
Description
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.
Files
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.
- Category changed from Email receiving to Code cleanup/refactoring
- Target version changed from Candidate for next major release to 5.0.0
Setting the target version to 5.0.0.
- Status changed from New to Resolved
- Assignee set to Marius BĂLTEANU
- Resolution set to Fixed
- Status changed from Resolved to Closed
Also available in: Atom
PDF