Bug 1246119

Summary: Wrong error message for too long name when we try to create location or organization
Product: Red Hat Satellite Reporter: Oleksandr Shtaier <oshtaier>
Component: ProvisioningAssignee: Shlomi Zadok <szadok>
Status: CLOSED ERRATA QA Contact: sthirugn <sthirugn>
Severity: low Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: bbuckingham, bkearney, cwelton, sthirugn
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: All   
OS: Unspecified   
URL: http://projects.theforeman.org/issues/13378
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 08:54:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Screenshot with issue none

Description Oleksandr Shtaier 2015-07-23 13:29:46 UTC
Description of problem:
Probably we have defect in validation system for location and organization entities

Version-Release number of selected component (if applicable):
Beta

How reproducible:
Always


Steps to Reproduce:
1. Go to Organization or Location list
2. Push 'New Organization' or 'New Location' button
3. Input too long name (more than 256 symbols) for name field
4. Push 'Submit' button

Actual results:
'is too long (maximum is 246 characters) and is too long (maximum is 255 characters)' message is displayed

Expected results:
'is too long (maximum is 255 characters)' message is displayed

Additional info:

Comment 1 Oleksandr Shtaier 2015-07-23 13:31:46 UTC
Created attachment 1055386 [details]
Screenshot with issue

Comment 2 RHEL Program Management 2015-07-23 13:37:49 UTC
Since this issue was entered in Red Hat Bugzilla, the release flag has been
set to ? to ensure that it is properly evaluated for this release.

Comment 4 Brad Buckingham 2016-01-26 13:30:02 UTC
Created redmine issue http://projects.theforeman.org/issues/13378 from this bug

Comment 5 Bryan Kearney 2016-01-26 15:10:31 UTC
Upstream bug component is Provisioning

Comment 6 Bryan Kearney 2016-02-07 11:09:46 UTC
Upstream bug assigned to szadok

Comment 7 Bryan Kearney 2016-02-09 09:09:56 UTC
Moving to POST since upstream bug http://projects.theforeman.org/issues/13378 has been closed
-------------
Shlomi Zadok
Applied in changeset commit:b874d64ff64d23f0051c343b826669746b166211.

Comment 10 sthirugn@redhat.com 2016-04-07 20:48:42 UTC
Verified in satellite-6.2.0-6.2.beta.el7sat.noarch
Now the error message is shown as 'is too long (maximum is 255 characters)'

Comment 12 errata-xmlrpc 2016-07-27 08:54:06 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.

https://access.redhat.com/errata/RHBA-2016:1500