Summary | 100% cpu for apache when exporting vcard 3.0 |
Queue | Turba |
Queue Version | Git master |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | d-fens (at) 00010111 (dot) de |
Created | 11/24/2010 (5337 days ago) |
Due | |
Updated | 09/29/2011 (5028 days ago) |
Assigned | 11/25/2010 (5336 days ago) |
Resolved | 06/29/2011 (5120 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
bug #8627.Taken from Michael Slusarz
State ⇒ Resolved
Use chunk_split() for wrapping attributes if we know that it's already
base64 encoded. (
Bug #9405).2 files changed, 7 insertions(+), 3 deletions(-)
http://git.horde.org/horde-git/-/commit/d90a36975cb9417554c78d991b170f795ac21712
Images up to 200x200px are working. Images with more than 400x400px
won't be synced.
share/php/Horde/Icalendar.php
function _exportvData
share/php/Horde/Icalendar.php
function _exportvData
OLD:
------
if (!$this->oldFormat) {
$attr_string = Horde_String::wordwrap($attr_string, 75,
$this->_newline . ' ', true, true);
}
New:
------
if (!$this->oldFormat) {
if ($name === "PHOTO"){
$attr_string = chunk_split ($attr_string, 75, $this->_newline);
}else{
$attr_string = Horde_String::wordwrap($attr_string, 75,
$this->_newline . ' ', true, true);
}
}
This works for me!
Question:
Is there a limitation (filesize) of the images from Horde / SyncML?
Images up to 200x200px are working. Images with more than 400x400px
won't be synced.
with 200x200 pixel takes more than half an hour on an amd 64 dual core
cpu.
State ⇒ Assigned
Assigned to
Assigned to Michael Slusarz
Assigned to Jan Schneider
Priority ⇒ 2. Medium
**brutally** slow. We are talking (on a Dual Core 2) like 100
characters/second slow.
framework/Icalendar/lib/Horde/Icalendar.php
protected function _exportvData($base = 'VCALENDAR')
just add a image to a contact and you will see
Priority ⇒ 1. Low
Patch ⇒ No
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Turba
Summary ⇒ 100% cpu for apache when exporting vcard 3.0
Type ⇒ Bug
Priority ⇒ 3. High
everytime i tried to export contacts as vcard v3.0 apache looped at 99%