Bug 818661

Summary: [REST API] Returning duplicate error messages on invalid app name
Product: OKD Reporter: Clayton Coleman <ccoleman>
Component: PodAssignee: Krishna Raman <kraman>
Status: CLOSED WORKSFORME QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 1.xCC: mfisher, mpatel
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-05-04 20:07:31 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 Clayton Coleman 2012-05-03 16:58:44 UTC
POST /broker/rest/domains/133606422702a948/applications.json HTTP/1.1\r\nHost: localhost\r\nContent-Type: application/json\r\nAccept: */*\r\nAuthorization: Basic YXBwX3Rlc3QxMTMzNjA2NDIyNzAyYTk0OEB0ZXN0MS5jb206\r\nConnection: close\r\nContent-Length: 67\r\nCookie: rh_sso=123\r\n\r\n"
<- "{\"application_type\":\"diy-0.1\",\"name\":\"@@ @@\",\"cartridge\":\"diy-0.1\"}"

Returns

-> "{\"version\":\"1.0\",\"type\":null,\"messages\":[{\"text\":\"Invalid name specified: @@ @@\",\"exit_code\":105,\"field\":\"name\",\"severity\":\"error\"},{\"text\":\"Invalid name specified: @@ @@\",\"exit_code\":105,\"field\":\"name\",\"severity\":\"error\"}],\"data\":null,\"status\":\"unprocessable_entity\"}"

Fails site unit test.