Bug 976655 - REST API return version in string instead of float.
REST API return version in string instead of float.
Status: CLOSED NOTABUG
Product: OpenShift Online
Classification: Red Hat
Component: Master (Show other bugs)
2.x
Unspecified Unspecified
medium Severity medium
: ---
: ---
Assigned To: Lili Nader
libra bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-21 02:29 EDT by Liang Xia
Modified: 2015-05-14 20:54 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-06-21 08:34:24 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Liang Xia 2013-06-21 02:29:30 EDT
Description of problem:
REST API return version in string instead of float.

Version-Release number of selected component (if applicable):
devenv_3396
rhc 1.10.5

How reproducible:
always

Steps to Reproduce:
1.curl -k -X POST -H 'Accept: application/json, version=1.5' --user "lxia@redhat.com:redhat" https://int.openshift.redhat.com/broker/rest/domains/lxia/applications -d name=intphp -d cartridge=php-5.3 |json_reformat
2.
3.

Actual results:
{
  "api_version": 1.5,
  "data": null,
  "errors": {

  },
  "messages": [
    {
      "exit_code": 100,
      "field": "name",
      "severity": "error",
      "text": "The supplied application name 'intphp' already exists"
    }
  ],
  "status": "unprocessable_entity",
  "supported_api_versions": [
    1.0,
    1.1,
    1.2,
    1.3,
    1.4,
    1.5
  ],
  "type": null,
  "version": "1.5"
}


Expected results:
Shown "version": 1.5 instead of "version": "1.5".

Additional info:
Comment 1 Jordan Liggitt 2013-06-21 08:34:24 EDT
Working as designed. See https://bugzilla.redhat.com/show_bug.cgi?id=971204

api_version is a float
version should continue to be a string

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