Closed Bug 319593 Opened 19 years ago Closed 17 years ago

bug_email.pl fails if qa_contact specified in email

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

Other
Other
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: gabriel_hernandez, Unassigned)

References

Details

Attachments

(1 file)

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
Build Identifier: 2.20

While upgrading from version 2.18 to 2.20 we discovered the bug_email.pl script fails if an eamil is submitted that specifies the qa_contact.  We discovered the following line in bug_email.pl is no longer valid:

$Control{'qa_contact'} = DBname_to_id($Control{'qa_contact'});

This line should now read:

$Control{'qa_contact'} = DBNameToIdAndCheck($Control{'qa_contact'});

The DBname_to_id no longer exists in version 2.20.  It has been updated to the module called DBNameToIdAndCheck.

Reproducible: Always

Steps to Reproduce:
1.Send email to Bugzilla instance specifying QA Contact ("@qa_contact=some_name")
2.Nothing happens

Actual Results:  
Nothing happens

Expected Results:  
A Bug is created with a QA Contact specified

None
The qa_contact field should work the same way as the assigned_to field. Using DBNameToIdAndCheck() is a bad idea as it would throw an error instead of writing the error message in an email.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to comment #1)
> The qa_contact field should work the same way as the assigned_to field. Using
> DBNameToIdAndCheck() is a bad idea as it would throw an error instead of
> writing the error message in an email.

I'm fine with processing the qa_contact as the subject matter experts deem appropriate.  The pressing issue is that bug_email.pl fails if qa_contact is specified in the email.  The example I provided restores functionality.  If that should NOT be the permanent fix, I'm happy to implement the patch you feel does the job better.
Feel free to submit a patch, I will look at it. Do not forget to request review (review?)
Sorry, I am not much of a developer.  The example I provided in the original submission was only available to me with the help of a very knowledgeable UNIX admin who works with me.
Blocks: 322955
Attachment #288855 - Flags: review?(LpSolit)
Comment on attachment 288855 [details] [diff] [review]
gabriel's idea as a patch

bug_email.pl no longer exists and has been replaced by email_in.pl on Bugzilla 3.x. Bugzilla 2.20.x and 2.22.x are restricted to security bugs and crashers.
Attachment #288855 - Flags: review?(LpSolit) → review-
AFAICS, this bug is no longer valid in email_in.pl.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: