Project

General

Profile

Actions

Bug #27575

closed

Subscription index API says the organization_id is required, while it is not

Added by Evgeni Golov over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
trivial
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

                        "apis": [
                            {
                                "api_url": "/katello/api/organizations/:organization_id/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": "List organization subscriptions" 
                            },
                            {
                                "api_url": "/katello/api/activation_keys/:activation_key_id/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": "List an activation key's subscriptions" 
                            },
                            {
                                "api_url": "/katello/api/subscriptions",
                                "deprecated": null,
                                "http_method": "GET",
                                "short_description": null
                            }
                        ],
…
                        "params": [
…
                            {
                                "allow_blank": false,
                                "allow_nil": false,
                                "description": "\n<p>Organization ID</p>\n",
                                "expected_type": "numeric",
                                "full_name": "organization_id",
                                "metadata": null,
                                "name": "organization_id",
                                "required": true,
                                "show": true,
                                "validations": [],
                                "validator": "Must be a number." 
                            },
…

When I want to hit the /katello/api/activation_keys/:activation_key_id/subscriptions route, there is no need to pass a Org id, because the AK will lead me to the right Org anyways.

The API controller will accept a request w/o the Org ID just fine and process it correctly.


Related issues 1 (1 open0 closed)

Related to Foreman - Tracker #27680: API bugs that need workarounds in foreman-ansible-modulesNew

Actions
Actions #1

Updated by Chris Roberts over 5 years ago

  • Target version set to Katello Backlog
  • Difficulty set to trivial
  • Triaged changed from No to Yes
Actions #2

Updated by Evgeni Golov over 5 years ago

  • Related to Tracker #27680: API bugs that need workarounds in foreman-ansible-modules added
Actions #3

Updated by Evgeni Golov over 5 years ago

  • Subject changed from Subscription indx API says the organization_id is required, while it is not to Subscription index API says the organization_id is required, while it is not
Actions #4

Updated by The Foreman Bot about 5 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Samir Jha
  • Pull request https://github.com/Katello/katello/pull/8309 added
Actions #5

Updated by The Foreman Bot about 5 years ago

  • Fixed in Releases Katello 3.14.0 added
Actions #6

Updated by Samir Jha about 5 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Justin Sherrill about 5 years ago

  • Triaged changed from Yes to No
Actions #8

Updated by Justin Sherrill about 5 years ago

  • Target version deleted (Katello Backlog)
Actions #9

Updated by Ian Ballou about 5 years ago

  • Target version set to Katello 3.14.0
  • Triaged changed from No to Yes
Actions

Also available in: Atom PDF