Bug 844458 - GET of unknown user returns 500 (Internal Server Error)
Summary: GET of unknown user returns 500 (Internal Server Error)
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Katello
Classification: Retired
Component: Webservice API
Version: 1.X
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Bryan Kearney
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-30 17:43 UTC by Brad P. Crochet
Modified: 2012-08-24 13:38 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-24 13:38:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Brad P. Crochet 2012-07-30 17:43:41 UTC
Description of problem:
Using the API:
curl -k -v https://admin:admin@katello/katello/api/users/1000

When user 1000 does not exist, returns a 500, instead of a 404 as expected. 

Version-Release number of selected component (if applicable):
katello-glue-foreman-0.1.318-1.el6cf.noarch
katello-qpid-broker-key-pair-1.0-1.noarch
katello-cli-0.1.112-1.el6cf.noarch
katello-glue-candlepin-0.1.318-1.el6cf.noarch
katello-agent-0.17-1.el6.noarch
katello-cli-common-0.1.112-1.el6cf.noarch
katello-certs-tools-1.0.7-1.el6_3.noarch
katello-selinux-0.1.10-1.el6.noarch
katello-candlepin-cert-key-pair-1.0-1.noarch
katello-glue-pulp-0.1.318-1.el6cf.noarch
katello-all-0.1.318-1.el6cf.noarch
katello-0.1.318-1.el6cf.noarch
katello-configure-0.1.111-1.el6cf.noarch
katello-common-0.1.318-1.el6cf.noarch
katello-qpid-client-key-pair-1.0-1.noarch


How reproducible:
Always

Steps to Reproduce:
1. Use above curl command
2.
3.
  
Actual results:
500 return

Expected results:
404 return

Comment 1 Pavel Pokorny 2012-08-02 13:17:31 UTC
Fixed in https://github.com/Katello/katello/pull/418


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