Bug 1650104 - No Flash message appear when clicked on "Upload Chosen File" without choosing Custom Image File
Summary: No Flash message appear when clicked on "Upload Chosen File" without choosing...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: UI - OPS
Version: 5.10.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.11.0
Assignee: Zita Nemeckova
QA Contact: John Dupuy
Red Hat CloudForms Documentation
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-15 11:16 UTC by Niyaz Akhtar Ansari
Modified: 2019-12-12 13:34 UTC (History)
8 users (show)

Fixed In Version: 5.11.0.10
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-12-12 13:34:23 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
flash (95.95 KB, image/png)
2018-11-15 11:16 UTC, Niyaz Akhtar Ansari
no flags Details
No file chosen continuously appearing (69.06 KB, image/png)
2019-06-10 14:59 UTC, John Dupuy
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:4199 0 None None None 2019-12-12 13:34:38 UTC

Description Niyaz Akhtar Ansari 2018-11-15 11:16:25 UTC
Created attachment 1506031 [details]
flash

Description of problem:


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


How reproducible:
100%

Steps to Reproduce:
1.Go to automation->Automate->Generic Objects
2.Go to Create Generic Objects Class
3.Click on "Upload Chosen File" without choosing Custom Image File

Actual results:
No Flash message appear when clicked on "Upload Chosen File" without choosing Custom Image File

Expected results:
Warning Flash message should appear

Additional info:

Comment 4 CFME Bot 2019-03-04 10:47:23 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/19a9641e3d2b68e8e1426d1ece37f1b7ad16f0c5
commit 19a9641e3d2b68e8e1426d1ece37f1b7ad16f0c5
Author:     Zita Nemeckova <znemecko>
AuthorDate: Fri Feb 22 03:54:55 2019 -0500
Commit:     Zita Nemeckova <znemecko>
CommitDate: Fri Feb 22 03:54:55 2019 -0500

    Add error when clicking upload image without selecting a file

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

 app/assets/javascripts/components/generic_object/custom-image.js | 4 +
 app/views/static/generic_object/custom-image.html.haml | 4 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

Comment 5 John Dupuy 2019-06-10 14:58:39 UTC
Verified that the "No file chosen." flash message does appear in CFME 5.11.0.7.20190605165356_fbab9f0. Steps of verification are the same as the steps of reproduction. However, I noticed that if you click the "Upload chosen File" multiple times, that the flash message will continually appear (see attachement). Is this behavior desired? 

I will leave this ON_QA until the needinfo is fulfilled.

Comment 6 John Dupuy 2019-06-10 14:59:16 UTC
Created attachment 1579069 [details]
No file chosen continuously appearing

Comment 7 Zita Nemeckova 2019-06-11 08:28:23 UTC
Displaying same message multiple times isn't good. Moving to ON_DEV.

Comment 9 CFME Bot 2019-06-12 10:56:33 UTC
New commit detected on ManageIQ/manageiq-ui-classic/master:

https://github.com/ManageIQ/manageiq-ui-classic/commit/f064c26f11d79f232f64d7973dfc5e0d575303f0
commit f064c26f11d79f232f64d7973dfc5e0d575303f0
Author:     Zita Nemeckova <znemecko>
AuthorDate: Tue Jun 11 13:08:01 2019 -0400
Commit:     Zita Nemeckova <znemecko>
CommitDate: Tue Jun 11 13:08:01 2019 -0400

    Don't repeat error message

    Fix https://bugzilla.redhat.com/show_bug.cgi?id=1650104

 app/assets/javascripts/components/generic_object/custom-image.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comment 10 John Dupuy 2019-06-24 19:39:58 UTC
Verified in CFME 5.11.0.10

Steps of verification:
1.Go to automation->Automate->Generic Objects
2.Go to Create Generic Objects Class
3.Click on "Upload Chosen File" without choosing Custom Image File
4.Verified that he flash message appears and only appears once

Comment 12 errata-xmlrpc 2019-12-12 13:34:23 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-2019:4199


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