Bug #6714
closedError message needs to be rephrased when we create media without passing name
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1121945
Description of problem:
when we create install media without name, UI raised following error:
can't be blank and can't be blank or contain trailing white spaces.
I think this message needs to be rephrased.
Reason:
1. error message includes "can't be blank" twice. So one entry "can't be blank" is sufficient.
2. user can create media with trailing spaces so the "or contain trailing white spaces" is also not valid.
Version-Release number of selected component (if applicable):
sat6 GA snap1
How reproducible:
always
Steps to Reproduce:
1. create media without passing media name
2.
3.
Actual results:
UI raised following error:
can't be blank and can't be blank or contain trailing white spaces
Expected results:
I think message needs to be rephrased to just: can't be blank
Additional info:
Processing by MediaController#create as */*
Parameters: {"utf8"=>"✓", "search"=>"", "authenticity_token"=>"VX+UKFuIgqWyHwxAdhnLIrzFLAmDgGh5qENjFuLnsso=", "medium"=>{"name"=>"", "path"=>"http://mirror.fakeos.org/vUABdE/$major.$minor/os/$arch", "media_path"=>"", "config_path"=>"", "image_path"=>"", "os_family"=>"", "location_ids"=>[""], "organization_ids"=>[""]}}
Failed to save: Name can't be blank, Name can't be blank or contain trailing white spaces.