Download as Zip option can break the version UI

Description

There's some "download enabled" check on the version page that breaks the UI if something goes wrong with creating the zip file, or if the file creation succeeds and the page is reloaded while the file exists.

The former, the page loads and immediately redirects to a http://localhost:8180/rest/file/download/ endpoint, which is a 404.
The latter, the file is downloaded and the page responds with

Environment

None

Status

Assignee

Unassigned

Reporter

Damian Jansen

Labels

None

Tested Version/s

None

Components

Affects versions

Priority

High
Configure