- First commit to issue fork.
- @benjifisher opened merge request.
- πΊπΈUnited States benjifisher Boston area
benjifisher β changed the visibility of the branch 3114887-cleanup-failed-downloads--rebase to hidden.
- πΊπΈUnited States benjifisher Boston area
benjifisher β changed the visibility of the branch 9.4.x to hidden.
- πΊπΈUnited States benjifisher Boston area
I rebased @slucero's branch on the current 11.x and made a new MR.
- π³πΏNew Zealand xurizaemon Εtepoti, Aotearoa π
I support the "delete on error" approach in MR 9785.
Discussed above in 19 is the idea of using a HEAD request to check the file's existence. (I realise I'm responding to a Slack thread from two years ago here, but wanted to put this on record in case the solution turns back from the current MR approach.)
Working recently with Migrate in Islandora and large file ingests (>1GB assets) recently, there's a case where an initial HEAD will not prevent this error: if the file URL is correct and the HEAD is a 200, then retrieval fails for eg timeout or resource limits (server returns a 200, but the content length is incorrect). My recollection is that Guzzle does correctly throw an exception and terminate the stream in this case.
The current behaviour is that the terminated stream will be written as a partial download when the request exits. This MR looks like it would correctly ensure the failed download is removed.