Bug #2913

Web interface: IP validator allows not valid addresses

Added by Giacomo Sanchietti almost 7 years ago. Updated over 6 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-httpd-admin
Target version:v6.5
Security class: Resolution:
Affected version:v6.5-final NEEDINFO:No

Description

The IP validator accpets some values which are not actually valid IP addresses.

Step to reproduce
  • Install nethserver-dnsmasq
  • Try to create a reservation with an IP address with "0" on the left side of an octet, like 192.168.5.002, 192.168.005.003
  • The validator doesn't fail

Expected behavior

Octets starting with zero should be rejected


Related issues

Copied to Nethgui - Bug #2960: IP validator allows invalid addresses CLOSED

Associated revisions

Revision 80103507
Added by Davide Principi over 6 years ago

Nethgui commit:92a93021184ae9c0e65e2285f992600ae289212b Refs #2913

Fixed IP validator

History

#1 Updated by Davide Principi over 6 years ago

  • Copied to Bug #2960: IP validator allows invalid addresses added

#2 Updated by Davide Principi over 6 years ago

  • Status changed from NEW to TRIAGED
  • Target version set to v6.5
  • % Done changed from 0 to 20

#3 Updated by Davide Principi over 6 years ago

  • Status changed from TRIAGED to MODIFIED
  • % Done changed from 20 to 60

#4 Updated by Davide Principi over 6 years ago

  • Status changed from MODIFIED to ON_QA
  • % Done changed from 60 to 70

In nethserver-testing:
nethserver-httpd-admin-1.3.3-1.7git7a4f0bd.ns6.noarch.rpm
nethserver-httpd-admin-1.3.4-1.2git5fb3c5c.ns6.noarch.rpm

#5 Updated by Giacomo Sanchietti over 6 years ago

  • Assignee set to Giacomo Sanchietti

#6 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from ON_QA to VERIFIED
  • Assignee deleted (Giacomo Sanchietti)
  • % Done changed from 70 to 90
The web interface doesn't allow to create IP address like:
  • 001.2.3.4
  • 1.002.3.4

VERIFIED

#7 Updated by Giacomo Sanchietti over 6 years ago

  • Status changed from VERIFIED to CLOSED
  • % Done changed from 90 to 100
Released in nethserver-updates:
  • nethserver-httpd-admin-1.3.5-1.ns6.noarch.rpm

Also available in: Atom PDF