Bug 829437
Summary: | Hitting enter with blank field for GPG name returns JSON content | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Corey Welton <cwelton> | ||||
Component: | WebUI | Assignee: | Ivan Necas <inecas> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Corey Welton <cwelton> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 6.0.1 | CC: | bkearney, cpelland, dmacpher, inecas, lijli, mmccune, omaciel, snansi | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: |
GPG key creation with an empty "name" field resulted in JSON text returned on the screen instead of a properly formatted error due to incorrect validation of file uploads. This fix corrects the validation and the error message correctly displays.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2012-10-24 14:22:07 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: | |||||||
Attachments: |
|
Description
Corey Welton
2012-06-06 18:36:35 UTC
commit 5ddcc146b787291780c45b0d60778e8226b5fc35 Author: Ivan Necas <inecas> Date: Fri Jun 29 14:10:41 2012 +0200 829437 - handle uploading GPG key when submitting with enter commit 8ecf419805b3363d0949e3a854ccce542c9184d1 Merge: 163c2af 9c71bc3 Author: Tom McKay <thomasmckay> Fails in bigger, better ways now :) Now, when hitting enter in the gpg key name field, a stack is returned - see forthcoming attachment. CloudForms System Engine Version: 1.1.12-7.el6cf Created attachment 613714 [details]
stack returned when performing this behavior
It's connect with 857727, I suggest to disable ignoring enter button entirely in the name field. Reason: from user point of view after entering the name he still needs either enter the key in the text box or select the file. And then he has to press the button according the way he inserts the key. In other words, there is little possibility that hitting enter in the name will be successful (gpg key is blank). @corey: Would this proposed solution work for you? We can try that out and see if it remedies the issue; I'll also be checking afterwards to see if I can identify any corner cases where this still might show up. It was different issue at the end (wrong handing of validation errors when uploading the file through iframe). Fixed in https://github.com/Katello/katello/pull/693, commit bdb774be54dbbfd84f17cf72ef2b24845c73fb77 QE Verified CloudForms System Engine Version: 1.1.12-9.el6cf *** Bug 859329 has been marked as a duplicate of this bug. *** closing, currentrelease since these seemingly got missed in the 1.0.1 errata getting rid of 6.0.0 version since that doesn't exist |