Modify

Opened 7 years ago

Closed 7 years ago

#8958 closed defect (fixed)

Network -> Interfaces breaks after setting up native ipv6 configs

Reported by: domen@… Owned by: jow
Priority: response-needed Milestone: Backfire 10.03.1
Component: luci Version: Backfire 10.03.1 RC4
Keywords: Cc:

Description

Following traceback happens if I go to "Network -> Interfaces -> WAN or LAN" {{{
/usr/lib/lua/luci/util.lua:237: attempt to get length of local 'str' (a nil value)
stack traceback:

[C]: in function 'foreach'
/usr/lib/lua/luci/tools/webadmin.lua:129: in function 'network_get_zones'
/usr/lib/lua/luci/model/cbi/admin_network/ifaces.lua:70: in function 'func'
/usr/lib/lua/luci/cbi.lua:91: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:677: in function 'target'
/usr/lib/lua/luci/dispatcher.lua:741: in function 'target'
/usr/lib/lua/luci/dispatcher.lua:377: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:143: in function </usr/lib/lua/luci/dispatcher.lua:142>

}}}

Attachments (0)

Change History (8)

comment:1 Changed 7 years ago by jow

  • Owner set to jow
  • Status changed from new to accepted

Sounds to me like your firewall config has issues.

comment:2 Changed 7 years ago by jow

  • Priority changed from normal to response-needed

comment:3 Changed 7 years ago by ChadMiller

Same problem. Install IPv6 packages, somehow (?) get a firewall rule that has no "name". Interface config crashes until a firewall name is set.

comment:4 Changed 7 years ago by jow

What LuCI version is that?

comment:5 Changed 7 years ago by zerg32

Same problem
Here is an ugly fix for it.
change in /usr/lib/lua/luci/tools/webadmin.lua:129

        state:foreach("firewall", "zone",
                function (section)
                        local znet = section.network or section.name or ""
                        if luci.util.contains(luci.util.split(znet, " "), net) then
                                table.insert(zones, znet)
                        end
                end
        )



comment:6 Changed 7 years ago by jow

I have to ask again what version of LuCI this is. The offending function is nowhere used in current versions.

comment:7 Changed 7 years ago by zerg32

sorry, I missed the version
Backfire (10.03.1-rc4, r24045)

comment:8 Changed 7 years ago by jow

  • Resolution set to fixed
  • Status changed from accepted to closed

This should be fixed with RC5.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.