6.0.0-git
2021-01-24

[#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 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

History
2006-03-17 17:39:59 Jan Schneider Comment #2
State ⇒ Resolved
Reply to this comment
Fixed in CVS.
2006-03-17 16:57:20 jgxenite (at) gmail (dot) com Comment #1
Type ⇒ Bug
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
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