Hide Forgot
Created attachment 837623 [details] foreman-debug Description of problem: Report command fails Version-Release number of selected component (if applicable): # rpm -qa | grep foreman rubygem-hammer_cli_foreman-0.0.12-1.el6.noarch foreman-compute-1.4.0-0.develop.201312131716git48a6510.el6.noarch foreman-installer-1.4.0-0.develop.201312121158git282551d.el6.noarch foreman-release-1.4.0-0.develop.201312131716git48a6510.el6.noarch foreman-1.4.0-0.develop.201312131716git48a6510.el6.noarch foreman-ovirt-1.4.0-0.develop.201312131716git48a6510.el6.noarch foreman-proxy-1.4.0-0.develop.201312091021git42bab91.el6.noarch foreman-postgresql-1.4.0-0.develop.201312131716git48a6510.el6.noarch rubygem-foreman_api-0.1.8-1.el6.noarch foreman-libvirt-1.4.0-0.develop.201312131716git48a6510.el6.noarch foreman-selinux-1.4.0-0.develop.201311220906gite342a0b.el6.noarch How reproducible: everytime Steps to Reproduce: 1.# hammer report info --id 123 Error: 500 Internal Server Error 2.# hammer report delete --id 123 Error: 500 Internal Server Error 3.# hammer report list No data. Actual results: Expected results: Additional info:
Since this issue was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.
Note that this only happens when the report ID is unknown, it should return a 404 error rather than 500.
can't reproduce. I get 404 error, not 500
Agreed, seems to work correctly now, returning a 404 for unknown report IDs.
Returns 200 with {"message":"Could not evaluate: Could not retrieve information from environment production source(s) puppet://qetello02.usersys.redhat.com/plugins"} Seems more reasonable than 500 with no explanation.