Bug 739702

Summary: Pressing "submit" quickly causes more than one job to be submitted
Product: Red Hat Enterprise MRG Reporter: Trevor McKay <tmckay>
Component: cuminAssignee: grid-maint-list <grid-maint-list>
Status: CLOSED WONTFIX QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 2.0CC: croberts, matt, sgraf
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-26 20:17:28 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Trevor McKay 2011-09-19 19:54:41 UTC
Description of problem:

Pressing the submit button multiple times from the job submit form will cause more than 1 job to be submitted (can easily reproduce 2 jobs, more might be possible depending on what is happening in the program).

Version-Release number of selected component (if applicable):

This probably exists in 2.0, the code around submit has not changed lately.

How reproducible:

100%

Steps to Reproduce:
1.  Fill out a job form
2.  Click on the submit button as fast as you can (maybe even slower...  I had the same thing happen when there was a delay in processing the form)

  
Actual results:

More than 1 job submitted

Expected results:

Submit (or cancel) should be ignored after the first button press on the form

Comment 1 Trevor McKay 2011-09-21 14:25:51 UTC
Implementation note,

  looks like we need some Javascript changes to count button presses on the form and ignore presses after an initial "Submit" or "Cancel".  

  Make sure that if a "Submit" results in an error that another Submit/Cancel is possible (form with errors may be a new form, so it may not be a problem)

Comment 2 Trevor McKay 2011-09-26 18:41:50 UTC
Making this low priority after feedback from Justin and Ernie.  This falls into the bucket of "the web is broken" and is a general problem across many, many UIs that users should be familiar with.

Adding the JS stuff to count button presses probably will work but it is not something that needs to happen right away.

Comment 4 Anne-Louise Tangring 2016-05-26 20:17:28 UTC
MRG-Grid is in maintenance and only customer escalations will be considered. This issue can be reopened if a customer escalation associated with it occurs.