| Summary: | [REST API] Domain namespace that is too long returns 400 without error messages | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Clayton Coleman <ccoleman> |
| Component: | Pod | Assignee: | Lili Nader <lnader> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 2.x | CC: | 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
changed response code to 422 and fixed the error message 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.
Verified on devenv_1642, both of create domain and update domain with long name, return correct error message. Mark bug as VERIFIED. |