Bug.add_attachment returns duplicate flag objects

RESOLVED FIXED

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: erik.bryn, Assigned: dkl)

Tracking

Development

Details

(Reporter)

Description

5 years ago
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
(Reporter)

Comment 1

5 years ago
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."
(Assignee)

Comment 2

5 years ago
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)
(Reporter)

Comment 3

5 years ago
Looks good to me. Thanks!
Flags: needinfo?(erik.bryn)
(Assignee)

Updated

5 years ago
Assignee: nobody → dkl
Status: UNCONFIRMED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.