-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Optimize PUT - Dont fetch info of not existing file #28021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
About the global, not sure if request holds this value alone.
PVince81
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 fine by me
|
@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
