luci-app-attendedsysupgrade: use the same logic as the main build when requesting...
authorLili González <[email protected]>
Sat, 25 Oct 2025 00:23:49 +0000 (18:23 -0600)
committerPaul Donald <[email protected]>
Sat, 25 Oct 2025 21:02:13 +0000 (23:02 +0200)
commit31fb9ce1967ee5650777588efaa167a6ac076417
treed5362f23835419adfc7c935fc01d876c545651cb
parentbd5650565a57c49be22eb2706a1823112e7be88d
luci-app-attendedsysupgrade: use the same logic as the main build when requesting rebuilds

When initiating a build the requests were build differently
between main and rebuild servers leading to the latter using
only POST request instead of the POST->GET flow. This led to
incorrect tracking of builds in the target ASU server due to
each request being classified unique.

This is fixed by switching rebuild requests to the POST->GET
flow and storing each server's request hash in a map and using
it regardless if it is the main or a rebuild server handling
the request.

Fixes: openwrt/asu#1526
Signed-off-by: Lili González <[email protected]>
applications/luci-app-attendedsysupgrade/htdocs/luci-static/resources/view/attendedsysupgrade/overview.js