Created attachment 518916 [details]
krbmaxpwdlife used for "max life"
Description of problem:
The error msg is not consistent for similar type of error. Please check screen shot for details.
In short: This error appears under "Policy"->"Password Policy"
When user edits "Max lifetime (days):",
(1) if user enter non-integer such as "abc" and click "Update", the error dialog says "invalid 'krbmaxpwdlife': must be an integer"
(2) if user enter "-1" , and click "Update", the error dialog says "invalid 'maxlife': must be at least 0"
We should not use different label (krbmaxpwdlife and maxlife) refer to same text field.
The same type of error found for all fields under "Password policy"
In addition to "Password policy", Kerberos ticket policy has same type of error
Label "maxrenew" and "krbmaxrenewableage" used for same field "Max renew"
There might be more such type of error in other areas.
Version-Release number of selected component (if applicable):
[i386.a yi@dhcp-118 ~/Desktop] rpm -qa | grep ipa-server
Steps to Reproduce:
1. go to ipa web ui
2. go to "Policy" -> Password Policies (tab) click on "global policy"
3. make change to any field , use example data listed above.
Additional info: please check screen-shot
Created attachment 518917 [details]
"max life" label used for same field
I think this is a duplicate bug of ...
this is a WebUI bug report.
bug 718015 is command line bug report.
(In reply to comment #4)
> this is a WebUI bug report.
> bug 718015 is command line bug report.
The WebUI gets its errors from the same place as the command-line.
(In reply to comment #6)
> (In reply to comment #4)
> > this is a WebUI bug report.
> > bug 718015 is command line bug report.
> The WebUI gets its errors from the same place as the command-line.
Hence, a duplicate of bug 718015 ...
Marking as fixed upstream:
I will leave it up to Rob if he wants to close this as duplicate.
Verified using ipa-server-2.1.3-6.el6.x86_64
If "abc" is entered, a red error is indicated below that says - Must be an integer
If update is hit in spite of this error - get message - Validation error - Input form contains invalid or missing values.
With -1, the error in red says - Minimum value is 1, and hitting Update throws same error as above.
And same behaviour for Password policy and Kerberos Ticket policy. No specific reference to the field...so no inconsistency in error message in UI
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Cause: Different error types can cause different error messages in the Web UI.
Consequence: The error and attribute name within the error may not match depending on the input, causing confusion.
Fix: The Web UI has been enhanced to perform some input validation before submitting to the server.
Result: More consistent error messages.
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.