Bug #6944
closedvalidation error should be raised on creating a discovered repo with blank product name.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1106434
Description of problem:
I was trying repo-discovery in an org where no product was created.
Repo was successfully discovered from given url but when I clicked on create button without passing new product name, UI didn't throw any validation error.
Production.log raised an exception with error:
Processing by Katello::Api::V2::ProductsController#create as JSON
Parameters: {"organization_id"=>"5", "api_version"=>"v2", "product"=>{"organization_id"=>"5"}}
Validation failed: Name cannot be blank, Label can't be blank (ActiveRecord::RecordInvalid)
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/validations.rb:56:in `save!'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
Version-Release number of selected component (if applicable):
sat6 beta snap8 compose2 (Satellite-6.0.3-RHEL-6-20140605)
How reproducible:
always
Steps to Reproduce:
1.
2.
3.
Actual results:
No error on UI.
Expected results:
The Error message logged in production.log should be raised on UI too.
Validation failed: Name or Label cannot be blank.
Additional info:
Updated by The Foreman Bot over 10 years ago
- Status changed from New to Ready For Testing
- Target version set to 54
- Pull request https://github.com/Katello/katello/pull/4531 added
- Pull request deleted (
)
Updated by Partha Aji over 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello|37048f874db1db590fb07f3490bbee95a69a4827.
Updated by Eric Helms over 10 years ago
- Translation missing: en.field_release set to 13