Bug 1392931

Summary: openshift-jvm Amq Send Delete Header raise JavaScript exception
Product: OpenShift Container Platform Reporter: Libor Fuka <lfuka>
Component: Management ConsoleAssignee: Alexandre Kieling <abrianik>
Status: CLOSED ERRATA QA Contact: Peng Li <penli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.1CC: abrianik, aos-bugs, jforrest, jokerman, mmccomas, penli, tdawson
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: JavaScript bug Consequence: Delete header button doesn't work Fix: Fix JavaScript bug Result: Delete header button works
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-18 12:50:58 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:

Description Libor Fuka 2016-11-08 13:55:55 UTC
Description of problem:
Amq Send Delete Header raise JavaScript exception


Version-Release number of selected component (if applicable):
openshift-jvm version: 1.0.50

How reproducible:
always

Steps to Reproduce:
1. Deploy some camel route to OCP (for example https://github.com/jboss-fuse/application-templates/blob/application-templates-2.0.fuse-000008/quickstarts/karaf2-camel-amq-template.json)
2. Open Java console from Amq pod page
3. Send -> Header -> Add some header -> Add some header
4. Delete header
5. See JavaScript console in Firefox

Actual results:
It raises JavaScript exception


Error: i.headers.remove is not a function
i.removeHeader@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:66:31920
anonymous/fn@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js line 7 > Function:2:323
t@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:5:25276
pa[t]</<.compile/</</r@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:8:9016
Sn/this.$get</f.prototype.$eval@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:6:3387
Sn/this.$get</f.prototype.$apply@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:6:3619
pa[t]</<.compile/</<@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:8:9066
Z.event.dispatch@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:2:17379
Z.event.add/m.handle@https://api.devel.xpaas:8443/console/java/libs-b80880b94c.js:2:14191

Comment 1 Alexandre Kieling 2016-11-09 18:22:24 UTC
Fix ready for testing. Please use openshift-jvm v1.0.51

Comment 2 Jessica Forrester 2016-11-11 11:55:17 UTC
in web console in https://github.com/openshift/origin-web-console/pull/858

Comment 3 Troy Dawson 2016-11-11 19:45:21 UTC
This has been merged into ocp and is in OCP v3.4.0.25 or newer.

Comment 5 Peng Li 2016-11-14 10:52:45 UTC
verified when do delete head operation, no error is observed.
[root@ip-172-18-1-135 ~]# openshift version
openshift v3.4.0.25+1f36858
kubernetes v1.4.0+776c994
etcd 3.1.0-rc.0
[root@ip-172-18-1-135

Comment 8 errata-xmlrpc 2017-01-18 12:50:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0066