6.0.0-beta1
8/20/25

[#3647] Problem with _checkQuotaWrite in VFS.php
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 03/17/2006 (7096 days ago)
Due
Updated 03/17/2006 (7096 days ago)
Assigned
Resolved 03/17/2006 (7096 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
03/17/2006 05:39:59 PM Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
03/17/2006 04:57:20 PM jgxenite (at) gmail (dot) com Comment #1
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Problem with _checkQuotaWrite in VFS.php
Queue ⇒ Horde Framework Packages
Reply to this comment
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.

Saved Queries