Repository navigation
Catch exceptions in files ajax calls - #16718
Conversation
|
A new inspection was created. |
|
Refer to this link for build results (access rights to CI server needed): |
|
good catch 👍 |
|
Download is much more tricky because at the time where LockedException is thrown, the headers are already send (including content-disposition). This causes the browser to show a generic error page "invalid_response" instead of the actual error page returned by the server. |
can we delay sending of these headers? we also need to send back a proper http status code. |
|
I hope so. But from the current code structure it might be tricky... Because we get the exception from the readfile() call. One idea would be to try and explicitly get a shared lock on the file before sending the headers, to make sure we get the exception early. |
|
I'd like to investigate the download case separately. If we get this merged, it will be easier for @jnfrmarks and @SergioBertolinSG to test the other file operations. Please review @DeepDiver1975 @icewind1991 |
|
@PVince81 let treat the remaining ops in a second pr |
|
👍 |
Catch exceptions in files ajax calls

Needed to be able to show the locking exceptions: #16701