Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 994946

Summary: Unable to run katello-gui and headpin-gui automation due to TypeError and Reference Error
Product: [Retired] Subscription Asset Manager Reporter: Kedar Bidarkar <kbidarka>
Component: katelloAssignee: Adam Price <adprice>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.3CC: adprice, bkearney, sthirugn
Target Milestone: rc   
Target Release: 1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-01 11:17:19 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:    
Bug Blocks: 833466    
Attachments:
Description Flags
RefernceError while editing manifest url none

Description Kedar Bidarkar 2013-08-08 09:39:25 UTC
Description of problem:

Reference Error while editing, manifests-> Repository_url
TypeError while editing, on any page-> description.


---------------------------------------
ReferenceError: element is not defined
[Break On This Error] 	

...set()}};$(this).editable($(this).attr("data-url"),$.extend(e,n))})},a=function()...
---------------------------------------
ypeError: KT.utils.unescape is not a function
[Break On This Error] 	

...set()}};$(this).editable($(this).attr("data-url"),$.extend(e,n))})},a=function()...


Version-Release number of selected component (if applicable):
[root@dhcp201-163 ~]# rpm -qav | grep -i katello
katello-glue-candlepin-1.4.3-1.el6.noarch
katello-common-1.4.3-1.el6.noarch
katello-all-1.4.3-1.el6.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-certs-tools-1.4.2-1.el6.noarch
katello-qpid-client-key-pair-1.0-1.noarch
katello-configure-1.4.3-1.git.67.f71e590.el6.noarch
katello-selinux-1.4.3-1.git.4.99dc194.el6.noarch
katello-cli-1.4.2-1.git.137.fea0d84.el6.noarch
katello-glue-elasticsearch-1.4.3-1.el6.noarch
katello-glue-pulp-1.4.3-1.el6.noarch
signo-katello-0.0.9-1.el6.noarch
katello-1.4.3-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-1.4.2-1.git.137.fea0d84.el6.noarch
katello-repos-1.4.2-1.el6.noarch


How reproducible:
firebug reports so, but this does not affect the end result of the action.


Steps to Reproduce:
1. 
2.
3.

Actual results:
Blocks the automation tests run, as it looks like selenium operation is not completed and it timesout

Expected results:
Need to get rid of this issue, so that automation continues.

Additional info:

Comment 2 Kedar Bidarkar 2013-08-12 17:53:17 UTC
Created attachment 785819 [details]
RefernceError while editing manifest url

Selenium times out upon , clicking the Save button of Repository Url

Comment 4 Adam Price 2013-08-12 18:17:33 UTC
this is possibly related to https://github.com/Katello/katello/pull/2733

Comment 5 Kedar Bidarkar 2013-08-16 08:44:09 UTC
There are two issues here of same nature, 

1) ReferenceError  ( affecting manifest url)

2) TypeError  ( affecting the description field on any page)

We also need to address the above issue 2)

Comment 6 Kedar Bidarkar 2013-08-19 15:46:48 UTC
The issue 2) reported here is described more in detail at 
https://bugzilla.redhat.com/show_bug.cgi?id=985586#c5

Comment 9 Kedar Bidarkar 2013-08-30 09:47:49 UTC
We still face the same issue. 

ReferenceError: element is not defined
[Break On This Error] 	

...set()}};$(this).editable($(this).attr("data-url"),$.extend(e,n))})},a=function()...


RefernceError while editing Respository url

Selenium times out upon , clicking the Save button of Repository Url

Comment 10 Kedar Bidarkar 2013-08-30 09:50:42 UTC
Below are the packages 


[root@xxxx conf.d]# rpm -qav | grep -i katello
signo-katello-0.0.20-1.el6sat.noarch
katello-selinux-1.4.4-2.el6sat.noarch
katello-cli-1.4.3-9.el6sat.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-cli-common-1.4.3-9.el6sat.noarch
katello-glue-elasticsearch-1.4.3-11.el6sam_splice.noarch
katello-configure-1.4.4-3.el6sat.noarch
katello-certs-tools-1.4.2-2.el6sat.noarch
katello-glue-candlepin-1.4.3-11.el6sam_splice.noarch
katello-headpin-all-1.4.3-11.el6sam_splice.noarch
katello-common-1.4.3-11.el6sam_splice.noarch
katello-headpin-1.4.3-11.el6sam_splice.noarch
[root@xxxxx conf.d]# rpm -qav | grep -i ui_alchemy
ruby193-rubygem-ui_alchemy-rails-1.0.12-1.el6sat.noarch

Comment 11 Adam Price 2013-09-04 15:54:23 UTC
https://github.com/Katello/katello/pull/2883

Comment 12 Bryan Kearney 2013-09-18 16:07:21 UTC
moving to ON_QA, these are in Snap7.

Comment 13 Kedar Bidarkar 2013-09-19 09:37:16 UTC
I manually tested the edition of description fields on ak-pages and sys-page. Also tested updating the repository-url. 

We neither get TypeError nor Reference Error any longer.

And also as this is an automation bug, the manifest tests do not fail now with above issues.

Comment 15 errata-xmlrpc 2013-10-01 11:17:19 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.

http://rhn.redhat.com/errata/RHEA-2013-1390.html