Download with invalid local path is leading to an endless loop
The attempted download of a file ends in an endless loop if the file cannot be written, in the example an empty string was simply passed as an invalid file name. Tested with the Julia client.
[2021-08-26 12:41:07.797167] [0x00007f47a732b740] [info] Downloading ""
[2021-08-26 12:41:07.797518] [0x00007f47a732b740] [info] Enter DownloadRequestHandler::handleNewCallState. local_path = "", download_id = 0xef4ac0
[2021-08-26 12:41:07.798609] [0x00007f47a732b740] [info] DownloadRequestHandler caught an exception: Can't open file for writing:
[2021-08-26 12:41:08.800775] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:09.804557] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:10.808158] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:11.810778] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:12.814096] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:13.816326] [0x00007f47a732b740] [info] Timeout, waiting...
[2021-08-26 12:41:14.819671] [0x00007f47a732b740] [info] Timeout, waiting...