Download as Zip option can break the version UI
Description
Environment
None
Activity
Show:
Sean Flanigan 30 July 2018 at 02:43
Research note: the missing zanata
variable is defined by resources/assets/script.js
, and supposed to be loaded by scripts.xhtml
(via template{_nobanner}.xhtml
).
Releated: see ZNTA-2722.
Details
Details
Assignee
Unassigned
UnassignedReporter
Former user
Former user(Deactivated)Tested Version/s
None
Components
Affects versions
Priority

More fields
Time tracking
More fields
Time trackingCreated 29 July 2018 at 02:22
Updated 30 July 2018 at 02:43
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 :warning: 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
Uncaught ReferenceError: zanata is not defined at enableDownload (documents?dswid=-8536:787) at documents?dswid=-8536:814