Project

General

Profile

Actions

Defect #3681

closed

Email issue creation has wrong Tracker and Priority

Added by S Banerian over 15 years ago. Updated almost 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email receiving
Target version:
-
Start date:
2009-07-27
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Issue creation by email happens, but Tracker and Priority are set to values different from those specified by email. A (custom) tracker was INSERTed rather than the tracker desired.

System:
Debian, 'lenny' (stable)
redmine 0.8-stable, R2824
rails 2.1.2
rubygems 1.3.4

Production log entry suggests correct parsing of email (portions obfuscated intentionally):

Processing MailHandlerController#index (for 128.111.222.333 at 2009-07-25 14:55:29) [POST]
Session ID: 768360bac6062204aa9b8e991b67850a
Parameters: {"action"=>"index", "allow_override"=>"", "controller"=>"mail_handler", "key"=>"CfgYKSHTEJTAzMz3mj11", "email"=>"From Sat Jul 25 15:30:59 2009\nDate: Sat, 25 Jul 2009 15:30:59 -0700\nFrom: \nTo: cccc\nSubject: test200907251\n\nthere is a real bug somewhere in redmine\n\nProject: zztest\nTracker: Bug\nPriority: Urgent\nStatus: New\n"}
Completed in 0.14746 (6 reqs/sec) | Rendering: 0.00027 (0%) | DB: 0.03264 (22%) | 201 Created [https://rrrr.rrrr.zzzz.net/mail_handler]

Mysql Logs suggest that the tracker id is getting SELECTED incorrectly:

SELECT `trackers`.id FROM `trackers` INNER JOIN `projects_trackers` ON `trackers`.id = `projects_trackers`.tracker_id WHERE (`trackers`.`id` = 4) AND (`projects_trackers`.project_id = 8 ) ORDER BY trackers.position LIMIT 1;

in this case, trackers.id should be 1 not 4

Somehow, also, priority_id is set to 'Normal' rather than 'Urgent' but i've not been able to discover where that is being selected.

Actions

Also available in: Atom PDF