mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
fix webdav storage backend when trying to open a non existing file for reading
This commit is contained in:
parent
cb4c3d7a9e
commit
85e236d798
2 changed files with 6 additions and 3 deletions
|
|
@ -131,6 +131,9 @@ class OC_FileStorage_DAV extends OC_Filestorage_Common{
|
|||
switch($mode) {
|
||||
case 'r':
|
||||
case 'rb':
|
||||
if(!$this->file_exists($path)) {
|
||||
return false;
|
||||
}
|
||||
//straight up curl instead of sabredav here, sabredav put's the entire get result in memory
|
||||
$curl = curl_init();
|
||||
$fp = fopen('php://temp', 'r+');
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ return array(
|
|||
'root'=>'/test',
|
||||
),
|
||||
'webdav'=>array(
|
||||
'run'=>true,
|
||||
'run'=>false,
|
||||
'host'=>'localhost',
|
||||
'user'=>'test',
|
||||
'password'=>'test',
|
||||
|
|
@ -26,11 +26,11 @@ return array(
|
|||
'run'=>false,
|
||||
'user'=>'test:tester',
|
||||
'token'=>'testing',
|
||||
'host'=>'ubuntu.local:8080/auth',
|
||||
'host'=>'localhost.local:8080/auth',
|
||||
'root'=>'/',
|
||||
),
|
||||
'smb'=>array(
|
||||
'run'=>true,
|
||||
'run'=>false,
|
||||
'user'=>'test',
|
||||
'password'=>'test',
|
||||
'host'=>'localhost',
|
||||
|
|
|
|||
Loading…
Reference in a new issue