Bug 1127150

Summary: IE9: Can't create new SQL data provider
Product: [Retired] JBoss BPMS Platform 6 Reporter: Jan Hrcek <jhrcek>
Component: BAMAssignee: Roger Martínez <romartin>
Status: CLOSED EOL QA Contact: Gui Jospin <gjospin>
Severity: high Docs Contact:
Priority: urgent    
Version: unspecifiedCC: kverlaen, mbaluch, rrajasek
Target Milestone: ER3Keywords: TestBlocker
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Only in IE9 seems that when using innerHTML method, it evaluates the scripts found in the html code to insert, this behavior not happens in other IE versions (8, 10,11) neither Chrome/Safari. So all the script tags inserted in the ajax refreshed portlet, in IE9, are executed twice: once when using innerHTML (attach the http response to a DOM element) and further when adding the new DOM element into the existing DOM tree (appendChild). Consequence: Both setAjax and refreshPanel javascript functions were called twice, producing some unexpected errors. Fix: Control that both setAjax and refreshPanel javascript functions are only executed once per ajax request. Result: As functions are called just once,no unexpected results appear.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:01:14 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:
Attachments:
Description Flags
Video showing the problem none

Description Jan Hrcek 2014-08-06 09:36:55 UTC
Created attachment 924416 [details]
Video showing the problem

Description of problem:
When I try to create new data provider of type 'SQL Query' in Internet explorer 9, nothing happens when I select the provider type. The form for filling in data provider parameters does not appear, instead the screen just remains in the state where you need to select data provider type (as if I hadn't selected it at all).

Observe the behavior in the video attached: 
in 0:20 I select provider type 'SQL Query' - page is reloaded, but the form for entering provider parameters doesn't appear.
in 0:30 I select provider type 'CSV File' - and that is working correctly


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

How reproducible:
Always with Internet Explorer 9

Steps to Reproduce:
1. Go to Showcase workspace, page Data providers
2. Click 'create new data provider'
3. Select type 'Sql query'

Actual results:
Form for entering data provider parameters is not loaded

Expected results:
Form should be loaded so we can create new data provider

Comment 1 Jan Hrcek 2014-08-06 11:42:23 UTC
Marking as TestBlocker, as quite a few of our test rely on configuring SQL provider and then creating KPIs based on it etc.

Comment 2 Roger Martínez 2014-12-01 20:14:26 UTC
Fixed. Added comments in DOC text.

Comment 3 Roger Martínez 2014-12-01 20:20:26 UTC
Tested in Chrome, Firefox, Safari, IE9, IE10

Comment 5 Jan Hrcek 2014-12-17 08:34:59 UTC
Now it works correctly! Verified with BPM Suite 6.1 ER3 on Internet Explorer 9.