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)

2.22
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: mkanat, Assigned: valorbugzilla)

Details

Attachments

(2 files)

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.
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?
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.
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
Attachment #254083 - Flags: review?(ghendricks)
Attachment #254084 - Flags: review?(ghendricks)
Status: NEW → ASSIGNED
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 on attachment 254083 [details] [diff] [review] Patch 1.0 for 2.22-Branch r- for the same reason.
Attachment #254083 - Flags: review?(ghendricks) → review-
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
Ok.
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.

Attachment

General

Creator:
Created:
Updated:
Size: