Closed
Bug 1033445
Opened 12 years ago
Closed 12 years ago
Certain webservice methods such as Bug.get and Bug.attachments should not use shadow db if user is logged in
Categories
(Bugzilla :: WebService, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 5.0
People
(Reporter: dkl, Assigned: dkl)
References
Details
Attachments
(1 file)
|
866 bytes,
patch
|
mail
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•12 years ago
|
||
Propose not using shadow DB when user is authenticated and uses Bug.get, Bug.comments, and Bug.attachments similar to what we do not with show_bug.cgi and attachment.cgi. When using the midair checking in an extension for BMO, a user created an attachment and right after update the bug's status with a separate call. The second call caused a midair collision even though the client reloaded the bug data using a Bug.get call and passed in the timestamp. The timestamp was from one of our slave dbs and did not yet have the updated value from the attachment creation.
We should be ok with updating the following methods: Bug.get and Bug.attachments as they both have related methods for updating, Bug.update and Bug.update_attachment.
dkl
Assignee: webservice → dkl
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86_64 → All
Summary: Certain webservice methods such as Bug.get and Bug.comments, and Bug.attachments should not use shadow db if user is logged in → Certain webservice methods such as Bug.get and Bug.attachments should not use shadow db if user is logged in
Target Milestone: --- → Bugzilla 5.0
| Assignee | ||
Comment 2•12 years ago
|
||
Attachment #8449526 -
Flags: review?(sgreen)
Updated•12 years ago
|
Attachment #8449526 -
Flags: review?(sgreen) → review+
Comment 3•12 years ago
|
||
I've done minimal testing since I don't have a slave server in my set up.
Flags: approval?
| Assignee | ||
Comment 4•12 years ago
|
||
To ssh://gitolite3@git.mozilla.org/bugzilla/bugzilla.git
99e02ea..eb527a5 master -> master
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•