Bug 1253900 - Missing routes on API end points
Summary: Missing routes on API end points
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Roman Plevka
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-15 09:31 UTC by Johan Swensson
Modified: 2019-09-26 16:25 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 08:54:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 12315 0 None None None 2016-04-22 16:33:38 UTC
Red Hat Product Errata RHBA-2016:1500 0 normal SHIPPED_LIVE Red Hat Satellite 6.2 Base Libraries 2016-07-27 12:24:38 UTC

Description Johan Swensson 2015-08-15 09:31:28 UTC
Description of problem:
These api end points are missing routes.
/katello/api/guestids
/katello/api/content_overrides
/katello/api/available_releases

These endpoints are presented at /katello/api/

Version-Release number of selected component (if applicable):
6.1.1

How reproducible:
Easy

Steps to Reproduce:
1. curl -s -k -X GET -u $SATUSER:$SATPASS  -H "Accept:application/json"  https://$SATHOST/katello/api/guestids
2. curl -s -k -X GET -u $SATUSER:$SATPASS  -H "Accept:application/json"  https://$SATHOST/katello/api/content_overrides
3.  curl -s -k -X GET -u $SATUSER:$SATPASS  -H "Accept:application/json"  https://$SATHOST/katello/api/available_releases


Actual results:
"
The page you were looking for doesn't exist.

You may have mistyped the address or the page may have moved.
"

Expected results:


Additional info:
2015-08-15 11:25:39 [F] 
ActionController::RoutingError (No route matches [GET] "/katello/api/guestids"):
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'


2015-08-15 11:26:19 [F] 
ActionController::RoutingError (No route matches [GET] "/katello/api/content_overrides"):
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'


2015-08-15 11:27:14 [F] 
ActionController::RoutingError (No route matches [GET] "/katello/api/available_releases"):
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
  /usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'

Comment 2 Brad Buckingham 2015-10-26 18:50:15 UTC
Created redmine issue http://projects.theforeman.org/issues/12315 from this bug

Comment 3 Brad Buckingham 2015-10-27 15:05:43 UTC
upstream katello PR: https://github.com/Katello/katello/pull/5553

The PR will return a separate resource list for RHSM vs Katello apis.

Comment 4 Bryan Kearney 2015-11-03 13:02:17 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/12315 has been closed
-------------
Brad Buckingham
Applied in changeset commit:katello|a54f1f89dfc742c518935a1b926ba89ed0ad0847.

Comment 7 Roman Plevka 2016-04-05 09:10:21 UTC
VERIFIED
on sat6.2.0 snap6.1

<pre>
curl -k -X GET -u admin:changeme  -H "Accept:application/json"  "https://${SATSERVER}/rhsm"
    ...},
    {
        "href": "/rhsm/consumers/:id/guestids",
        "rel": "guestids"
    },
    {
        "href": "/rhsm/consumers/:id/content_overrides",
        "rel": "content_overrides"
    },
    {
        "href": "/rhsm/consumers/:id/available_releases",
        "rel": "available_releases"
    },
    {...
</pre>
The output is truncated to show only the relevant part

Comment 9 errata-xmlrpc 2016-07-27 08:54:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1500


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