Bug 1264830

Summary: Offline EAP JDR attachment leads Internal server error
Product: [JBoss] JBoss Operations Network Reporter: Jeeva Kandasamy <jkandasa>
Component: Red Hat AccessAssignee: Michael Burman <miburman>
Status: CLOSED WONTFIX QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: medium    
Version: JON 3.3.4CC: fbrychta, miburman
Target Milestone: ER01Keywords: Triaged
Target Release: JON 3.3.5   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-01 15:33:47 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:
Attachments:
Description Flags
support page
none
server log none

Description Jeeva Kandasamy 2015-09-21 10:22:05 UTC
Created attachment 1075453 [details]
support page

Description of problem:
When we select offline EAP to create a support case and include JDR report as attachment, when we submit throws internal server error and submitted successfully. But "Submit" is button still active which leads user to click one more time and creating another case with same information.

Version-Release number of selected component (if applicable):
JBoss Operations Network
Version : 3.3.0.GA Update 04
Build Number : b42d4f0:9e8659d
GWT Version : 2.5.0
SmartGWT Version : 3.0p

How reproducible:
always

Steps to Reproduce:
1. Add JBoss EAP in JON
2. Shutdown EAP(step#1), and make it offline
3. Open EAP (step#1) from servers page (Inventory-->Resources-->Servers)
4. On left side panel right click on EAP, you can see 'Open Support Case', click it
5. Enter some details, click on next, you can see "EAP JDR Report", click that attachment and click submit. You can see internal server error and same time new case created successfully message. however submit button not disable and we can click it one more time and it leads duplicate support case.

Actual results:
- Allow to create duplicate report.
- Shows "Internal server error" (but in server.log shows the error message clearly "Cannot obtain report, resource is not UP").

Expected results:
- Should not allow to submit one more time if support case submitted successfully.
- Error should be meaningful or should not allow to select offline resources.

Additional info:

Browser: Firefox 40.0.3
OS: Fedora 22, GNOME

screenshot and server.log are attached

Comment 1 Jeeva Kandasamy 2015-09-21 10:22:33 UTC
Created attachment 1075454 [details]
server log