Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1134066 - API endpoint katello/api/subscriptions/upload does not exist and is documented on apidoc
Summary: API endpoint katello/api/subscriptions/upload does not exist and is documente...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: API
Version: 6.0.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: Unspecified
Assignee: Zach Huntington-Meath
QA Contact: Kedar Bidarkar
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-26 18:17 UTC by Elyézer Rezende
Modified: 2019-09-26 14:34 UTC (History)
5 users (show)

Fixed In Version: rubygem-katello-3.0.0.26-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 11:32:59 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
subs upload is API endpoint is removed now from the apidocs (62.46 KB, image/png)
2016-05-25 16:48 UTC, Kedar Bidarkar
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 14441 0 None None None 2016-04-22 15:11:06 UTC

Description Elyézer Rezende 2014-08-26 18:17:16 UTC
Description of problem:
Is not possible to upload a manifest by posting to katello/api/subscriptions/upload URL even thought it is documented on apidoc. CLI and UI post to katello/api/organizations/:id/subscriptions/upload.

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


How reproducible:
Aways


Steps to Reproduce:
1. curl --user admin:password --insecure -X POST 'https://server.com/katello/api/v2/subscriptions/upload'

Actual results:
A 404 HTTP error is returned


Expected results:
The URL could be found and then the manifest could be uploaded through it. 


Additional info:

# curl --user admin:password --insecure -X POST 'https://server.com/katello/api/v2/subscriptions/upload'
<!DOCTYPE html>
<html>
<head>
  <title>The page you were looking for doesn't exist (404)</title>
  <style type="text/css">
    body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
    div.dialog {
      width: 25em;
      padding: 0 4em;
      margin: 4em auto 0 auto;
      border: 1px solid #ccc;
      border-right-color: #999;
      border-bottom-color: #999;
    }
    h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
  </style>
</head>

<body>
  <!-- This file lives in public/404.html -->
  <div class="dialog">
    <h1>The page you were looking for doesn't exist.</h1>
    <p>You may have mistyped the address or the page may have moved.</p>
  </div>
</body>
</html>

Comment 3 Zach Huntington-Meath 2016-04-01 14:45:11 UTC
Created redmine issue http://projects.theforeman.org/issues/14441 from this bug

Comment 4 Bryan Kearney 2016-04-04 16:04:39 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/14441 has been closed
-------------
Zach Huntington-Meath
Applied in changeset commit:katello|e1d48661635f63dfb8547a9a5fc73151251e19bb.

Comment 5 Kedar Bidarkar 2016-05-25 16:47:03 UTC
The API endpoint no longer exists under the subscriptions of apidoc.


VERIFIED with sat62-snap(GA)-12.1

Comment 6 Kedar Bidarkar 2016-05-25 16:48:19 UTC
Created attachment 1161530 [details]
subs upload is API endpoint is removed now from the apidocs

Comment 7 Bryan Kearney 2016-07-27 11:32:59 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:1501


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