Project

General

Profile

Bug #26855

Organization create API requires the org name twice

Added by Evgeni Golov 5 months ago. Updated 5 months ago.

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

Description

According to https://theforeman.org/plugins/katello/3.11/api/apidoc/v2/organizations/create.html, to create an organization called "foo", you need to post the following to the server:

{"name":"foo","organization":{"name":"foo"}}

However, plain Foreman does not have this constraint (see https://theforeman.org/api/1.21/apidoc/v2/organizations/create.html) and accepts

{"organization":{"name":"foo"}}

Associated revisions

Revision ade64aa0 (diff)
Added by Evgeni Golov 5 months ago

Fixes #26855 - don't define params that are in the group already

the resource group already lists name, label and description, no need to
add them explicitly to the endpoint

History

#1 Updated by Evgeni Golov 5 months ago

This is "just" an issue in the published API doc (as used by apipie-bindings). The server accepts {"organization":{"name":"foo"}} just fine.

#2 Updated by The Foreman Bot 5 months ago

  • Assignee set to Evgeni Golov
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/8122 added

#3 Updated by Evgeni Golov 5 months ago

  • Status changed from Ready For Testing to Closed

#4 Updated by John Mitsch 5 months ago

  • Triaged changed from No to Yes
  • Target version set to Katello 3.13.0

Also available in: Atom PDF