[Commotion-admin] [luci-commotion] Applying profile changes to plug interface causes error (#35)

dismantl notifications at github.com
Mon Oct 21 15:22:13 UTC 2013


To reproduce, first comment out this erroneous line (https://github.com/opentechinstitute/luci-commotion/issues/34#issuecomment-26725988) and restart uhttpd/clear cache.

Then try to apply a profile to the plug interface. Here is the error:

/usr/lib/lua/luci/dispatcher.lua:448: Failed to execute call dispatcher target for entry '/admin/commotion/meshprofile_submit'.
The called action terminated with an exception:
...sr/lib/lua/luci/controller/commotion/meshprofile.lua:295: bad argument #2 to 'delete' (string expected, got nil)
stack traceback:
	[C]: in function 'assert'
	/usr/lib/lua/luci/dispatcher.lua:448: in function 'dispatch'
	/usr/lib/lua/luci/dispatcher.lua:195: in function </usr/lib/lua/luci/dispatcher.lua:194>

In the code, it looks like the `flush_wireless_profile` function is called (line 68) for every interface profile change, regardless if it is a wireless interface or not.

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/luci-commotion/issues/35
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20131021/62ad1bdf/attachment.html>


More information about the Commotion-admin mailing list