Closed
Bug 348283
Opened 20 years ago
Closed 19 years ago
importxml.pl confirms bugs if it has to reassign them
Categories
(Bugzilla :: Bug Import/Export & Moving, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: mkanat, Assigned: valorbugzilla)
Details
Attachments
(2 files)
|
397 bytes,
patch
|
LpSolit
:
review-
|
Details | Diff | Splinter Review |
|
404 bytes,
patch
|
LpSolit
:
review-
|
Details | Diff | Splinter Review |
From a bug I just imported:
The original assignee of this bug does not have
an account here. Reassigning to the default assignee
for the component, tara@bluemartini.com.
Previous assignee is unknown.
Bug reassigned, setting status to "NEW".
Previous status was "UNCONFIRMED".
That doesn't make sense. importxml.pl should not automatically confirm my bugs just because I specified an invalid assignee.
| Assignee | ||
Comment 1•19 years ago
|
||
Hi Max,
I will take care of this bug...
Checking the code I can see that importxml checks for that and try to avoid this behavior.
So let me ask you a couple of questions:
1) How many votes are required to confirm on the product of the destination installation?
2) The xml bug field "everconfirmed" field was zero or undefined right?
| Reporter | ||
Comment 2•19 years ago
|
||
1) That's a per-product setting, but I'm pretty sure usevotes is off.
2) Yes, I'm sure it was. I don't actually have the XML anymore, though.
| Assignee | ||
Comment 3•19 years ago
|
||
Hi,
The bug was here:
> # Check everconfirmed
> my $everconfirmed;
>
> if ($product->votes_to_confirm) {
> $everconfirmed = $bug_fields{'everconfirmed'} || 0;
> }
> else {
> $everconfirmed = 1;
> }
> push (@query, "everconfirmed");
> push (@values, $everconfirmed);
The bug happen on 2.22 and the tip. It doesn't even care if use votes is off or on. Because $product->votes_to_confirm in any case except where votes > 0 it's 0 so false.
I'm uploading patchs for both right now.
Assignee: import-export → gbn
| Assignee | ||
Comment 4•19 years ago
|
||
Attachment #254083 -
Flags: review?(ghendricks)
| Assignee | ||
Comment 5•19 years ago
|
||
Attachment #254084 -
Flags: review?(ghendricks)
| Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Comment 6•19 years ago
|
||
Comment on attachment 254084 [details] [diff] [review]
Patch 1.0 for the tip
>- if ($product->votes_to_confirm) {
>+ if ($product->votes_to_confirm || $bug_fields{'bug_status'} eq "UNCONFIRMED" ) {
This change is incorrect. If votes_to_confirm is 0, then the bug cannot be UNCO. Period. This has nothing to do with usevotes being turned on or off.
Attachment #254084 -
Flags: review?(ghendricks) → review-
Comment 7•19 years ago
|
||
Comment on attachment 254083 [details] [diff] [review]
Patch 1.0 for 2.22-Branch
r- for the same reason.
Attachment #254083 -
Flags: review?(ghendricks) → review-
Comment 8•19 years ago
|
||
post_bug.cgi ignores use_votes too. importxml.pl is built to reflect this behavior and to be consistent with post_bug.cgi. Reassigning bugs from within importxml.pl mark them as NEW *only* if the bug was already confirmed or the number of votes to confirm is 0.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
| Assignee | ||
Comment 9•19 years ago
|
||
Ok.
| Reporter | ||
Comment 10•19 years ago
|
||
Okay, I see. So apparently what happened is that I moved a bug into a product that didn't support UNCONFIRMED. I'm not sure when/why I did this, so I can't verify it. The message printed by importxml.pl there is pretty confusing, though.
You need to log in
before you can comment on or make changes to this bug.
Description
•