LuCI - OpenWrt Configuration Interface
Find a file
Jo-Philipp Wich 1b6c126293 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>
(backported from commit 5663fd596b)
2022-02-21 15:09:48 +01:00
applications treewide: Backport translations from master 2022-02-14 22:32:05 +02:00
build build/i18n-merge-master: ignore apps deleted in master 2020-05-13 18:06:31 +03:00
collections luci(-ssl)-nginx: depend on luci-app-opkg 2020-06-09 23:30:57 +03:00
contrib/package lucihttp: update to latest Git HEAD 2019-07-05 08:27:47 +02:00
documentation docs: Update UCI wiki link 2019-01-05 11:00:55 +00:00
libs rpcd-mod-luci: Fix parsing of DUID-LLT's in duid2ea 2021-03-01 08:56:25 +01:00
modules luci-base: properly handle promise targets in Request.request() 2022-02-21 15:09:48 +01:00
protocols luci-proto-gre: update i18n and fix typo 2021-03-01 11:04:52 +02:00
themes themes: Call striptags() on hostname to prevent XSS 2021-06-09 21:07:45 +02:00
.buildpath * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
.cproject More C-Functions (luci.cutil.instanceof, luci.cutil.pcdata) 2008-11-20 19:22:05 +00:00
.gitignore luci-base: add support for plural translations and contexts in Lua api 2020-05-07 19:40:49 +02:00
.project LuCI Core C-Rewrite: First steps 2008-11-19 23:02:36 +00:00
CONTRIBUTING.md Update CONTRIBUTING.md 2018-12-10 17:54:55 +02:00
LICENSE * new project: ff-luci - Freifunk Lua Configuration Interface 2008-03-02 21:52:58 +00:00
luci.mk luci.mk: correcting a misspell for Brazilian Portuguese 2020-12-20 19:39:18 +02:00
NOTICE Update my email addresses in the license headers 2015-01-16 23:49:44 +01:00
README.md README: use correct weblate badge and add status 2019-11-05 08:44:22 +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