Actions
Bug #10236
closedWrong error message when one attempts to create second primary/provision interface via API
Difficulty:
Triaged:
Yes
Bugzilla link:
Pull request:
Description
Attempt to create second primary or provision interface via API fails correctly but returns wrong messages:
Primary host already has provision interface
Provision host already has provision interface
422 Unprocessable Entity { "error" => { "id" => 15, "errors" => { "interfaces.primary" => [ [0] "host already has primary interface" ], "interfaces.name" => [ [0] "has already been taken" ], "interfaces.provision" => [ [0] "host already has provision interface" ], "interfaces.mac" => [ [0] "can't be blank" ] }, "full_messages" => [ [0] "Primary host already has primary interface", [1] "Name has already been taken", [2] "Provision host already has provision interface", [3] "Mac can't be blank" ] } }
As the returned hash demonstrates, it is probably caused by wrong Rails' synthesis into full messages.
Updated by The Foreman Bot over 3 years ago
- Status changed from New to Ready For Testing
- Assignee set to yifat makias
- Pull request https://github.com/theforeman/foreman/pull/8592 added
Updated by yifat makias over 3 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman|416a52e83860fdf51869385754b66a67121d2d43.
Actions