Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
18.8.0
-
None
-
Unknown
-
Description
Problem
The pages that display the status of a job with the displayJobStatus macro of job_macros.vm display "Done." for a job which is already finished when the page is loaded, even when the job failed. This affects for example the status page of an attachment move, the page restore status, the filter stream job page, the legacy notification migration page and the orphaned extensions clean-up step of the Distribution Wizard (distribution/extension.clean.apply.finalize.wiki).
The message is only correct when the page is opened while the job runs: the progress bar is then replaced by the message computed by job_status_json.vm when the job ends.
Cause
displayJobStatus passes $status, which is not one of its parameters (so generally undefined), to jobFinishedMessage instead of its own $jobStatus parameter. With an undefined status, jobFinishedMessage finds no error, no cancellation and no error in the log, and displays the success message.
Fix
Pass $jobStatus.
Attachments
Issue Links
- is related to
-
XWIKI-25249 Display jobs interrupted before completion as interrupted instead of failed
-
- Open
-