email_in.pl process_bug broken when just adding a new comment?

RESOLVED WORKSFORME

Status

()

Bugzilla
Incoming Email
RESOLVED WORKSFORME
10 years ago
10 years ago

People

(Reporter: Albert Ting, Unassigned)

Tracking

Details

(Reporter)

Description

10 years ago
This may be my custom setup...

I'm not sure why the patch v3 in bug 384009 was made, but it removed the "REQUIRED_PROCESS_FIELDS" process_bug code that ensured all the fields for a specific bug had been defined in the %fields table before calling process_bug.cgi.

Without this code, adding a comment via the email interface doesn't work because the product field is not defined.  Putting this code back in solved my problem.

Comment 1

10 years ago
1) data/input_email2.txt:

From: LpSolit@netscape.net
Subject: [Bug 2]
Content-Type: text/plain; charset="UTF-8"

I'm evil!


2)
[root@localhost bugzilla-pg]# ./email_in.pl -vv < data/input_email2.txt
Parsing Email
Splitting Body and Attachments [Type: text/plain; charset="UTF-8"]...
Part Content-Type: text/plain; charset="UTF-8"
Part Character Encoding: UTF-8
Parsed Fields:
$VAR1 = {
          'comment' => 'I\'m evil!
',
          'bug_id' => '2',
          'reporter' => 'LpSolit@netscape.net'
        };

Updating Bug 2...


3) The comment has been correctly added to bug 2.

I tested this on 3.2 and tip.
Status: NEW → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.