Bug 976655

Summary: REST API return version in string instead of float.
Product: OpenShift Online Reporter: Liang Xia <lxia>
Component: MasterAssignee: Lili Nader <lnader>
Status: CLOSED NOTABUG QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jliggitt, mfisher
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: 2013-06-21 12:34:24 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 Liang Xia 2013-06-21 06:29:30 UTC
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" 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 12:34:24 UTC
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