Summary | Problem with _checkQuotaWrite in VFS.php |
Queue | Horde Framework Packages |
Queue Version | FRAMEWORK_3 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | |
Requester | jgxenite (at) gmail (dot) com |
Created | 2006-03-17 (5427 days ago) |
Due | |
Updated | 2006-03-17 (5427 days ago) |
Assigned | |
Resolved | 2006-03-17 (5427 days ago) |
Milestone | |
Patch | No |
State ⇒ Resolved
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Summary ⇒ Problem with _checkQuotaWrite in VFS.php
Queue ⇒ Horde Framework Packages
---
$filesize = @filesize($tmpFile); // No reference to
$tmpFile in function
if ($filesize === false) {
return PEAR::raiseError(_("Unable to read VFS
file (filesize() failed).")); // error raised here
}
---
The variable $tmpFile is not referenced at all in _checkQuotaWrite,
and as such the function will try to perform the @filesize on a file
it knows nothing about it. If that code is commented out, the upload
works fine (the file uploads) but you then get a "Unable to write VFS
file (file)" in Gollem.
I have only noticed this problem with attempting to write to the FTP
VFS, not with SQL VFS.