Project

General

Profile

Bug #10835

Verification on the interface group name length is not correct

Added by Théo Sarrazin 3 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
Normal
Category:
Interfaces
Target version:
Start date:
08/14/2020
Due date:
% Done:

100%

Estimated time:
Affected Version:
Affected Architecture:
All

Description

ifconfig take group name with less than 15 characters, but in the file interfaces_groups_edit.php, we can find the following line:

if (strlen($_POST['ifname']) > 16) {

which is incorrect, so if, in the interface, we put a name with 16 characters, pfsense would be OK, while ifconfig is call with a wrong name length and it will not take effect.

Associated revisions

Revision 2983214c (diff)
Added by Théo Sarrazin 3 months ago

Change maxlenght of interface group name. Fixes #10835

History

#1 Updated by Jim Pingle 3 months ago

  • Target version set to 2.5.0

#2 Updated by Théo Sarrazin 3 months ago

Change maxlenght of interface group name:
https://github.com/pfsense/pfsense/pull/4423

#3 Updated by Jim Pingle 3 months ago

  • Status changed from New to Pull Request Review

#4 Updated by Renato Botelho 2 months ago

  • Status changed from Pull Request Review to Feedback
  • Assignee changed from Théo Sarrazin to Renato Botelho
  • % Done changed from 0 to 100

PR has been merged. Thanks!

#5 Updated by Danilo Zrenjanin about 2 months ago

  • Status changed from Feedback to Resolved

Tested on :

2.5.0-DEVELOPMENT (amd64)
built on Wed Sep 09 19:46:45 EDT 2020
FreeBSD 12.2-PRERELEASE

It allows only 15 characters now.

Ticket resloved.

Also available in: Atom PDF