Bug 1061098
| Summary: | Friendly message in REST request for too long env variable | ||
|---|---|---|---|
| Product: | OpenShift Online | Reporter: | Oleg Fayans <ofayans> |
| Component: | Master | Assignee: | Dan McPherson <dmcphers> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.x | CC: | amarecek, dmcphers, jhou |
| 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: | 2014-02-26 19:11:03 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
Oleg Fayans
2014-02-04 11:40:14 UTC
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/57814bdaafcd11855601f4f44eec5cee023cfc6d Bug 1061098 Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/c0fa2dac7b5cbd2e2d5b31f107cea6a3f031031c Bug 1061098 Verified on devenv_4341, the response from restapi is friendly and meaningful. curl -s -k -H 'Content-Type: Application/json' -u jhou:redhat https://ec2-184-73-129-69.compute-1.amazonaws.com/broker/rest/application/52f45084bf14a34c63000001/environment-variables -X POST -d '{"name":"BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB", "value":"batr"}' {"api_version":1.6,"data":null,"messages":[{"exit_code":188,"field":"name","index":null,"severity":"error","text":"Name must be 128 characters or less."}],"status":"unprocessable_entity","supported_api_versions":[1.0,1.1,1.2,1.3,1.4,1.5,1.6],"type":null,"version":"1.6"} |