Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1327042 - Flash message displayed multiples times for invalid credentials
Flash message displayed multiples times for invalid credentials
Status: CLOSED ERRATA
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS (Show other bugs)
5.6.0
Unspecified Unspecified
medium Severity medium
: GA
: 5.6.0
Assigned To: Martin Hradil
Niyaz Akhtar Ansari
ui:error:flash_msg
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-04-14 03:19 EDT by Niyaz Akhtar Ansari
Modified: 2016-06-29 11:49 EDT (History)
6 users (show)

See Also:
Fixed In Version: 5.6.0.5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-06-29 11:49:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
nansari: automate_bug+


Attachments (Terms of Use)
error (55.14 KB, image/png)
2016-04-14 03:19 EDT, Niyaz Akhtar Ansari
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:1348 normal SHIPPED_LIVE CFME 5.6.0 bug fixes and enhancement update 2016-06-29 14:50:04 EDT

  None (edit)
Description Niyaz Akhtar Ansari 2016-04-14 03:19:43 EDT
Created attachment 1147057 [details]
error

Description of problem:


Version-Release number of selected component (if applicable):
5.6.0.1-beta2.20160413141124_e25ac0e


How reproducible:
100%

Steps to Reproduce:
1.Navigate to login page 
2.Enter wrong User name or wrong Password and Click on login button
3.Repeat step 2 for multiple times 

Actual results:
Multiple flash messages displayed for invalid login when tried multiple times. see attached screenshot.

Expected results:
Only one flash message should be displayed for multiple invalid login.

Additional info:
Comment 2 Harpreet Kataria 2016-04-14 09:32:00 EDT
Martin,

When login button is pressed we should remove/replace the previous flash message in app/assets/javascripts/miq_application.js add_Flash js function.

~Harpreet
Comment 4 CFME Bot 2016-04-29 18:55:49 EDT
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/1f0c710f5f9536ea9c7341efefad9130de7ee16c

commit 1f0c710f5f9536ea9c7341efefad9130de7ee16c
Author:     Martin Hradil <mhradil@redhat.com>
AuthorDate: Tue Apr 26 12:57:27 2016 +0000
Commit:     Martin Hradil <himdel@seznam.cz>
CommitDate: Wed Apr 27 20:01:07 2016 +0000

    JS add_flash - add optional id, ensure uniqueness when given
    
    authentication failed message now gets an id of auth_failed, and removes the previous one if a new one with the same id is added
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1327042

 app/assets/javascripts/miq_application.js | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
Comment 5 Niyaz Akhtar Ansari 2016-05-04 01:03:47 EDT
Only one flash message displayed for multiple invalid login.

Verified in 5.6.0.5-beta2.4.20160503153816_1fb554f
Comment 8 errata-xmlrpc 2016-06-29 11:49:18 EDT
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.