-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Revert "fix(performance): Do not set up filesystem on every call" #36788
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
nickvergessen
commented
Feb 21, 2023
- Reverts fix(performance): Do not set up filesystem on every call #36589
- Details in Regression in filesystem handling breaks Talk/ attachment folder #36787
| throw new NotImplemented($this->l10n->t('Invalid chunk name')); | ||
| } | ||
|
|
||
| $chunk_handler = new \OC_FileChunking($info); |
Check notice
Code scanning / Psalm
UndefinedFunction
| $targetPath = $path . '/' . $info['name']; | ||
| /** @var \OC\Files\Storage\Storage $targetStorage */ | ||
| [$targetStorage, $targetInternalPath] = $this->fileView->resolvePath($targetPath); | ||
|
|
Check notice
Code scanning / Psalm
DeprecatedClass
| $this->fileView->unlockFile($targetPath, ILockingProvider::LOCK_SHARED); | ||
|
|
||
| return $info->getEtag(); | ||
| } catch (\Exception $e) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
| $this->fileView->unlockFile($targetPath, ILockingProvider::LOCK_SHARED); | ||
|
|
||
| return $info->getEtag(); | ||
| } catch (\Exception $e) { |
Check notice
Code scanning / Psalm
PossiblyFalseReference
| } | ||
| $this->convertToSabreException($e); | ||
| } | ||
| } |
Check notice
Code scanning / Psalm
PossiblyFalseReference
| // chunked upload handling | ||
| if (isset($_SERVER['HTTP_OC_CHUNKED'])) { | ||
| [$path, $name] = \Sabre\Uri\split($filePath); | ||
| $info = \OC_FileChunking::decodeName($name); |
Check notice
Code scanning / Psalm
UndefinedFunction
| $dir = ''; | ||
| } | ||
|
|
||
| $info = \OC_FileChunking::decodeName($name); |
Check notice
Code scanning / Psalm
UndefinedFunction
| return true; | ||
| } | ||
|
|
||
| public function getFileChunking($info) { |
Check notice
Code scanning / Psalm
MissingReturnType
| return true; | ||
| } | ||
|
|
||
| public function getFileChunking($info) { |
Check notice
Code scanning / Psalm
MissingParamType
miaulalala
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.
😢