Previously, when trying to save a virtual machine editing window in the User Portal with validation errors, users cannot see the error message and would try to save it with a failed attempt. The error message was only available if the user clicked on 'Show Advanced Options'. With this update, users can now see the advanced options and the error message when attempting to save with validation errors.
Description of problem:
Dialog is not highlighted if VM cannot be created before clicking to "Show Advanced Options". See steps to reproduce.
Version-Release number of selected component (if applicable):
3.3.1-0.48.el6ev
How reproducible:
100 %
Steps to Reproduce:
1. Log-in into user portal with an user not allowed to create VM from a template
2. Open "new VM" dialog
3. Select VM template
4. Fill-in VM name
5. Click to Ok buton
Actual results:
VM is not created, no error message is displayed, no part of dialog is highlighted. See screenshot simple.png. The error is hidden under "Show Advanced Options" button. See screenshot advanced-options.png.
Expected results:
A problematic part of the dialog is highlighted. View is switched to Advanced Options when necessary.
@Omer - well, it is not that simple - where shell I jump if there where errors on more places? Especially if some are visible in basic context and some in advanced only? Also, the user could be a bit confused if after clicking ok he would end up in a totally different part of the same dialog.
A simpler solution would be to do this:
- you have the basic options shown only and have a validation error
- click ok
- if all the errors are only on fields which are visible in basic mode only, than do nothing
- if at least one error is visible in advanced mode, than show the advanced options (so the validation error place will be visible)
Would this be acceptable?
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://rhn.redhat.com/errata/RHSA-2015-0158.html