Bug 1179862

Summary: [RFE] Bundle GWT symbol maps in GWT application's rpm package
Product: [Retired] oVirt Reporter: Vojtech Szocs <vszocs>
Component: ovirt-engine-installerAssignee: Alon Bar-Lev <alonbl>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: alonbl, bugs, ecohen, gklein, iheim, jraju, lsurette, mgoldboi, michal.skrivanek, rbalakri, sbonazzo, yeylon
Target Milestone: ---Keywords: Improvement
Target Release: 3.5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-3.5.1_rc1 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1179893 (view as bug list) Environment:
Last Closed: 2015-09-04 12:48:48 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: 1179893, 1179897, 1193058, 1196662, 1197441    

Description Vojtech Szocs 2015-01-07 16:50:26 UTC
This RFE applies to both WebAdmin & UserPortal.

During GWT application compilation, symbol maps (mapping from Java identifier to obfuscated JavaScript identifier) are produced as *.symbolMap files, located in following directories:

  frontend/webadmin/modules/webadmin/target/generated-gwt/WEB-INF/deploy/webadmin/symbolMaps
  frontend/webadmin/modules/userportal-gwtp/target/generated-gwt/WEB-INF/deploy/userportal/symbolMaps

These symbol maps can be very helpful when facing client-side errors manifested as obfuscated JavaScript stacktraces. Even though these symbol maps are not 100% accurate (see [1] for details), they are still a very good starting place.

[1] https://code.google.com/p/google-web-toolkit/wiki/SourceMaps (see "Details" section describing symbol maps)

Without using symbol maps, one has to compile GWT application in "draft" mode [2] and reproduce the problem on this "draft" application. Replacing "normal" GWT application with its "draft" version can be, however, problematic (especially in case the customer is the only one able to reproduce the error).

[2] http://www.ovirt.org/DebugFrontend#GWT_Draft_Compile

Symbol maps can be considered as meta-data bundled in WebAdmin & UserPortal rpm package.

Comment 1 Vojtech Szocs 2015-01-07 17:11:56 UTC
As per discussion with Alon, we can introduce optional new packages like "ovirt-engine-webadmin-debug" and "ovirt-engine-webadmin-debug" containing GWT symbol maps.

Comment 2 Einav Cohen 2015-01-07 18:15:01 UTC
after additional discussion with Alon: we will provide the symbol maps as part of the user-portal/web-admin RPMs. 

this is high-priority, as this will greatly assist in debugging GUI exceptions that currently contain obfuscated stacktrace information which is pretty useless.

Comment 3 Einav Cohen 2015-01-07 18:16:55 UTC
Vojtech/Alon - I am not sure exactly who should be assigned to do this work; currently assigned to Vojtech, but if makes more sense for Alon to do this task - please re-assign accordingly. thanks.

Comment 4 Michal Skrivanek 2015-01-08 11:19:31 UTC
Alon, is there anything else needed so these are delivered as part of all the builds, oVirt and RHEV?

Comment 5 Alon Bar-Lev 2015-01-08 11:57:27 UTC
(In reply to Michal Skrivanek from comment #4)
> Alon, is there anything else needed so these are delivered as part of all
> the builds, oVirt and RHEV?

no, even if the rhev process will not auto distribute the debuginfo packages into channel, we can send these directly.

Comment 6 Sandro Bonazzola 2015-01-15 14:15:29 UTC
This is an automated message: 
This bug should be fixed in oVirt 3.5.1 RC1, moving to QA

Comment 7 Sandro Bonazzola 2015-01-21 16:03:39 UTC
oVirt 3.5.1 has been released. If problems still persist, please make note of it in this bug report.

Comment 8 Eyal Edri 2015-02-26 12:33:02 UTC
this ovirt bug was fixed during 3.5.1 cycle and is included in the build, and therefore should be verified.

Comment 9 Pavel Novotny 2015-03-13 15:56:09 UTC
Verified in ovirt-engine-3.5.1-1.el6

GWT symbols are packaged in:
ovirt-engine-webadmin-portal-debuginfo-3.5.1-1.el6.noarch
ovirt-engine-userportal-debuginfo-3.5.1-1.el6.noarch

and installed on system in directory:
/usr/share/ovirt-engine/gwt-symbols/webadmin
/usr/share/ovirt-engine/gwt-symbols/userportal

Comment 10 Sandro Bonazzola 2015-09-04 12:48:48 UTC
This is an automated message.
oVirt 3.5.4 has been released on September 3rd 2015 and should include the fix for this BZ. Moving to closed current release.