Skip to content
Snippets Groups Projects
Commit 5698c851 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix webdav storage backend when trying to open a non existing file for reading

parent 5256301a
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment