Last Comment Bug 356000 - Import from Sunbird <= 0.3a1 causes data loss
: Import from Sunbird <= 0.3a1 causes data loss
: dataloss
Product: Calendar
Classification: Client Software
Component: Import and Export (show other bugs)
: unspecified
: x86 Windows XP
-- critical (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on: 349715
  Show dependency treegraph
Reported: 2006-10-09 01:12 PDT by Sascha Nemecek
Modified: 2007-01-06 10:38 PST (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---

Example calendar file with failing items (2.33 KB, application/octet-stream)
2006-10-11 03:07 PDT, Sascha Nemecek
no flags Details

Description User image Sascha Nemecek 2006-10-09 01:12:51 PDT
User-Agent:       Opera/9.02 (Windows NT 5.1; U; en)
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20061006 Sunbird/0.3

When importing data from an .ics file created with Sunbird 0.3a1 or older an error message is shown. Additionally VTODOs get lost. 

Reproducible: Always

Steps to Reproduce:
1. Take an .ics file from 0.3a1 or older that contains VTODOs
2. Import the .ics file in the current sunbird version
Actual Results:  
1. An error message is displayed reporting that the import for x items failed
2. VTODOs get lost during the import unreportedly

Expected Results:  
1. The correct number of failed imports (VEVENTs and VTODOs) should be displayed. 
2. The error message should be more user friendly. 
3. It would be a great help if the line numbers of the faild import would be displayed. It's quite annoying to have to make a diff on huge .ics files.
Comment 1 User image Matthew (lilmatt) Willis 2006-10-09 09:48:18 PDT
Can you attach an ICS file that when importing shows this error?

Comment 2 User image Stefan Sitter 2006-10-10 05:25:17 PDT
Please attach the (anonymized) calendar file that causes this problem to this bug or provide steps how to create such a event/task in Sunbird 0.3a1.
Comment 3 User image Stefan Sitter 2006-10-11 00:17:45 PDT
isn't this the same problem as in Bug 356004 you reported?
Comment 4 User image Sascha Nemecek 2006-10-11 03:07:05 PDT
Created attachment 241927 [details]
Example calendar file with failing items

The problem when importing the included VEVENT seems to be fixed with the proposed patch in Bug 349715.
Comment 5 User image Sascha Nemecek 2006-10-11 03:09:53 PDT

I suppose you are right (same error code). Maybe I was misleaded to think that those are different errors, because of the unequal appearance of the error message. Another difference (at least to the user) is that this error occured on import and the one reported in Bug 356004 while opening an .ics file. 

I'd also like to mention again, that the wrong number of failed items on import was reported. Seems to me, that only failed VEVENTS were reported. VTODOS were dropped silently. 

I also tested the proposed patch from Bug 349715. 
* The good news: no more error messages. 
* The bad news: some data (see VTODOS in attached .ics) are still lost silently. 

I have attached a calendar file now. 

Comment 6 User image Stefan Sitter 2006-10-15 10:33:01 PDT
(In reply to comment #5)
Adding dependency to Bug 349715.
Comment 7 User image mAtrIx 2006-11-17 01:23:10 PST
I use 0.4a1, import some data. Well, it report some pointer wrong, but the data import rightly.
Comment 8 User image Damian Szczepanik 2007-01-06 10:38:07 PST
WFM with
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a2pre) Gecko/20070106 Calendar/0.4a1

agree, imported properly and no errors

Note You need to log in before you can comment on or make changes to this bug.