Bug #15703

Cannot update organization using --media-ids flag

Added by Ondřej Pražák about 1 year ago. Updated 8 months ago.

Assigned To:Ondřej Pražák
Target version:-
Difficulty: Bugzilla link:1234287
Found in release: Pull request:https://github.com/theforeman/foreman/pull/3873
Story points-
Velocity based estimate-
Release1.13.1Release relationshipAuto


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
Added by Ondřej Pražák 11 months ago

Fixes #15703 - Singularize media in api doc for orgs


#1 Updated by Dominic Cleal about 1 year 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 12 months 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 11 months ago

  • Project changed from Hammer CLI to Foreman

#4 Updated by The Foreman Bot 11 months ago

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

#5 Updated by Ondřej Pražák 11 months ago

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

#6 Updated by Dominic Cleal 11 months ago

  • Category set to API
  • Release set to 1.13.1

#7 Updated by Ondřej Pražák 8 months ago

  • Bugzilla link set to 1234287

Also available in: Atom PDF