Project

General

Profile

Actions

Bug #12973

closed

ForbiddenAttributesError when trying to create a container without an image

Added by Ori Rabin over 8 years ago. Updated over 8 years ago.

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

Description

I tried to add a continer and clicked next before adding an image (I did add a tag) and got:
ActiveModel::ForbiddenAttributesError in Containers::StepsController#update.

partial stack trace:
activemodel (4.1.5) lib/active_model/forbidden_attributes_protection.rb:21:in `sanitize_for_mass_assignment'
protected_attributes (1.1.3) lib/active_model/mass_assignment_security.rb:354:in `sanitize_for_mass_assignment'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/attribute_assignment.rb:58:in `assign_attributes'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/core.rb:8:in `init_attributes'
activerecord (4.1.5) lib/active_record/core.rb:198:in `initialize'
activerecord (4.1.5) lib/active_record/inheritance.rb:30:in `new'
activerecord (4.1.5) lib/active_record/inheritance.rb:30:in `new'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/reflection.rb:16:in `build_association'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/associations.rb:7:in `build_record'
protected_attributes (1.1.3) lib/active_record/mass_assignment_security/associations.rb:136:in `build'
activerecord (4.1.5) lib/active_record/associations/builder/singular_association.rb:18:in `build_image'
/home/orabin/git/foreman/foreman-docker/app/controllers/containers/steps_controller.rb:38:in `build_state'

Actions #1

Updated by The Foreman Bot over 8 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Ori Rabin
  • Pull request https://github.com/theforeman/foreman-docker/pull/135 added
Actions #2

Updated by Ori Rabin over 8 years ago

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

Also available in: Atom PDF