6.0.0-alpha14
7/3/25

[#10223] error in mime decoding empty content
Summary error in mime decoding empty content
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester rick (at) havokmon (dot) com
Created 06/10/2011 (5137 days ago)
Due
Updated 06/10/2011 (5137 days ago)
Assigned
Resolved 06/10/2011 (5137 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
06/10/2011 05:25:59 PM Michael Slusarz Assigned to Michael Slusarz
State ⇒ Resolved
 
06/10/2011 05:25:46 PM Git Commit Comment #2 Reply to this comment
Changes have been made in Git for this ticket:

Bug #10223: Fix error when determining part size if contents is empty

  2 files changed, 8 insertions(+), 7 deletions(-)
http://git.horde.org/horde-git/-/commit/8eae500f4a24746f00f72193b62944122c5a2887
06/10/2011 02:26:05 PM rick (at) havokmon (dot) com Comment #1
Priority ⇒ 1. Low
New Attachment: mime-empty.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ error in mime decoding empty content
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
logging the current error - appears to be generated by an empty MIME 
section...

2011-06-10T09:01:11-05:00 WARN: HORDE4 [imp] PHP ERROR: fseek(): 
supplied argument is not a valid stream resource [pid 14684 on line 
1363 of 
"/usr/local/www/sub/data/horde_git/horde/framework/Mime/lib/Horde/Mime/Part.php"]
2011-06-10T09:01:11-05:00 WARN: HORDE4 [imp] PHP ERROR: ftell(): 
supplied argument is not a valid stream resource [pid 14684 on line 
1364 of 
"/usr/local/www/sub/data/horde_git/horde/framework/Mime/lib/Horde/Mime/Part.php"]
2011-06-10T09:01:11-05:00 WARN: HORDE4 [imp] PHP ERROR: fseek(): 
supplied argument is not a valid stream resource [pid 14684 on line 
1363 of 
"/usr/local/www/sub/data/horde_git/horde/framework/Mime/lib/Horde/Mime/Part.php"]
2011-06-10T09:01:11-05:00 WARN: HORDE4 [imp] PHP ERROR: ftell(): 
supplied argument is not a valid stream resource [pid 14684 on line 
1364 of 
"/usr/local/www/sub/data/horde_git/horde/framework/Mime/lib/Horde/Mime/Part.php"]

caused by the code:
  elseif {
              fseek($this->_contents, 0, SEEK_END);
              $bytes = ftell($this->_contents);

Patch verifys $this->_contents exists, and sets $bytes = 0 if not.

Saved Queries