Project

General

Profile

Actions

Bug #2489

closed

BMC password doesn't save

Added by Joseph Magen almost 11 years ago. Updated almost 11 years ago.

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

Related issues 1 (0 open1 closed)

Related to Foreman - Bug #2713: do not update nics table on every host update as a workaround to bug #2489ClosedJoseph Magen06/26/2013Actions
Actions #1

Updated by Daniel Lobato Garcia almost 11 years ago

Is this going to be fixed before 1.2?

Actions #2

Updated by Joseph Magen almost 11 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.2.0
Actions #3

Updated by Joseph Magen almost 11 years ago

I found the bug, but I don't have a workaround yet. It appears to be a Rails bug.
If there is accepts_nested_attributes_for and a serialized field on the child object (attrs in Nic::Base), then the child object(attrs) is not updated IF the only fields that are changed are the elements of the serialized hash attrs (:username, :password, :provider). If another field on the interfaces form changes (i.e. :mac) in addition to :password, then everything saves fine. If ONLY :password is changed for the interface, then it appears rails does NOT recognize that attrs is DIRTY when @host. update_attributes and therefore NOTHING for interface is updated.

Actions #4

Updated by Joseph Magen almost 11 years ago

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

Also available in: Atom PDF