Project

General

Profile

Bug #15703

Cannot update organization using --media-ids flag

Added by Ondřej Pražák almost 5 years ago. Updated almost 3 years ago.

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

Description

hammer organization update --id 7 --media-ids 1,2,3,4,5,6,7,8,9
Could not update the organization:
  Can't mass-assign protected attributes for Organization: media_ids

Associated revisions

Revision 5284a31d (diff)
Added by Ondřej Pražák over 4 years ago

Fixes #15703 - Singularize media in api doc for orgs

Revision 391c38ad (diff)
Added by Ondřej Pražák over 4 years ago

Fixes #15703 - Singularize media in api doc for orgs

(cherry picked from commit 5284a31d5a853ba40c8eee0b60d31b9ebcac157c)

History

#1 Updated by Dominic Cleal almost 5 years ago

Hammer should be sending the "medium_ids" (singular resource type) attribute to the API, same for all taxonomy associations.

#2 Updated by Ondřej Pražák almost 5 years ago

Update: the mass-assignment error seems to be gone now, but the update silently fails. If I try to add media in update/create, they are not assigned.

#3 Updated by Ondřej Pražák over 4 years ago

  • Project changed from Hammer CLI to Foreman

#4 Updated by The Foreman Bot over 4 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ondřej Pražák
  • Pull request https://github.com/theforeman/foreman/pull/3873 added

#5 Updated by Ondřej Pražák over 4 years ago

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

#6 Updated by Dominic Cleal over 4 years ago

  • Category set to API
  • Legacy Backlogs Release (now unused) set to 190

#7 Updated by Ondřej Pražák over 4 years ago

  • Bugzilla link set to 1234287

Also available in: Atom PDF