Bug 789785 - [REST API] Domain namespace that is too long returns 400 without error messages
Summary: [REST API] Domain namespace that is too long returns 400 without error messages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Lili Nader
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-12 23:31 UTC by Clayton Coleman
Modified: 2015-05-15 01:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-02 21:56:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.