Bug 1318762

Summary: strip leading or trailing whitespaces on ip and user when adding a provider
Product: Red Hat CloudForms Management Engine Reporter: Josh Carter <jocarter>
Component: UI - OPSAssignee: Aparna Karve <akarve>
Status: CLOSED ERRATA QA Contact: Matouš Mojžíš <mmojzis>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5.0CC: akarve, cpelland, emarquez, hkataria, jhardy, mfeifer, mmojzis, mpovolny, obarenbo, simaishi, ssainkar
Target Milestone: GAKeywords: ZStream
Target Release: 5.6.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 5.6.0.8 Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms, user interface allowed a blank space to be accepted when adding a provider in the IP, FQDN, USER dialogs. This fix updates the detect-spaces directive which has resolved the issue.
Story Points: ---
Clone Of:
: 1332297 (view as bug list) Environment:
Last Closed: 2016-06-29 15:43:28 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:
Bug Depends On:    
Bug Blocks: 1332297    

Description Josh Carter 2016-03-17 17:58:26 UTC
Description of problem:

UI allows a space to be accepted when adding a provider in the IP,FQDN,USER dialogs. 

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 5 CFME Bot 2016-05-18 19:36:09 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/e7f71cea2b2821fb2c4917bb3a0e7fc3595fedee

commit e7f71cea2b2821fb2c4917bb3a0e7fc3595fedee
Author:     Aparna Karve <akarve>
AuthorDate: Mon May 2 13:35:40 2016 -0700
Commit:     Aparna Karve <akarve>
CommitDate: Wed May 18 06:43:17 2016 -0700

    Add a spec for detect-spaces directive
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1318762

 spec/javascripts/directives/detect_spaces_spec.js | 32 +++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 spec/javascripts/directives/detect_spaces_spec.js

Comment 6 Matouš Mojžíš 2016-05-26 18:02:55 UTC
Verified in 5.6.0.8.
When I write a space, then it tells me, that Spaces are prohibited.

But I think, that some providers may let creating their root users with spaces?

Comment 8 errata-xmlrpc 2016-06-29 15:43:28 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:1348