[2.2b3, UI] Cannot add subnet (WebUI) when no extra spaces defined

Bug #1669833 reported by Andres Rodriguez
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Andres Rodriguez

Bug Description

I cannot add a subnet over the WebUI when I only have the 'undefined' spaces.

To reproduce:
1. Fresh install maas
2. Add subnet - nothing happens.

To be able to add:
1. Add a space
2. Add subnet - it works.

That said, there are no logs whatsoever. Only a JS console error

TypeError: updatedObj is undefined[Learn More] maas-angular.js:6511:1
 MAASFormController.prototype.saveForm/< http://192.168.122.2:5240/MAAS/combo/maas-angular.js:6511:1
 forEach http://192.168.122.2:5240/MAAS/combo/angular.js:2:2705
 MAASFormController.prototype.saveForm http://192.168.122.2:5240/MAAS/combo/maas-angular.js:6507:13
 .link/< http://192.168.122.2:5240/MAAS/combo/maas-angular.js:7187:21
 jQuery.event.dispatch http://192.168.122.2:5240/MAAS/combo/jquery.js:3:31915
 jQuery.event.add/elemData.handle http://192.168.122.2:5240/MAAS/combo/jquery.js:3:26509

Related branches

Changed in maas:
importance: Undecided → High
milestone: none → 2.2.0
status: New → Triaged
Revision history for this message
Ante Karamatić (ivoks) wrote :

It seems that 'Add Subnet' button doesn't have an action assigned.

Revision history for this message
Ante Karamatić (ivoks) wrote :

Same problem exists with 'Save static route' button.

Changed in maas:
assignee: nobody → Richard McCartney (ricgard)
Revision history for this message
Richard McCartney (ricgard) wrote :

Believe this was getting affected with the WindowWidth directive and has been resolved with fixes on branch bug-1668759.

Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: [2.2b3] Cannot add subnet via the WebUI

re-opening this bug as just re-tested this in a fresh install of 2.2b3, and still can't add a subnet.

Changed in maas:
status: Fix Released → New
summary: - [2.2b2] Cannot add subnet via the WebUI
+ [2.2b3] Cannot add subnet via the WebUI
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

It's not really a great idea to re-use bugs, even if the symptom is the same. In this case there are errors on the Javascript console:

Uncaught TypeError: Cannot read property 'name' of undefined
    at http://192.168.100.218/MAAS/combo/maas-angular.js?v=2.2.0(beta3+bzr5815):6511:31
    at Object.forEach (http://192.168.100.218/MAAS/combo/angular.js?v=2.2.0(beta3+bzr5815):2:2714)
    at Constructor.MAASFormController.saveForm (http://192.168.100.218/MAAS/combo/maas-angular.js?v=2.2.0(beta3+bzr5815):6507:21)
    at HTMLButtonElement.<anonymous> (http://192.168.100.218/MAAS/combo/maas-angular.js?v=2.2.0(beta3+bzr5815):7187:32)
    at HTMLButtonElement.dispatch (http://192.168.100.218/MAAS/combo/jquery.js?v=2.2.0(beta3+bzr5815):3:31988)
    at HTMLButtonElement.elemData.handle (http://192.168.100.218/MAAS/combo/jquery.js?v=2.2.0(beta3+bzr5815):3:26531)

Revision history for this message
Andres Rodriguez (andreserl) wrote : Re: [Bug 1669833] Re: [2.2b3] Cannot add subnet via the WebUI

This bug was never fixed in the first place, so this needs to be re-opened.

On Fri, Mar 17, 2017 at 12:06 PM, Brendan Donegan <
<email address hidden>> wrote:

> It's not really a great idea to re-use bugs, even if the symptom is the
> same. In this case there are errors on the Javascript console:
>
> Uncaught TypeError: Cannot read property 'name' of undefined
> at http://192.168.100.218/MAAS/combo/maas-angular.js?v=2.2.0(
> beta3+bzr5815):6511:31
> at Object.forEach (http://192.168.100.218/MAAS/
> combo/angular.js?v=2.2.0(beta3+bzr5815):2:2714)
> at Constructor.MAASFormController.saveForm (
> http://192.168.100.218/MAAS/combo/maas-angular.js?v=2.2.0(
> beta3+bzr5815):6507:21)
> at HTMLButtonElement.<anonymous> (http://192.168.100.218/MAAS/
> combo/maas-angular.js?v=2.2.0(beta3+bzr5815):7187:32)
> at HTMLButtonElement.dispatch (http://192.168.100.218/MAAS/
> combo/jquery.js?v=2.2.0(beta3+bzr5815):3:31988)
> at HTMLButtonElement.elemData.handle (http://192.168.100.218/MAAS/
> combo/jquery.js?v=2.2.0(beta3+bzr5815):3:26531)
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1669833
>
> Title:
> [2.2b3] Cannot add subnet via the WebUI
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/maas/+bug/1669833/+subscriptions
>

--
Andres Rodriguez (RoAkSoAx)
Ubuntu Server Developer
MSc. Telecom & Networking
Systems Engineer

Revision history for this message
Richard McCartney (ricgard) wrote : Re: [2.2b3] Cannot add subnet via the WebUI

I've just updated trunk and also my local MAAS in the office and I am unable to replicate this at all.

CAn you tell me a bit more about your setup; Browser, Browser OS, OS, screen size e.t.c

summary: - [2.2b3] Cannot add subnet via the WebUI
+ [2.2b3, UI] Cannot add subnet (WebUI) when no extra spaces defined
description: updated
description: updated
Changed in maas:
assignee: Richard McCartney (ricgard) → Andres Rodriguez (andreserl)
status: New → 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.