RUTX50 07.24.3 – /interfaces/status returns HTTP 500 for disabled Wi-Fi LAN interfaces
Device: RUTX50
Firmware:RUTX_R_00.07.24.3
The WebUI displays:
Failed to load interfaces status
The aggregate API call fails:
api get /interfaces/status
http_code=500
success=0
Testing the interfaces individually shows that only the LAN interfaces associated with the disabled Wi-Fi radios return HTTP 500. Other active interfaces return HTTP 200.
For each affected disabled Wi-Fi LAN interface:
HTTP 500
source=‘Lua’
code=999
/usr/lib/lua/api/network/interfaces.lua:
bad argument #1 … (table expected, got string)
Both Wi-Fi radios and their associated LAN interfaces are intentionally disabled.
It appears that /usr/lib/lua/api/network/interfaces.lua does not correctly handle the status of a disabled Wi-Fi-associated LAN interface. The per-interface HTTP 500 response then causes the aggregate /interfaces/status request to fail, resulting in the WebUI warning.
Expected behaviour would be for a disabled interface to return a valid status response indicating that it is disabled/down rather than HTTP 500.
Please confirm whether this is a known issue in RUTX_R_00.07.24.3.