Project

General

Profile

Actions

Bug #6864

closed

Error checking rejects IPv6 addresses with upper case A-F.

Added by Steve Wheeler over 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Web Interface
Target version:
Start date:
10/19/2016
Due date:
% Done:

100%

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

Description

Recent browser changes mean this is rejected before the form is submitted and the error tool tip shown is unhelpful.

Either allowing upper case characters and converting them to lower case to meet the standard or displaying an error that allow the user to make that change would solve this.

Actions #1

Updated by Phillip Davis over 7 years ago

Pull request: https://github.com/pfsense/pfsense/pull/3198
That makes the "Please match the requested format:" text more helpful.

It would also be nice to automagically convert to lowercase as the characters are typed or pasted into the field.

Actions #2

Updated by Luiz Souza over 7 years ago

While I think it is cool to convert the characters as you type, the GUI has to accept upper case letters as well.

Once the IPv6 address is sanitized, all the IPv6 address in pfSense must use/print only lower case letters.

Actions #3

Updated by Phillip Davis over 7 years ago

This one also automatically converts the input to lowercase as the user leaves the IP Address field, or presses a button somewhere else (like Save):
https://github.com/pfsense/pfsense/pull/3199

Actions #4

Updated by Jim Thompson over 7 years ago

  • Assignee set to Luiz Souza

Take a look at Phil's patch. If it needs rework kick back to either he or I.

Actions #5

Updated by Phillip Davis over 7 years ago

Note: The pull request generated discussion about whether users should have the option to record IPv6 addresses with their choice of upper or lower case A-F,a-f, and store it in the config as the user has entered it. Then the back-end code would convert to lower case on the fly when making use of the addresses to drive the system.

Regardless of that, the existing behaviour is requiring that lower case be entered. The pull request simply automates this process and gives some help text to give the user more clue about what to enter. So the PR does not change existing underlying behaviour.

If someone wants to discuss the overall policy of stored format of IPv6 addresses in the config, then fine. But the PR is not about that.

Actions #6

Updated by Phillip Davis over 7 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #7

Updated by Jim Pingle over 7 years ago

This appears to have broken the use of Aliases that have names using capital letters. See #6918

Actions #8

Updated by Jim Pingle over 7 years ago

  • Status changed from Feedback to New
Actions #9

Updated by Renato Botelho over 7 years ago

  • Assignee changed from Luiz Souza to Anonymous
Actions #10

Updated by Anonymous over 7 years ago

See #6918
A new function has been provided to force IPv6 to lower case on save. This is being added to GUI pages as required

Actions #11

Updated by Anonymous over 7 years ago

  • Status changed from New to Assigned

Force IPv6 to lowercase via addrtolower() has been added to:

firewall_aliases_edit.php
firewall_rules_edit.php

More to come

Actions #12

Updated by Phillip Davis about 7 years ago

interfaces.php also has addrtolower()

Actions #13

Updated by Anonymous about 7 years ago

  • Status changed from Assigned to Resolved
Actions #14

Updated by Jim Pingle about 7 years ago

  • Target version changed from 2.4.0 to 2.3.3
Actions

Also available in: Atom PDF