Bug 1179862 - [RFE] Bundle GWT symbol maps in GWT application's rpm package
Summary: [RFE] Bundle GWT symbol maps in GWT application's rpm package
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 3.5.1
Assignee: Alon Bar-Lev
QA Contact: Pavel Novotny
URL:
Whiteboard: integration
Depends On:
Blocks: 1179893 1179897 1193058 1196662 1197441
TreeView+ depends on / blocked
 
Reported: 2015-01-07 16:50 UTC by Vojtech Szocs
Modified: 2016-06-29 20:24 UTC (History)
12 users (show)

Fixed In Version: ovirt-3.5.1_rc1
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1179893 (view as bug list)
Environment:
Last Closed: 2015-09-04 12:48:48 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1351349 0 high CLOSED [UI] Portal debug packages are missing on the repo 2021-08-30 13:59:02 UTC
oVirt gerrit 36655 0 master MERGED packaging: add gwt symbols packages Never
oVirt gerrit 36702 0 ovirt-engine-3.5 MERGED packaging: add gwt symbols packages Never

Internal Links: 1351349

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.


Note You need to log in before you can comment on or make changes to this bug.