Bug 1373866 - Subscriptions: Invalid username/password message masks other errors
Summary: Subscriptions: Invalid username/password message masks other errors
Keywords:
Status: NEW
Alias: None
Product: Red Hat Quickstart Cloud Installer
Classification: Red Hat
Component: WebUI
Version: 1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: John Matthews
QA Contact: Sudhir Mallamprabhakara
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-07 10:27 UTC by Antonin Pagac
Modified: 2016-09-23 18:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Target Upstream Version:


Attachments (Terms of Use)

Description Antonin Pagac 2016-09-07 10:27:46 UTC
Description of problem:
While logging-in to customer portal via WebUI in step Subscriptions/Content Provider, when using bad subscription credentials, I can see message:

'Your username or password is incorrect. Please try again.'

with corresponding error in production.log:

'exception when talking to a remote client: 401 Unauthorized RestClient::Unauthorized: 401 Unauthorized'

I can however see the same message in WebUI even if the error isn't 401, for example it will display when error in production.log is:

'SocketError: getaddrinfo: Temporary failure in name resolution'

thus effectively masking the real issue.

Version-Release number of selected component (if applicable):
QCI-1.0-RHEL-7-20160902.5
QCIOOO-8.0-RHEL-7-20160902.1

How reproducible:
Always

Steps to Reproduce:
1. While doing a deployment, get to the Subscription section
2. Disable DNS
3. Try to login with valid credentials

Actual results:
Invalid username/password message displayed

Expected results:
Some general error message displayed; in ideal case, the message would reflect the error in production.log

Additional info:

Comment 1 Antonin Pagac 2016-09-07 10:50:49 UTC
Happens also with:

'Errno::ECONNRESET: Connection reset by peer - SSL_connect'


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