Project

General

Profile

Actions

Bug #3827

closed

Missing maxlength parameter in firewall_aliases_edit.php

Added by Julien Le Goff over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
08/25/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1.x
Affected Architecture:

Description

Seen on 2.1.4, when creating an alias with a name longer than 31 chars, the following notice appears :

[ There were error(s) loading the rules: /tmp/rules.debug:210: table name too long, max 31 chars - The line in question reads [210]: table { x.x.x.x } ]

The "size" parameter of the "name" field is set to 40 in the form, but the "maxlength" is missing (should be set to 31 if that's the real cause firing the notice).

Actions #1

Updated by Renato Botelho over 9 years ago

Could you share the name you tried to add? I couldn't reproduce it.

Actions #2

Updated by Julien Le Goff over 9 years ago

Sorry I didn't have the full info, the aliases were actually created via an XML import and are named like this : clients_datacenter_server1web_lan

Maybe the restore function could check the name length then and prevent the creation of aliases too long ?

Actions #3

Updated by Renato Botelho over 9 years ago

  • Status changed from New to Rejected

Restore function only copy config.xml file to the correct place and reboot the system. Your xml is broken, maybe manually edited. Then it's not a bug in pfSense.

Actions

Also available in: Atom PDF