Ctrl-R causes duplicate POST requests, one "aborted" and one not, but both are processed

UNCONFIRMED
Unassigned

Status

()

Firefox
General
UNCONFIRMED
7 years ago
7 years ago

People

(Reporter: mwic, Unassigned)

Tracking

4.0 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
User-Agent:       Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0
Build Identifier: Mozilla/5.0 (X11; Linux i686; rv:2.0) Gecko/20100101 Firefox/4.0

I'm developing a web application that processes a form, and when I test the backend processing of the form by posting it and then (Ctrl-R) reposting it to see the output, I get *two* POST requests, one of which is shown (by firebug) to be "Aborted" even though the backend is inserting a record. This causes the backend to create duplicate records.

Yes, it sounds like i'm getting the duplicate because I'm re-posting with Ctrl-R, but no: after the first, "manual" form submission, I empty the database. Then i repost, I see the firebug Net tab in the attached screenshot, and I have *two* new, identical records.

This does *not* happen when I do the same in firefox 3.6

Reproducible: Always

Steps to Reproduce:
1. Build a form that inserts a record into a dB
2. Submit it
3. Empty the dB
4. Hit Ctrl-R and answer "Yes" when F4 asks whether you want to re-post the form data.

Actual Results:  
A new record is inserted

Expected Results:  
2 new records are inserted

screenshots: 
The result, with Firebug's Net tab, when the form is submitted manually (with the submit button)
http://twoclick.org/manualSubmit.png
looks fine.

Result when hitting Ctrl-R to re-post the form data:
http://twoclick.org/Ctl-R.png
(Reporter)

Comment 1

7 years ago
Luke just reminded me that this could result from this being a multipart form, with a file attachment.

Updated

7 years ago
Version: unspecified → 4.0 Branch
You need to log in before you can comment on or make changes to this bug.