Bug 1379342 - Routes for hosts bulk actions does not match api docs
Summary: Routes for hosts bulk actions does not match api docs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API - Content
Version: Nightly
Hardware: Unspecified
OS: Unspecified
high
medium vote
Target Milestone: Unspecified
Assignee: Brad Buckingham
QA Contact: Peter Ondrejka
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-26 12:28 UTC by Martin Bacovsky
Modified: 2019-09-26 16:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-21 16:49:54 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Martin Bacovsky 2016-09-26 12:28:01 UTC
Description of problem:
The API docs (https://fqdn/apidoc/v2/hosts_bulk_actions.html) states that the routes are prefixed with 'katello' e.g.:
 
PUT /katello/api/hosts/bulk/install_content 

when the actual routes are without the 'katello' prefix:

<pre>
# foreman-rake routes|grep install_content
                                   bulk_install_content_api_hosts PUT    /api(/:api_version)/hosts/bulk/install_content(.:format)                                                                                               katello/api/v2/hosts_bulk_actions#install_content {:api_version=>/v2/}
</pre>

Version-Release number of selected component (if applicable):
# rpm -qa|grep katello
katello-3.2.0-2.rc1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. See the routes in https://fqdn/apidoc/v2/hosts_bulk_actions.html
2. foreman-rake routes|grep install_content
3. Check if they match

Actual results:
No

Expected results:
Yes 

Additional info:
(I'd expect no katello prefix in the apidoc)

Comment 1 Brad Buckingham 2016-10-27 19:45:01 UTC
Checked this Satellite 6.3 internal snap and am no longer seeing the katello prefix on the specified routes.

Going to move to ON_QA for QE verification.

Packages tested with includes:
  satellite-6.3.0-1.0.git.7.fb12bf2.el7sat.noarch
  tfm-rubygem-katello-3.2.0-0.2.rc2.el7.noarch

Comment 3 Peter Ondrejka 2016-11-28 09:11:39 UTC
Verified in Satellite 6.3 snap 6, the routes from the API doc are now correct.

Comment 4 Satellite Program 2018-02-21 16:49:54 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/RHSA-2018:0336


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