| 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 | 3/17/06 (7410 days ago) |
| Due | |
| Updated | 3/17/06 (7410 days ago) |
| Assigned | |
| Resolved | 3/17/06 (7410 days ago) |
| Github Issue Link | |
| Github Pull Request | |
| Milestone | |
| Patch | No |
State ⇒ Resolved
State ⇒ Unconfirmed
Priority ⇒ 2. Medium
Type ⇒ Bug
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.