Closed
Bug 365229
Opened 19 years ago
Closed 19 years ago
email_in.pl modifies bug permissions without user entering fields
Categories
(Bugzilla :: Incoming Email, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: after.fallout, Assigned: mkanat)
Details
Attachments
(1 file, 1 obsolete file)
|
472 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
when modifying a bug using the inbound email interface the following occurs without any user intervention:
What |Removed |Added
----------------------------------------------------------------------------
CC Accessible|1 |0
Reporter Accessible|1 |0
This seems to happen when the two checkboxes are checked and then you modify the bug through the email.
I used a simple "email" to modify the bug:
From: bbarry@stellarfinancial.com
Subject: [Bug 7150]
Here is a simple change that causes the bug to occur.
| Assignee | ||
Comment 1•19 years ago
|
||
Hey Bill, could you tell me if this fixes it for you?
Assignee: general → mkanat
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #249960 -
Flags: review?(bugzilla-mozilla)
Attachment #249960 -
Flags: review?(after.fallout)
| Assignee | ||
Updated•19 years ago
|
OS: Windows XP → All
Hardware: PC → All
| Reporter | ||
Comment 2•19 years ago
|
||
(I would review- that, but I am unauthorized to do so)
With that patch I seem to get an error sending email and the bug doesn't get modified.
Here is the error I get:
Use of uninitialized value in pattern match (m//) at Bugzilla/Mailer.pm line 87, <STDIN> line 8.
There was an error sending mail from '@systems-300.stellarfinancial.com'
to '<bbarry@stellarfinancial.com>':Can't call method "address" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Email/Send/SMTP.pm line 56, <STDIN> line 8.
Does this make any sense?
| Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2)
> There was an error sending mail from '@systems-300.stellarfinancial.com'
> to '<bbarry@stellarfinancial.com>':Can't call method "address" on an
That means that there was an error in *sending you an error*. So there was some real error, but we can't see it. Could you attach the output of email_in.pl -vvv with that same email in?
| Reporter | ||
Comment 4•19 years ago
|
||
Parsed Fields:
$VAR1 = {
'comment' => 'exaustive error reporting for page
----------
28500 committed by bbarry
U current/storefront/trunk/StoreFront/Auth.aspx.cs
',
'bug_id' => '7084',
'reporter' => 'bbarry@stellarfinancial.com'
};
Updating Bug 7084...
Use of uninitialized value in pattern match (m//) at Bugzilla/Mailer.pm line 87, <STDIN> line 8.
There was an error sending mail from '@systems-300.stellarfinancial.com'
to '<bbarry@stellarfinancial.com>':Can't call method "address" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Email/Send/SMTP.pm line 56, <STDIN> line 8.
| Reporter | ||
Comment 5•19 years ago
|
||
How would I fix the error of it not sending me an error?
-vvv still gives it.
| Reporter | ||
Comment 6•19 years ago
|
||
after adding the following to your patch (in the process subroutine):
@@ -231,11 +233,13 @@
$fields{'addtonewgroup'} = 0;
}
+debug_print("beginning process fields foreach");
foreach my $field (REQUIRED_PROCESS_FIELDS) {
my $value = $bug->$field;
if (ref $value) {
$value = join(',', @$value);
}
+debug_print("Found value $value for $field");
$fields{$field} ||= $value;
}
I get the following when I attempt to do this:
[#####@systems-300 bugzilla]# ./email_in.pl -vvvv <bugtry.txt
Parsing Email
Body:
this is a test of a mozilla patch
Parsed Fields:
$VAR1 = {
'comment' => 'this is a test of a mozilla patch
',
'bug_id' => '7063',
'reporter' => 'bbarry@stellarfinancial.com'
};
Updating Bug 7063...
beginning process fields foreach
Found value for dependson
Found value for blocked
Found value unspecified for version
Found value Deleted for product
Found value --- for target_milestone
Found value Other for rep_platform
Found value Other for op_sys
Found value P3 for priority
Found value normal for bug_severity
Found value for bug_file_loc
Found value untitled for component
Found value testing flags for short_desc
Found value 1 for reporter_accessible
Use of uninitialized value in pattern match (m//) at Bugzilla/Mailer.pm line 87, <STDIN> line 4.
There was an error sending mail from '@systems-300.stellarfinancial.com'
to '<bbarry@stellarfinancial.com>':Can't call method "address" on an undefined value at /usr/lib/perl5/site_perl/5.8.8/Email/Send/SMTP.pm line 56, <STDIN> line 4
It looks as if it is failing on the cc_accessible line.
... runs off to test theory ...
Sure enough if I remove the cc_accessible line, it works. Is that the name of the field?
| Reporter | ||
Comment 7•19 years ago
|
||
change it from cc_accessible to cclist_accessible and it works
| Assignee | ||
Comment 8•19 years ago
|
||
Comment on attachment 249960 [details] [diff] [review]
v1
Ah, okay. I'll fix that. :-)
Attachment #249960 -
Flags: review?(bugzilla-mozilla)
Attachment #249960 -
Flags: review?(after.fallout)
Attachment #249960 -
Flags: review-
| Assignee | ||
Comment 9•19 years ago
|
||
Okay, from what Bill says, this works and is a trivial change.
Attachment #249960 -
Attachment is obsolete: true
Attachment #250389 -
Flags: review?(LpSolit)
| Assignee | ||
Updated•19 years ago
|
Severity: minor → normal
Target Milestone: --- → Bugzilla 3.0
Comment 10•19 years ago
|
||
Comment on attachment 250389 [details] [diff] [review]
v2
Looks good. r=LpSolit
Attachment #250389 -
Flags: review?(LpSolit) → review+
Updated•19 years ago
|
Component: Bugzilla-General → Creating/Changing Bugs
Flags: approval?
Updated•19 years ago
|
Flags: approval? → approval+
| Assignee | ||
Comment 11•19 years ago
|
||
Checking in email_in.pl;
/cvsroot/mozilla/webtools/bugzilla/email_in.pl,v <-- email_in.pl
new revision: 1.4; previous revision: 1.3
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•18 years ago
|
Component: Creating/Changing Bugs → Incoming Email
You need to log in
before you can comment on or make changes to this bug.
Description
•