Bug 1510764

Summary: Input validation - no signature found should throw ValidationException
Product: [oVirt] ovirt-engine Reporter: Ori Liel <oliel>
Component: RestAPIAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Radim Hrazdil <rhrazdil>
Severity: medium Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, lsvaty, mperina
Target Milestone: ovirt-4.2.0Flags: rule-engine: ovirt-4.2+
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:23:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ori Liel 2017-11-08 07:42:38 UTC
Description of problem:

Currently auto-generated code from live-documentation, which selects the correct signature of a method to be invoked, throws an IllegalArgumentException if no matching signature is found. 


How reproducible:

1. Make an API request which invokes signature-detection
2. Provide arguments which don't match any possible signature


Actual results:

A non-graceful failure containing a stack-trace of the exception.

Expected results:

A response object containing the error message. 

Additional info:

Comment 1 Radim Hrazdil 2017-12-19 14:04:37 UTC
Verified that ValidationException is thrown instead of IllegalArgumentException.
Version 4.2.0.2

Comment 2 Sandro Bonazzola 2017-12-20 11:23:26 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.