6.0.0-beta1
9/17/25

[#2530] Importing vCal saves to wrong calendar
Summary Importing vCal saves to wrong calendar
Queue Kronolith
Queue Version HEAD
Type Bug
State Resolved
Priority 2. Medium
Owners Horde Developers (at)
Requester jason (at) dixongroup (dot) net
Created 08/30/2005 (7323 days ago)
Due
Updated 10/19/2005 (7273 days ago)
Assigned 10/17/2005 (7275 days ago)
Resolved 10/19/2005 (7273 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
10/19/2005 01:03:04 PM horde (at) nps (dot) parcellsharp (dot) net Comment #9 Reply to this comment
Excellent!  Thank you guys so much for a quick response.  I greatly 
look forward to trying this out next chance I get.
10/19/2005 01:01:11 PM Jan Schneider Comment #8
State ⇒ Resolved
Reply to this comment
Fixed. The problem was actually the countEvents() call that opens all 
calendars. Moving the open() call below that fixed this bug.
10/19/2005 02:49:43 AM tevans (at) tachometry (dot) com Comment #7
New Attachment: kronolith_import_patch.txt Download
Reply to this comment
This patch corrects the calendar import problem in our environment.



I believe the $kronolith global variable gets clobbered at some point 
during the import loop, although I could not track it down to actual 
offending line of code. Moving the $kronolith->open(...) call into the 
import loop fixes the problem by restoring the target calendar name 
from the session variable just prior to constructing the new event 
instance.



The open(..) method appears to have some defensive code that will 
allow it to reuse an existing DB connection whenever possible, so I 
expect only a minor performance penalty.  While I admit this approach 
is a bit heavy-handed, such is the price of using globals.



Comments and feedback welcome.



Tom Evans

Tachometry
10/17/2005 10:48:07 AM Jan Schneider Comment #6
Assigned to Horde DevelopersHorde Developers
State ⇒ Assigned
Reply to this comment
Reproduced
10/16/2005 01:43:48 PM horde (at) nps (dot) parcellsharp (dot) net Comment #5 Reply to this comment
I think I have found the problem.  The problem happens for both CSV 
and iCal importing and the deal is that it always puts the new entries 
into the last calendar alphabetically, no matter what you choose to 
import to.  To reproduce, create a new calendar called "Active", which 
will sort first and try an import data to it.
10/16/2005 12:54:41 PM horde (at) nps (dot) parcellsharp (dot) net Comment #4 Reply to this comment
I also experienced thisn (and other very weird behavior in import) 
recently with CVS HEAD from about half a week ago.  However, when I 
tried to start with a clean user to make simple reproduction steps, I 
found I couldn't reproduce it easily.  There clearly is some type of 
non-obvious circumstances that cause this behavoir.  I will continue 
trying to find those.



If it helps, the user who was having the problems was a user who 
started out with a fresh clean database and had >2000 entries imported 
via SyncML.
09/23/2005 12:52:28 AM Chuck Hagenbuch Comment #3
State ⇒ Not A Bug
Reply to this comment
No feedback.
09/07/2005 04:45:01 AM Chuck Hagenbuch Comment #2
State ⇒ Feedback
Reply to this comment
I can't reproduce this.
08/30/2005 10:39:00 AM jason (at) dixongroup (dot) net Comment #1
Priority ⇒ 2. Medium
Type ⇒ Bug
Summary ⇒ Importing vCal saves to wrong calendar
Queue ⇒ Kronolith
State ⇒ Unconfirmed
Reply to this comment
Our users are running into some odd behavior when importing vCalendars 
into Kronolith.  They'll create a new calendar, then import a 
vCalendar (exported from Netscape Calendar) to the calendar.  However, 
it will always assign the imported events to their original calendar.   
It doesn't matter if the "new" calendar is set to default or not, same 
behavior.

Saved Queries