Bug 703962

Summary: /candlepin/status JSON has bad release value
Product: [Community] Candlepin Reporter: Ken Coar <kcoar>
Component: candlepinAssignee: Bryan Kearney <bkearney>
Status: CLOSED NEXTRELEASE QA Contact: John Sefler <jsefler>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 0.5   
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: 2011-09-27 18:20:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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"
}