[luci] [LuCI] #123: "/usr/sbin/luci-splash list" exception on whitelist entry

LuciTrac trac at luci.subsignal.org
Sat Apr 10 07:28:04 CEST 2010


#123: "/usr/sbin/luci-splash list" exception on whitelist entry
-------------------------------+--------------------------------------------
 Reporter:  reporter           |       Owner:             
     Type:  defect             |      Status:  new        
 Priority:  major              |   Milestone:  LuCI 0.9.0 
Component:  LuCI Applications  |    Keywords:  luci-splash
-------------------------------+--------------------------------------------
 Hi!

 I have an entry in the luci-splash whitelist (done via web interface).

 root at Abraxas1:/etc# /usr/sbin/luci-splash list
 MAC                IP               State      Dur.  Intf.       Traffic
 down/up
 /usr/bin/lua: /usr/sbin/luci-splash:430: attempt to call method 'lower' (a
 nil value)
 stack traceback:
     /usr/sbin/luci-splash:430: in function 'list'
     /usr/sbin/luci-splash:128: in function 'main'
     /usr/sbin/luci-splash:441: in main chunk
     [C]: ?

 Looks like

 430:            local arp = arpcache[mac]:lower()

 the :lower() needs to be removed as  arpcache[mac] returns an array.
 I'm not a Lua-coder, though, so bear with me. After the change, I see:

 root at Abraxas1:/etc# /usr/sbin/luci-splash list
 MAC                IP               State      Dur.  Intf.       Traffic
 down/up
 00:1e:c2:bd:d3:e5  172.16.99.16     whitelist    -   wl0              - -

 Greetings,
    Dirk

-- 
Ticket URL: <http://luci.subsignal.org/trac/ticket/123>
LuCI <http://luci.subsignal.org/trac>
LuCI - Lua Configuration Interface


More information about the luci mailing list