Bug #3449
closedIE 8 does not respect disabled CIDR field when editing host alias, leading to filter ruleset syntax errors
0%
Description
IE8 on XP (pause for laughter) does not respect the JavaScript that disables the CIDR field when editing a host alias. As a consequence, if you edit a host alias to add an IP the CIDR field is active and set to 128, and the JavaScript also does not automatically reset that to 32 even on a Network type alias. The /128 gets saved in the alias and then leads to filter reload errors because it's not a valid mask for an IPv4 address.
Even if we do not fix the front-end JS we should be ignoring the CIDR field entirely for a host type alias. The page could use some sanity checking to make sure the user can't save the alias with a bad mask. Even if the browser is braindead we shouldn't allow the invalid input.
How to repeat using IE 8:
Create a host alias, add one IP, save.
Edit the host alias, click + to add a new row
Current versions of IE and other browsers properly handle/respect the JavaScript and have no issues, but in the interest of preventing foot-shooting, the validation and/or backend issue should be addresses.
Updated by Renato Botelho almost 11 years ago
- Status changed from New to Feedback
Move it to feedback since it should be enough for 2.1.1
Updated by Jim Pingle almost 11 years ago
- Status changed from Feedback to Resolved
The input validation does not allow the problem case any longer. Looks good enough to me.