Bug 789785

Summary: [REST API] Domain namespace that is too long returns 400 without error messages
Product: OKD Reporter: Clayton Coleman <ccoleman>
Component: PodAssignee: Lili Nader <lnader>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: bmeng, mfisher, mpatel, rmillner
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-02 21:56:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Clayton Coleman 2012-02-12 23:31:23 UTC
When posting a new domain or updating an existing domain with a namespace that is > 16 characters long, the server responds with 400 and no error messages in the body.  Expect 422 with standard error message format.

Comment 1 Lili Nader 2012-02-17 23:21:39 UTC
changed response code to 422 and fixed the error message

Comment 2 Meng Bo 2012-02-20 07:21:23 UTC
verified this issue on devenv_1621,
when post new domain with long name, got error message:
<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>unprocessable_entity</status>
  <type nil="true"></type>
  <version>1.0</version>
  <data nil="true"></data>
  <messages>
    <message>
      <severity>error</severity>
      <text>
        <message>Namespace (bmengdev123456123456123456) is too long.  Maximum length is 16 characters</message>
        <exit-code>106</exit-code>
      </text>
    </message>
  </messages>
</response>

but when update exist domain with long name, will get nothing. And updating cannot successful.

Comment 3 Meng Bo 2012-02-27 05:49:07 UTC
Verified on devenv_1642, both of create domain and update domain with long name, return correct error message.
Mark bug as VERIFIED.