Bug 1590398

Summary: Cannot login with an uppercase letter in username
Product: Red Hat CloudForms Management Engine Reporter: Antonin Pagac <apagac>
Component: ApplianceAssignee: Joe Vlcek <jvlcek>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: high Docs Contact:
Priority: medium    
Version: 5.8.0CC: abellott, apagac, cpelland, hkataria, lavenel, mpovolny, mshriver, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1638501 (view as bug list) Environment:
Last Closed: 2019-02-11 14:02:13 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:
Bug Depends On:    
Bug Blocks: 1638501    
Attachments:
Description Flags
Error shown with uppercase username none

Description Antonin Pagac 2018-06-12 14:47:09 UTC
Created attachment 1450528 [details]
Error shown with uppercase username

Description of problem:
User cannot login with uppercase letter in username, see screenshot.

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

How reproducible:
Always

Steps to Reproduce:
1. Create new user with uppercase letter in username ("User")
2. Try to login with this user
3.

Actual results:
User cannot login; "Incorrect username or password" shown; Server Error dialog shown

Expected results:
User able to login with uppercase letter in username

Additional info:
Occurrs also in 5.8.4.4.

Authentication mode: Database, no external auth

Comment 3 Joe Vlcek 2018-06-13 20:19:48 UTC
Antonin,

Do you have an appliance where you have reproduced this issue that I could
log into?

Can you please post me the credentials for it in a private comment to this BZ?

Thank you. JoeV

Comment 6 CFME Bot 2018-06-21 15:45:51 UTC
New commit detected on ManageIQ/manageiq-api/master:

https://github.com/ManageIQ/manageiq-api/commit/2ef3d85d4714082a8e2e0d320c6b04d19fec30e5
commit 2ef3d85d4714082a8e2e0d320c6b04d19fec30e5
Author:     Joe VLcek <jvlcek>
AuthorDate: Thu Jun 14 14:05:49 2018 -0400
Commit:     Joe VLcek <jvlcek>
CommitDate: Thu Jun 14 14:05:49 2018 -0400

    Ignore case of the userid when validating it.

    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1590398

 lib/services/api/user_token_service.rb | 2 +-
 spec/lib/services/api/user_token_service_spec.rb | 20 +-
 2 files changed, 14 insertions(+), 8 deletions(-)

Comment 7 Antonin Pagac 2018-07-02 08:28:33 UTC
Verified in 5.10.0.2.

Comment 8 Joe Vlcek 2018-07-18 17:09:03 UTC
*** Bug 1601007 has been marked as a duplicate of this bug. ***

Comment 9 Joe Vlcek 2018-10-11 18:24:32 UTC
*** Bug 1632638 has been marked as a duplicate of this bug. ***