fix: handle InvalidArumentException as availability failure in smb->getFileInfo

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-12 13:48:09 +01:00 committed by Andy Scherzinger
parent dc323ee347
commit 75339c9b34

View file

@ -169,6 +169,8 @@ class SMB extends Common implements INotifyStorage {
}
} catch (ConnectException $e) {
$this->throwUnavailable($e);
} catch (InvalidArgumentException $e) {
$this->throwUnavailable($e);
} catch (NotFoundException $e) {
throw new \OCP\Files\NotFoundException($e->getMessage(), 0, $e);
} catch (ForbiddenException $e) {