Defect #30070

Updated by Go MAEDA 7 months ago

h1. Issue Summary

h2.
I try to update ticket status by sending email.
But assignee cannot be updated.
So, I commented out following line from https://github.com/redmine/redmine/blob/master/app/models/mail_handler.rb.
<pre>
# ignore CLI-supplied defaults for new issues
handler_options[:issue].clear
</pre>
then the assignee become editable.

h1. Request

h2.
Delete the line from REDMINE_HOME/app/models/mail_handler.rb.

h1. Environment

<pre>
h2.
Environment:
Redmine version 3.4.6.stable
Ruby version 2.4.5-p335 (2018-10-18) [x86_64-linux]
Rails version 4.2.8
Environment production
Database adapter Mysql2
SCM:
Subversion 1.9.5
Mercurial 4.0
Bazaar 2.8.0
Git 2.11.0
Filesystem
Redmine plugins:
no plugin installed
</pre>


h1. Reproduce Procedure

h2.
# Install Redmine 3.4.6.stable by using Docker (https://hub.docker.com/_/redmine/)
# Create a ticket and send following email.
<pre>
cat testmail
Return-Path: <root@mydomain.xyz>
X-Original-To: root@localhost
Delivered-To: root@localhost.mydomain.xyz
Received: by mail.mydomain.xyz (Postfix, from userid 0)
id 126E23353D91; Sun, 25 Nov 2018 14:31:32 +0900 (JST)
Date: Sun, 25 Nov 2018 14:31:32 +0900
To: root@localhost.mydomain.xyz
Subject: Ticket[#1]
User-Agent: Heirloom mailx 12.5 7/5/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20181125053133.126E23353D91@mail.mydomain.xyz>
From: root@mydomain.xyz (root)

Test Content
</pre>
# execute following commands
<pre>
REDMINE_URL=http://192.168.10.6:8080
REDMINE_API_KEY=AxUWiDdhW06IjYpTpvAM
PROJECT=myproject
cat testmail | rdm-mailhandler.rb --url ${REDMINE_URL} --key ${REDMINE_API_KEY} --project ${PROJECT} --unknown-user create --allow-override all --assigned-to admin
</pre>
# confirm update of the ticket
attachment:updateAssignee.png updateAssignee.png

Thanks

Back