Skip to content

Commit

Permalink
Merge pull request #6001 from BOINC/dpa_get_output
Browse files Browse the repository at this point in the history
get_output.php: send empty file if no files to send, rather then error messages
  • Loading branch information
AenBleidd authored Jan 15, 2025
2 parents 1b94f62 + 7fb1868 commit 0e2cd22
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions html/user/get_output.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,14 @@ function get_batch_output_files($auth_str) {
// output file may be optional; don't complain if not there
}
}
// if no output files, make empty zip file
//
if (!file_exists($zip_filename)) {
touch($zip_filename);
}
do_download($zip_filename);
unlink($zip_filename);
unlink($zip_basename);
}

// return a single output file of a WU's canonical instance
Expand Down Expand Up @@ -190,6 +196,11 @@ function get_wu_output_files($wu_id, $auth_str) {
// output file may be optional; don't complain if not there
//
}
// if no output files, make empty zip file
//
if (!file_exists($zip_filename)) {
touch($zip_filename);
}
do_download($zip_filename);
unlink($zip_filename);
unlink($zip_basename);
Expand Down

0 comments on commit 0e2cd22

Please sign in to comment.