Comment 2 for bug 795

Revision history for this message
Christian Reis (kiko) wrote :

Spoke to Corey on #launchpad about this for a bit. The duplicates are always sequential and always have identical content, so it's likely to be double-posted bugs (i.e. clicking on Add twice).

Two solutions:

  - Add a [random?] ID to the bug page and store that in the database; ensure that ID is unique when inserting and error out to the user if it's not. This will require some thinking as to where we store this ID, how we avoid collisions, etc.
  - Compare the contents of the posted bug -- title and comment -- and ensure they are different from title and comment of the bug immediately posted before this one. This one invites race conditions, so we could use a range, but is also a bit tricky.

I know Bugzilla has the same issue. There are a couple of bugs covering this:
  - https://bugzilla.mozilla.org/show_bug.cgi?id=46843
  - https://bugzilla.mozilla.org/show_bug.cgi?id=42946
  - https://bugzilla.mozilla.org/show_bug.cgi?id=22353 (more ambitious, less practical)