Project

General

Profile

Actions

Bug #2426

closed

Input validaton on interface gateway creation box needs to reject duplicate names

Added by Max Frames over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Routing
Target version:
-
Start date:
05/11/2012
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.0.1
Affected Architecture:
i386

Description

If two gateways are created with the same name/label, and one of them is set as default for an interface, it's not possible to switch to the other one via the GUI; it always reverts to the first one.
In a such situation, only one of the gateways is displayed in the System-Routing settings page.
Deleting it results in the other one (with the same name) appearing; at this point that can be deleted as well.
Apparently the problem lies in both gateways having the same label. The creation of gateways with already existing labels should be prevented.
Steps to reproduce:
- enter the interface settings (eg. WAN)
- create a gateway with the default label (WANGW) and set it as default, save and apply
- create a different gateway with the same label, from within the same WAN interface settings page, and make it as default, save and apply
- the default gateway is reverted after applying the new settings.

Actions #1

Updated by Jim Pingle over 12 years ago

  • Subject changed from Unable to switch to a different default gateway if two gateways have the same name to Input validaton on interface gateway creation box needs to reject duplicate names

[Edit: the ticket system seems to have chopped off all my text except the last line...]

The real issue is making a duplicate gateway name. The others things are all symptoms of that.

As the old joke goes:

Doctor, it hurts when I go like this!
Then don't do that!

Actions #2

Updated by Seth Mos over 12 years ago

  • Assignee set to Darren Embry

Darren, do you think you can prevent this duplicate name issue in the Ajax call?

Actions #3

Updated by Darren Embry over 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

fixed in 283d78c6

Actions

Also available in: Atom PDF