Bug 1121945

Summary: Error message needs to be rephrased when we create media without passing name
Product: Red Hat Satellite 6 Reporter: Sachin Ghai <sghai>
Component: WebUIAssignee: Tomer Brisker <tbrisker>
WebUI sub component: Foreman QA Contact: Sachin Ghai <sghai>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: unspecified CC: cwelton, dcleal, tbrisker
Version: 6.0.4Keywords: Triaged
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/6714
Whiteboard: Verified in Upstream
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 08:42:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
error thrown by UI
error is rephrased none

Description Sachin Ghai 2014-07-22 08:22:18 UTC
Created attachment 919827 [details]
error thrown by UI

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. 

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:

Steps to Reproduce:
1. create media without passing media name

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.

Comment 2 Dominic Cleal 2014-07-22 08:28:54 UTC
Created redmine issue http://projects.theforeman.org/issues/6714 from this bug

Comment 3 Bryan Kearney 2015-01-27 11:02:41 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/6714 has been closed

Comment 4 Sachin Ghai 2015-09-01 12:56:16 UTC
verified in upstream


Now on creating a media without name, UI throws proper error: can't be blank.

Comment 5 Sachin Ghai 2015-09-01 12:57:53 UTC
Created attachment 1069002 [details]
error is rephrased

Comment 8 errata-xmlrpc 2016-07-27 08:42:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.