Bug 1035372

Summary: Incorrect Wizard Error Message When Creating A User Defined Function
Product: [JBoss] JBoss Data Virtualization 6 Reporter: Dan Florian <dflorian>
Component: ToolingAssignee: Van Halbert <vhalbert>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lfabriko, vhalbert
Target Milestone: ER6   
Target Release: 6.0   
Hardware: Unspecified   
OS: Mac OS   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
When creating a user defined function in Teiid Designer, users may find they receive validation errors (or a misleading "User defined function category is undefined" message). This is due to leaving the function category or java method blank. (The wizard's "OK" button is enabled even if these fields are blank.) To avoid these errors, users must fill in both of these fields.
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-06 15:37:08 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:

Description Dan Florian 2013-11-27 16:02:57 UTC
Description of problem:

After filling in the function name, the error message states "User defined function category is undefined." Filling in the "Function Category" does not change the error message. Once the "Java Class" is filled in the error message goes away.

Turns out the "Function Category" isn't required at all.

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

DV 6.0.0 ER4
JBDS 7.1.0 CR1
JBIS 4.1.3 Beta5
Teiid Designer 8.3.0 CR1
How reproducible:

Steps to Reproduce :

Using Designer:

1. Create a new relational model
2. New Child > Procedure > User Defined Function > OK
3. Enter a function "Name."
4. Wizard error message now shows "User defined function category is undefined"
5. Only way to get rid of this error message is to enter a "Java Class" 

Actual results:

Incorrect, misleading error message.

Expected results:

A correct error message indicating the "Java Class" is missing.

Additional info:

None.

Comment 2 Dan Florian 2013-11-27 16:40:21 UTC
The wizard's "OK" button enables even if there is not a function category or java method specified. When the wizard finishes and the model is saved, two validation errors are created for each of those missing fields. The wizard could at least warn the user that both of those fields are required.

Comment 3 JBoss JIRA Server 2013-12-02 15:42:39 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-1962 to Resolved

Comment 4 JBoss JIRA Server 2013-12-02 15:42:39 UTC
Barry LaFond <blafond> made a comment on jira TEIIDDES-1962

Done

Comment 5 Lucie Fabrikova 2014-02-03 14:46:44 UTC
Verified in JBDSIS-7.0.0.GA-GA + DV 6.0.0.GA.

Comment 6 JBoss JIRA Server 2014-05-07 21:04:22 UTC
Barry LaFond <blafond> updated the status of jira TEIIDDES-1962 to Closed