Skip to content

Conversation

@nickvergessen
Copy link
Member

throw new NotImplemented($this->l10n->t('Invalid chunk name'));
}

$chunk_handler = new \OC_FileChunking($info);

Check notice

Code scanning / Psalm

UndefinedFunction

Function Sabre\Uri\split does not exist
$targetPath = $path . '/' . $info['name'];
/** @var \OC\Files\Storage\Storage $targetStorage */
[$targetStorage, $targetInternalPath] = $this->fileView->resolvePath($targetPath);

Check notice

Code scanning / Psalm

DeprecatedClass

Class OCP\Files\Storage is marked as deprecated
$this->fileView->unlockFile($targetPath, ILockingProvider::LOCK_SHARED);

return $info->getEtag();
} catch (\Exception $e) {

Check notice

Code scanning / Psalm

RedundantConditionGivenDocblockType

Docblock-defined type string can never contain null
$this->fileView->unlockFile($targetPath, ILockingProvider::LOCK_SHARED);

return $info->getEtag();
} catch (\Exception $e) {

Check notice

Code scanning / Psalm

PossiblyFalseReference

Cannot call method getChecksum on possibly false value
}
$this->convertToSabreException($e);
}
}

Check notice

Code scanning / Psalm

PossiblyFalseReference

Cannot call method getEtag on possibly false value
// 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

Function Sabre\Uri\split does not exist
$dir = '';
}

$info = \OC_FileChunking::decodeName($name);

Check notice

Code scanning / Psalm

UndefinedFunction

Function Sabre\Uri\split does not exist
return true;
}

public function getFileChunking($info) {

Check notice

Code scanning / Psalm

MissingReturnType

Method OCA\DAV\Connector\Sabre\QuotaPlugin::getFileChunking does not have a return type, expecting OC_FileChunking
return true;
}

public function getFileChunking($info) {

Check notice

Code scanning / Psalm

MissingParamType

Parameter $info has no provided type
Copy link
Contributor

@miaulalala miaulalala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😢

@miaulalala miaulalala merged commit 13ef475 into master Feb 21, 2023
@miaulalala miaulalala deleted the revert-36589-enh/perf-remove-icache branch February 21, 2023 08:22
@skjnldsv skjnldsv mentioned this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants