Bug 703962 - /candlepin/status JSON has bad release value
Summary: /candlepin/status JSON has bad release value
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Candlepin
Classification: Community
Component: candlepin
Version: 0.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: John Sefler
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-11 19:18 UTC by Ken Coar
Modified: 2015-05-14 15:22 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-27 18:20:20 UTC


Attachments (Terms of Use)

Description Ken Coar 2011-05-11 19:18:55 UTC
Description of problem:

A GET of the /status endpoint returns a JSON quantity such as this:

{"version":"0.3.5","result":true,"release":"1%{?dist}"}

Note that the value of 'release' is not being set correctly.

Comment 1 Bryan Kearney 2011-06-07 15:50:04 UTC
please re-verify with the verson built from the rpm.

Comment 2 Bryan Kearney 2011-06-21 16:50:03 UTC
Fixed in 4d97c633746ecb29c0bad8e908d4fbb8167ab2e6

Comment 3 John Sefler 2011-07-29 17:59:28 UTC
Verifying Version...
[root@jsefler-onprem-62candlepin proxy]# git show-ref | grep master
87506bcee9f29b68e7fde56ad26c11d69e73f723 refs/heads/master
87506bcee9f29b68e7fde56ad26c11d69e73f723 refs/remotes/origin/master

[root@jsefler-onprem-62workstation ~]# curl -k -X GET "https://jsefler-onprem-62candlepin.usersys.redhat.com:8443/candlepin/status" | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    47    0    47    0     0    330      0 --:--:-- --:--:-- --:--:--  1342
{
    "release": "1", 
    "result": true, 
    "version": "0.4.6"
}



Also verifying an rpm install of candlepin
# curl  -k -X GET "https://katello-ci.usersys.redhat.com:8443/candlepin/status" | python -mjson.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0    47    0    47    0     0    286      0 --:--:-- --:--:-- --:--:--   886
{
    "release": "1", 
    "result": true, 
    "version": "0.4.5"
}


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