Closed Bug 937177 Opened 11 years ago Closed 11 years ago

Bug.add_attachment returns duplicate flag objects

Categories

(bugzilla.mozilla.org :: API, defect)

Development
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: erik.bryn, Assigned: dkl)

Details

When I upload an attachment with a flag, the response contains two flag objects when only one was created. One has an ID, the other doesn't.

API response: https://www.monosnap.com/image/YpINHEMG0gz4PhR5dNL4mAVgS
I think this is also causing the addition of flags that aren't multiplicable to fail. When trying to upload an attachment with the `approval-mozilla-beta` flag, I get this error: "You cannot have several approval-mozilla-beta flags for this bug."
I have pushed a revised version of bug 918384 to bugzilla-dev. Erik, can you confirm that this issue still occurs with the changes?

Thanks
dkl
Flags: needinfo?(erik.bryn)
Looks good to me. Thanks!
Flags: needinfo?(erik.bryn)
Assignee: nobody → dkl
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.