Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luci-mod-freifunk: calling via "Freifunk" button on page-bottom raises a lua-error #33

Open
SvenRoederer opened this issue Jun 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@SvenRoederer
Copy link
Contributor

SvenRoederer commented Jun 30, 2020

With recent LuCI (master branch; somewhere before openwrt/luci@09a3b47) Luci throws an error when clicking on the "Freifunk" button. The button on the page-bottom, beside the "Administration" button.

/usr/lib/lua/luci/dispatcher.lua:1190: attempt to index local 'f' (a nil value)
stack traceback:
/usr/lib/lua/luci/dispatcher.lua:1190: in function 'createtree_json'
/usr/lib/lua/luci/dispatcher.lua:703: in function 'menu_json'
/usr/lib/lua/luci/dispatcher.lua:796: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:995: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

Seen with 05760f0. Calling http:///cgi-bin/luci/ works fine, calling http:///cgi-bin/luci/freifunk fails.

@SvenRoederer
Copy link
Contributor Author

did a bit digging today ... found that removing the code which drops the privileges (

) makes to code run.

So it seems to be a permission problem ...

SvenRoederer added a commit that referenced this issue May 13, 2021
* don't drop root priviledges make page work again, but it's not a real fix of the issue
SvenRoederer added a commit that referenced this issue May 13, 2021
* don't drop root priviledges make page work again, but it's not a real fix of the issue
SvenRoederer added a commit to SvenRoederer/freifunk-berlin-firmware that referenced this issue Jun 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant