Jump to content

Welcome to Netduma Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

bug on DHCP lease settings [1.03.6h]

DHCP bug bug Dhcp 1.03.6.h

  • Please log in to reply
3 replies to this topic

#1
Coolswing

Coolswing

    Junior Member

  • Members
  • PipPip
  • 2 posts
  • Local time: 10:19 PM

Hi everyone,

I found a bug on the DHCP lease setting that invalid the process of setting registration.
I don't know if everybody got this error but on chome i couldn't not validate the form and i was getting the error:  "You have duplicate host numbers, please change".
I got this error because all my filed was empty (i've never configured it before) and i tried to update more than 1 change.

This issues seams to be cause of the javascript function named validate who check if the form contains duplicated values and interrupt the submit with this error if it does.
But the way the function get the Fields's values seems to be the wrong method:

 

 

var value = $(selector).attr("value");

 Here it try to get the value from the "value" attribut that's set when the form is generate. But when you didn't configure DHCP before the value is just empty and even if the field get fill the value attribute didn't change.

So if you try to update 2 field the too "value" attributes contain an empty string "" so the validate function return false end block the form's submit.

The correct way is to use the getter .val().


So if you want to configure DHCP for the first time just do your changes one by one.

OR open your browser html inspector, find the validate() function and copie it, replace the line 12:

var value = $(selector).attr("value");

by


var value = $(selector).val();

Past it in you javascript console and your done.

 



#2
Netduma Fraser

Netduma Fraser

    Tech & Customer Support

  • Administrators
  • 16,306 posts
  • Local time: 08:19 PM

Hey, welcome to the forum!

 

What did you do exactly? Try to set two devices to the same number?


Technical support:
 
Optimal Settings Guide - How to set up your Netduma R1 quickly with optimum settings. Includes: How to get your full speeds, opening your NAT & Geo-filter settings etc. 
Knowledge Base - All of our guides/suggestions on the Netduma router. Anything you want to know is likely answered here. 
Current firmware version (1.03.6i) - If you are on anything below this, follow the instructions carefully to upgrade.
 
Any other issues please make a new topic on the forum. Please do not create multiple topics/PMs/Social Media posts. Keep it to one topic on the forum, it will be answered. Thank you.

 

Twitter/Facebook/YouTube/Twitch/Instagram/Steam Group/Discord

 

Official Support Times: 10am - 6pm GMT

World Clock

#3
Coolswing

Coolswing

    Junior Member

  • Members
  • PipPip
  • 2 posts
  • Local time: 10:19 PM

No i just try to set more than 1 field,
like 
Field1 => 2
Filed2 => 3

and i got the error "You have duplicate host numbers, please change". So i check the javascript and found that the valide function is incorrect



#4
Netduma Fraser

Netduma Fraser

    Tech & Customer Support

  • Administrators
  • 16,306 posts
  • Local time: 08:19 PM

Ah interesting, have to do 1 at a time and apply. Good bug thanks, won't be present in DumaOS.


Technical support:
 
Optimal Settings Guide - How to set up your Netduma R1 quickly with optimum settings. Includes: How to get your full speeds, opening your NAT & Geo-filter settings etc. 
Knowledge Base - All of our guides/suggestions on the Netduma router. Anything you want to know is likely answered here. 
Current firmware version (1.03.6i) - If you are on anything below this, follow the instructions carefully to upgrade.
 
Any other issues please make a new topic on the forum. Please do not create multiple topics/PMs/Social Media posts. Keep it to one topic on the forum, it will be answered. Thank you.

 

Twitter/Facebook/YouTube/Twitch/Instagram/Steam Group/Discord

 

Official Support Times: 10am - 6pm GMT

World Clock





Also tagged with one or more of these keywords: DHCP, bug, bug Dhcp, 1.03.6.h

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users