LuCI - OpenWrt Configuration Interface
Find a file
Jo-Philipp Wich 5663fd596b luci-base: properly handle promise targets in Request.request()
Under some circumstances, ubus RPC requests may be initiated while LuCI is
still resolving the `rpcBaseURL` value. In this situation, the `target`
argument of the `request()` call will be a pending promise object which
results in an invalid URL when serialized by `expandURL()`, leading to an
`Failed to execute 'open' on 'XMLHttpRequest': Invalid URL` exception.

This commonly occured on the index status page which immediately initiates
ubus RPC calls on load to discover existing status page partials.

Solve the issue by filtering the given `target` argument through
`Promise.resolve()` before expanding the URL and initiating the actual
request.

Fixes: #3747
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2022-02-21 14:59:16 +01:00
.github Merge pull request #5567 from TDT-AG/pr/20211202-github-issue-templates 2022-01-13 10:34:10 +01:00
applications Translated using Weblate (Ukrainian) 2022-02-18 18:12:21 +02:00
build build: i18n-sync.sh: fix i18n-update.pl invocation 2021-07-22 16:32:35 +02:00
collections luci-lib-docker: add container export support 2021-06-15 22:29:24 +08:00
contrib/package lucihttp: update to latest Git HEAD 2022-02-21 14:51:01 +01:00
docs CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
libs rpcd-mod-luci: parse prefix size from DHCPv6 leases 2021-10-26 19:40:35 +02:00
modules luci-base: properly handle promise targets in Request.request() 2022-02-21 14:59:16 +01:00
protocols Merge pull request #5642 from hgl/xfrm 2022-01-22 16:10:47 +01:00
themes luci-theme-bootstrap: fix translation for username and password captions 2021-12-21 09:57:33 +01:00
.gitignore CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
CONTRIBUTING.md CONTRIBUTING.md: Fix sign_your_work link. 2020-03-01 14:33:20 -08:00
jsdoc.conf.json docs: various updates 2019-11-07 12:39:24 +01:00
LICENSE * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
luci.mk translation: add Danish to luci.mk 2021-11-07 22:28:08 +02:00
NOTICE Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
package.json CI: automatically update jsapi docs 2021-10-08 17:16:04 -10:00
README.md docs: various updates 2019-11-07 12:39:24 +01:00

OpenWrt luci feed

Translation status

Description

This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.

Usage

This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:

src-git luci https://github.com/openwrt/luci.git

To install all its package definitions, run:

./scripts/feeds update luci
./scripts/feeds install -a -p luci

API Reference

You can browse the generated API documentation directly on Github.

Development

Documentation for developing and extending LuCI can be found in the Wiki

License

See LICENSE file.

Package Guidelines

See CONTRIBUTING.md file.

Translation status

Translation status