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

remotes/origin/stable5
Robin Appelman 12 years ago
parent 5256301a53
commit 5698c8519a
  1. 3
      apps/files_external/lib/webdav.php
  2. 6
      apps/files_external/tests/config.php

@ -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…
Cancel
Save