Project

General

Profile

Bug #12315

Missing routes on API end points

Added by Brad Buckingham over 3 years ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1253900
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'

Associated revisions

Revision a54f1f89 (diff)
Added by Brad Buckingham over 3 years ago

fixes #12315 - move rhsm routes to a separate resource list

Without this change, when user invokes a GET /katello/api they receive
several rhsm resources that are invalid. In addition, when they invoke
GET /rhsm they receive all of the /katello/api resources.

This change results in 2 separate set of resources to be returned
by GET /katello/api and GET /rhsm.

Note: the GET /rhsm is required by rhsm to be able to determine if
the server support various resources (e.g. release_version, environments...etc).

Revision 53cace64
Added by Brad Buckingham over 3 years ago

Merge pull request #5553 from bbuckingham/issue-12315

fixes #12315 - move rhsm routes to a separate resource list

History

#1 Updated by The Foreman Bot over 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5553 added
  • Pull request deleted ()

#2 Updated by Eric Helms over 3 years ago

  • Assignee set to Brad Buckingham

#3 Updated by Eric Helms over 3 years ago

  • Assignee deleted (Brad Buckingham)
  • Legacy Backlogs Release (now unused) set to 70
  • Triaged changed from No to Yes

#4 Updated by Eric Helms over 3 years ago

  • Assignee set to Brad Buckingham

#5 Updated by Brad Buckingham over 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF