Optimize PUT - Dont fetch info of not existing file#28021
Conversation
|
Did you test ? Is From what I remember, an overwrite still goes to |
|
make sure to test the following:
there is a slight chance that the chunked mode will go through |
|
@mrow4a any update on my comments ? |
|
@mrow4a please rebase. On master I've added chunking + overwrite tests so the integration tests will take care of verifying your change. If tests pass, then 👍 |
|
let me rebase that for you |
7c13305 to
29b81b4
Compare
Rebased ⛏ |
|
some apparently legit failures: @mrow4a please have a look |
6fc99b9 to
9090ba3
Compare
|
|
|
Unit tests are not adjusted because they don't pass PATH_INFO for $SERVER |
|
@jvillafanez @PVince81 @DeepDiver1975 review here? |
| $davUploadsTarget = '/dav/uploads'; | ||
|
|
||
| // Check if pathinfo starts with dav uploads target and basename is future file basename | ||
| if (isset($_SERVER['PATH_INFO']) |
There was a problem hiding this comment.
any way to do this without global variables + static functions ? (pretty sure @DeepDiver1975 would not be happy either)
I do see that it is likely rather tricky to inject all this down to the "File" class.
@DeepDiver1975 should we pass on this one ?
There was a problem hiding this comment.
Honestly, it was just the suggestion, but wanted to create a specific class which might hold all these values.
There was a problem hiding this comment.
About the global, not sure if request holds this value alone.
|
@mrow4a please backport to stable10 |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
"in case the file already exists/overwriting" ? In createFile() function which from composer is used only for new files, and there is specific one called updateFile() ?
-1 query plus Locking/Releasing because each getFileInfo needs to do that
