Bug 999874

Summary: XLS Decision Table creation fails with useless message if no file is selected
Product: [Retired] JBoss BRMS Platform 6 Reporter: Zuzana Krejčová <zkrejcov>
Component: Business CentralAssignee: Mark Proctor <mproctor>
Status: CLOSED CURRENTRELEASE QA Contact: Tomas David <tdavid>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lpetrovi
Target Milestone: ER5   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-08-06 20:17:34 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:
Attachments:
Description Flags
error popup
none
server log excerpt none

Description Zuzana Krejčová 2013-08-22 09:54:37 UTC
Created attachment 789108 [details]
error popup

Description of problem:
If you don't select any file to upload, while creating a new XLS Decision Table, the action fails. You get only a useless message about an internal error (see screenshot).


Version-Release number of selected component (if applicable):
6.0 ER1


How reproducible:


Steps to Reproduce:
1. Open the business-central, Project Authoring, some group, repository, project and package.
2. Click New Item and choose Decision Table (Spreadsheet).
3. Type some name. Don't select any XLS file. 
4. Click OK.


Actual results:
"Upload failed: <h1>JBWEB000065: HTTP Status 500 - </h1>...."


Expected results:
Asset is created without any file being uploaded - which is to be done later.
OR
The action still fails but with some meaningful message.


Additional info:
The error pop-up will be filed as a separate BZ.

Comment 1 Zuzana Krejčová 2013-08-22 09:55:11 UTC
Created attachment 789109 [details]
server log excerpt

Comment 2 manstis 2013-09-06 15:47:11 UTC
Jervis, you're familiar with the file upload code (the XLS Decision Table and XLS Score Card upload widget is effectively the same as that for adding JARs to Guvnor's M2 Repo). Can you please make sure a meaningful message is displayed (you might also want to check the GM2 JAR upload too).

Comment 5 Tomas David 2013-12-13 07:38:38 UTC
Verified on BPMS 6.0.0.ER5.