[Tickets #3647] NEW: Problem with _checkQuotaWrite in VFS.php
bugs@bugs.horde.org
bugs at bugs.horde.org
Fri Mar 17 08:57:20 PST 2006
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/?id=3647
-----------------------------------------------------------------------
Ticket | 3647
Created By | jgxenite at gmail.com
Summary | Problem with _checkQuotaWrite in VFS.php
Queue | Horde Framework Packages
Version | FRAMEWORK_3
State | Unconfirmed
Priority | 2. Medium
Type | Bug
Owners |
-----------------------------------------------------------------------
jgxenite at gmail.com (2006-03-17 08:57) wrote:
In VFS.php, there is a problem with the function _checkQuotaWrite:
---
$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.
More information about the bugs
mailing list