-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug
Description
Steps to reproduce
- Download and install NC 15.0.14
- Run occ files:scan -all
- If a storage is not available it crashes
Expected behaviour
Handle exception instead of crash
Actual behaviour
Crashes because its calling a function that is only introduced in NC 16!
Error: Call to undefined method OC\AllConfig::getSystemValueInt() in/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php:454
protected function setUnavailable(StorageNotAvailableException $e) {
$delay = self::RECHECK_TTL_SEC;
if($e instanceof StorageAuthException) {
$delay = max(
// 30min
---> $this->config->getSystemValueInt('external_storage.auth_availability_delay', 1800),
self::RECHECK_TTL_SEC
);
}
$this->getStorageCache()->setAvailability(false, $delay);
throw $e;
}
}
Metadata
Metadata
Assignees
Labels
0. Needs triagePending check for reproducibility or if it fits our roadmapPending check for reproducibility or if it fits our roadmapbug