Bug #24493
closedCannot add host parameters to hosts: Name has already been taken
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1609764
Description of problem:
Cannot add any Host Parameters to the Hosts in UI
because it tries to add them twice, so it raise 'Name has already been taken' error
Version-Release number of selected component (if applicable):
6.4, snap 14
How reproducible:
always
Steps to Reproduce:
1. navigate to Hosts > All Hosts > select > Edit > Parameters
2. button Add Parameter
3. fill any values to Name and Value
4. button Submit
Actual results:
all entered Host Parameters are shown twice and there is an error message saying Name has already been taken
Expected results:
Host Parameter is added
Additional info:
it works in 6.3, it is a regression
Updated by Ivan Necas over 6 years ago
- Subject changed from Cannot add host parameters to hosts: Name has already been taken to Cannot add host parameters to hosts: Name has already been taken
This is a regression introduced by #23837, specifically https://github.com/theforeman/foreman-tasks/pull/349
The issue is the `assign_attributes` can have already some side-effects for sub-resources, and calling `super` causes double-creation of the resources.
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ivan Necas
- Pull request https://github.com/theforeman/foreman-tasks/pull/353 added
Updated by Ivan Necas over 6 years ago
- Status changed from Ready For Testing to Closed
- Target version set to foreman-tasks-0.13.4 (Foreman 1.18)
Updated by Ivan Necas over 6 years ago
- Fixed in Releases foreman-tasks-0.13.4 (Foreman 1.18), foreman-tasks-0.14.0 (Foreman 1.20) added
Updated by Ivan Necas about 6 years ago
- Related to Bug #23837: Content View is not updated on Content Host when change is made via Hosts / All Hosts <Edit option> added