Bug #3449


IE 8 does not respect disabled CIDR field when editing host alias, leading to filter ruleset syntax errors

Added by Jim Pingle almost 10 years ago. Updated almost 10 years ago.

Rules / NAT
Target version:
Start date:
Due date:
% Done:


Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
Affected Architecture:


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.

Actions #1

Updated by Renato Botelho almost 10 years ago

  • Status changed from New to Feedback

Move it to feedback since it should be enough for 2.1.1

Actions #2

Updated by Jim Pingle almost 10 years ago

  • Status changed from Feedback to Resolved

The input validation does not allow the problem case any longer. Looks good enough to me.


Also available in: Atom PDF