Bug 1221871

Summary: It sometimes pop up an error dialog when select a product then click refresh button immediately in advanced search page
Product: [Community] Bugzilla Reporter: Rony Gong 🔥 <qgong>
Component: Query/Bug ListAssignee: Jeff Fearn 🐞 <jfearn>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4CC: jmcdonal, qgong
Target Milestone: 4.4   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-20 23:29:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1157849    
Bug Blocks:    

Description Rony Gong 🔥 2015-05-15 05:56:39 UTC
Description of problem:
It sometimes pop up an error dialog when select a product then click refresh button immediately in advanced search page

And This error dialog will disappeared immediately too in firefox

Seems there is a conflict of accessing the server service.

Version-Release number of selected component (if applicable):
4.4.9033-5
firefox 37.0.2 
Chrome 42

How reproducible:
Always

Steps to Reproduce:
1.Go to advanced search page
2.Select 'Red Hat' for classification.
3.Select product 'RHEL7' then click the button 'Refresh Versions/Releases/Milestones' immediately.(Make sure that component loading/refreshing icon is still showing on the current page)

Actual results:
It pop up a error dialog:
Error: Network error or other unexpected problem

Expected results:
No error dialog

Additional info:
It is easy to be reproduced in a bad network.

Comment 1 Rony Gong 🔥 2015-05-15 06:29:40 UTC
This kind of error also happened:
1. Open an exist bug
2. Change the product in the product select list, then click the 'Save Changes button' immediately.

Comment 2 Jeff Fearn 🐞 2015-05-15 06:30:19 UTC
This is due to an rpc request being terminated on unloading the page. It might be possible to bind a function to the onbeforeunload event and set a flag to stop the message being displayed.

Comment 3 Rony Gong 🔥 2015-06-16 07:41:31 UTC
Tested on 
QA environment(bzweb01-qe) with version(4.4.9035-1, DB: mysql)
QA environment(bzperfweb01.app.qa) with version(4.4.9035-1, DB: psql )
Result: Pass

Comment 4 Matt Tyson 🤬 2015-09-20 23:29:47 UTC
This change is now live. If there are any issues, do not reopen this bug.
Instead, you should create a new bug and reference this bug.