2192: Duplicate posts when clicking [Add comment]

yuzisee
July 27, 2011
2154
What version are you running?
Reviewboard 1.6 RC2

What's the URL of the page containing the problem?
http://path.to.reviewboard/r/<number>/

What steps will reproduce the problem?
(Screenshots attached, follow along)
[0001.png] Visit your review URL (e.g. http://path.to.reviewboard/r/<number>/)
[0002.png] Click "Add comment" and type a comment
[0003.png] Click [OK] or press Ctrl+Enter
[0004.png] Double-click your newly created comment OR click the pencil icon
[0005.png] Edit your comment to something else
[0006.png] Click [OK] or press Ctrl+Enter
[0007.png] At this point, your original comment should be gone, having been replaced by your new comment.
[0008.png] Click [Publish]

What is the expected output? What do you see instead?

At this point, only your NEW comment should be posted. There should be no trace of the old comment.
However...
[0009.png] Notice that the e-mail from reviewboard illustrates that BOTH comments were in fact posted, and in opposite order to each other. This suggests some sort of copy-on-write behavior where atomicity should have been otherwise violated...
[0010.png] Refreshing the reviewboard webpage shows the same thing. Both comments are now visible, even though we really only intended to make one.

What operating system are you using? What browser?
Verified on the following browsers:
  chrome 12.0.742.124
  Firefox 5.0
  Opera 11.50 Build 1074

Verified on the following operating systems:
  Windows 7
  Ubuntu Linux

Please provide any additional information below.
chipx86
#1 chipx86
  • +Confirmed
  • -Priority-Medium
    +Priority-Critical
    +Milestone-Release1.6
#2 hongb*****@gmai***** (Google Code) (Is this you? Claim this profile.)