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 :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

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

Assignee

Reporter

Tested Version/s

Components

Affects versions

Priority

More fields

Created 29 July 2018 at 02:22
Updated 30 July 2018 at 02:43

Flag notifications