Devices can't add a device with a Static IP address outside of dyanmic/static range

Bug #1462079 reported by Andres Rodriguez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Blake Rouse

Bug Description

When trying to add a device with an IP address that falls outside the static or dynamic range, the "save device' was not clickable on some cases, and the device could not be added.

IP address was 192.168.10.9

When trying to add the device with 192.168.10.6 it worked just fine.

MAAS Dynamic range goes from: 10.10 to 10.100
and Static from 10.101 to 10.254.

In taipei lab. Add a device with any MAC address.

1. Input any MAC address
2. Select Static IP
3. Select Network
4. Input IP: 192.168.10.9
5. 'Add Device' is not clickable

It works with another IP address:

1. Input any MAC address
2. Select Static IP
3. Select Network
4. Input IP: 192.168.10.6
5. 'Add Device' is clickable.

Related branches

Changed in maas:
assignee: nobody → Blake Rouse (blake-rouse)
importance: Undecided → Critical
status: New → Confirmed
milestone: none → 1.8.0
description: updated
description: updated
Revision history for this message
Blake Rouse (blake-rouse) wrote :

This occurs because of JS parseInt using radix of 8.

parseInt('8', 8) = NaN

the ValidationService should have been using

parseInt('8', 10)

Changed in maas:
status: Confirmed → In Progress
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.