Bug 1027732 - Uncaught exception when showing bundle deployment status when deploying to an empty group
Summary: Uncaught exception when showing bundle deployment status when deploying to an...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Provisioning
Version: JON 3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER07
: JON 3.2.0
Assignee: John Mazzitelli
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 1012435
TreeView+ depends on / blocked
 
Reported: 2013-11-07 10:47 UTC by Libor Zoubek
Modified: 2015-11-02 00:43 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:35:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Libor Zoubek 2013-11-07 10:47:37 UTC
Description of problem:

I cannot check details of bundle deployment, exception pops up in UI

Version-Release number of selected component (if applicable):
JON 3.2.ER5

How reproducible: always


Steps to Reproduce:
1. upload & deploy some bundle
2. explore it's live destination, try to look on status of deployment on agents

Actual results:
com.google.gwt.core.client.JavaScriptException:(TypeError) 
 stack: TypeError: Cannot read property 'category' of null
    at $addMemberDeploymentsTable (<anonymous>:43487:75)
    at $viewBundleDeployment (<anonymous>:43634:3)
    at $onSuccess_178 (<anonymous>:43893:3)

Expected results: you can see deployment status and details for all agents in given destination


Additional info: this regressed since ER4

Comment 1 John Mazzitelli 2013-11-07 12:56:05 UTC
this is strange, I know I tried this just a couple days ago when I committed some bundle fixes. Can you post what your browser URL is so I know exactly what page this is?

Comment 2 John Mazzitelli 2013-11-07 13:20:39 UTC
http://xxx:7080/coregui/#Bundles/Bundle/10051/deployments/10032

columnNumber: 2: this$static.deployment.destination.group.resourceType is null
   at Unknown.$addMemberDeploymentsTable(Unknown Source)
   at Unknown.$viewBundleDeployment(Unknown Source)
   at Unknown.$onSuccess_178(Unknown Source)
   at Unknown.onSuccess_184(Unknown Source)
   at Unknown.$onResponseReceived(Unknown Source)
   at Unknown.onResponseReceived_6(Unknown Source)
   at Unknown.$fireOnResponseReceived(Unknown Source)
   at Unknown.onReadyStateChange_0(Unknown Source)
   at Unknown.this$static.onreadystatechange<(Unknown Source)

Comment 3 John Mazzitelli 2013-11-07 13:26:35 UTC
this occurred because the group was empty when the bundle was deployed.

We need to either:

a) fix this NPE (there is no members of the group, so its not a compatible group and thus no resource type associated with it)

or

b) don't allow a user to deploy a bundle to an empty group

Comment 4 Libor Zoubek 2013-11-07 14:04:50 UTC
I'd vote for fixing NPE, b) does not prevent this issue, because user can remove members from group after he deployed bundle (this is what happened in my case).

Comment 5 John Mazzitelli 2013-11-07 15:03:48 UTC
git commit to master: e39a3be5c0bfbc7da0cff69c42af09da235807b1
git commit to release/jon3.2.x: 345747659010cddeb59874f18d4e0f14260aa287

Comment 7 Libor Zoubek 2013-11-25 08:42:16 UTC
verified on ER7


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