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: 12:26 AM

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
  • 15,574 posts
  • Local time: 11:26 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. 

FAQ - Includes: How to play with friends using the Geo-filter, I can't access the router control panel, Wifi keeps dropping out etc.

Knowledge Base - Main link to the Knowledge Base, for everything else please search here or on the forum. 

Current firmware version (1.03.6) - If you are on anything below this, follow the instructions carefully to upgrade.

 

Any other issues please make a new thread on the forum, thank you  :)

 

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

 


#3
Coolswing

Coolswing

    Junior Member

  • Members
  • PipPip
  • 2 posts
  • Local time: 12:26 AM

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
  • 15,574 posts
  • Local time: 11:26 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. 

FAQ - Includes: How to play with friends using the Geo-filter, I can't access the router control panel, Wifi keeps dropping out etc.

Knowledge Base - Main link to the Knowledge Base, for everything else please search here or on the forum. 

Current firmware version (1.03.6) - If you are on anything below this, follow the instructions carefully to upgrade.

 

Any other issues please make a new thread on the forum, thank you  :)

 

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

 






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