Bug 1186502 - uninitialized constant EmsAmazon::AWS error validating login
Summary: uninitialized constant EmsAmazon::AWS error validating login
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Insight
Version: 5.3.0
Hardware: All
OS: All
high
high
Target Milestone: GA
: 5.4.0
Assignee: Greg Blomquist
QA Contact: Pete Savage
URL:
Whiteboard:
Depends On:
Blocks: 1204271
TreeView+ depends on / blocked
 
Reported: 2015-01-27 19:41 UTC by Josh Carter
Modified: 2019-07-11 08:34 UTC (History)
7 users (show)

Fixed In Version: 5.4.0.0.11
Doc Type: Bug Fix
Doc Text:
In the previous version of CloudForms Management Engine, when validating login through proxy, uninitialized constant EmsAmazon::AWS error was reported. This was because usernames or passwords used in the http_proxy setting use non-url-friendly characters. With this release, by escaping the username and password the bug is now fixed.
Clone Of:
: 1204271 (view as bug list)
Environment:
Last Closed: 2015-06-16 12:48:38 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:1100 0 normal SHIPPED_LIVE CFME 5.4.0 bug fixes, and enhancement update 2015-06-16 16:28:42 UTC

Comment 9 Greg Blomquist 2015-02-10 00:39:16 UTC
https://github.com/ManageIQ/manageiq/pull/1627

Comment 10 CFME Bot 2015-02-10 19:10:47 UTC
New commit detected on manageiq/master:
https://github.com/ManageIQ/manageiq/commit/0101f66be19cdcd38ce9165780a76d1b34bc2e95

commit 0101f66be19cdcd38ce9165780a76d1b34bc2e95
Author:     Greg Blomquist <gblomqui>
AuthorDate: Mon Feb 9 18:44:11 2015 -0500
Commit:     Greg Blomquist <gblomqui>
CommitDate: Tue Feb 10 11:54:57 2015 -0500

    CGI Escape user/pw in proxy settings
    
    Usernames or passwords used in the http_proxy setting that use non-url-friendly
    characters cause the following error:
    
      URI::InvalidComponentError: bad component(expected user component)
    
    By escaping the username and password, this error is avoided.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1186502

 vmdb/lib/vmdb/util.rb           | 2 ++
 vmdb/spec/lib/vmdb/util_spec.rb | 9 +++++++++
 2 files changed, 11 insertions(+)

Comment 12 Pete Savage 2015-04-17 08:47:01 UTC
Created a squid proxy server with basic ncsa authentication and used the username/password from the spec file.

username: user1
password: secret#

Connection to amazon was successful as was refresh of power states

Verified in 5.4.0.0.19

Comment 14 errata-xmlrpc 2015-06-16 12:48:38 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://rhn.redhat.com/errata/RHBA-2015-1100.html


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