Bug 1318762 - strip leading or trailing whitespaces on ip and user when adding a provider
Summary: strip leading or trailing whitespaces on ip and user when adding a provider
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.5.0
Hardware: All
OS: All
medium
medium
Target Milestone: GA
: 5.6.0
Assignee: Aparna Karve
QA Contact: Matouš Mojžíš
URL:
Whiteboard:
Depends On:
Blocks: 1332297
TreeView+ depends on / blocked
 
Reported: 2016-03-17 17:58 UTC by Josh Carter
Modified: 2019-11-14 07:37 UTC (History)
11 users (show)

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.
Clone Of:
: 1332297 (view as bug list)
Environment:
Last Closed: 2016-06-29 15:43:28 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 0 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 18:50:04 UTC

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


Note You need to log in before you can comment on or make changes to this bug.