Bug 976655 - REST API return version in string instead of float.
Summary: REST API return version in string instead of float.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Master
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: 2013-06-21 06:29 UTC by Liang Xia
Modified: 2015-05-15 00:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-06-21 12:34:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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