Open Bug 647812 Opened 13 years ago Updated 2 years ago

Modification failed errors for calendar entry updates or reminder handling.

Categories

(Calendar :: Alarms, defect)

x86
Windows XP
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: bud.anderson, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 ( .NET CLR 3.5.30729)
Build Identifier: Mozilla Thunderbird version 3.1.9

A calendar scheduled event built by me started issuing reminders after the event was over and I had dismissed it.  I clicked on "dismiss" and got error message "modification failed while writing to the calendar bud.anderson.  Additional information: code 400 bad request bad format FAKEID".  I was finally able to delete the event and rebuild it, but the reminders from multiple events are stacking up and I cannot dismiss or snooze them.  I get the same error every 15 minutes or so while Thunderbird is active.  I can close the windows and defer the messages for 15 minutes, but snooze and dismiss don't work.

Reproducible: Always

Steps to Reproduce:
1. start Thunderbird
2. snooze/dismiss reminder for events appears
3. buttons for snooze and dismiss result in error described above
Actual Results:  
error message modification failed  
An error occurred when writing to the calendar bud.anderson!
Error code: MODIFICATION_FAILED
===400 bad request===
Bad format: FAKEID

Expected Results:  
Clicking on snooze should let me defer the reminder for 5 min to some number of hours.  Clicking on dismiss should get rid of the reminder for that specific event.

This is becoming a productivity issue for me, and this is an application I use to manage my Beehive email account.  Our help desk isn't very supportive on this product, so I'm asking you guys first in hope that there is something I couldn't see in the search of existing problems on this site.
Component: General → Lightning Only
Product: Thunderbird → Calendar
QA Contact: general → lightning
What kind of calendar is this? (i.e caldav, if so which server. Or local? ics/webdav?)
I'm not sure what kind of calendar this is other than Lightning. The data resides on a company server under an app called Beehive.  If you can point me to the options or account settings panel that yields this information, I'll be happy to look it up.
Ah yes, I should have figured due to @oracle.com. This is a CalDAV server, did you set up the calendar yourself or did IT do it?
The calendar existed the first time I launched the app.  Except for some minor options, everything was there.
Ok, lets assume IT set this up correctly. Could you enable calendar.debug.log and calendar.debug.log.verbose in the error console to get more messages? They will show up in your error console, you may need to restart the app.
Hi!

I have a similar problem since updating to Thunderbird 5 with Lightning 1.0b4 (Windows 7). 

When I try to snooze a calendar item I get an error message:

"An error occurred when writing to the calendar Home! 
Error code: Modification_Failed 
Description:                                           "

The error console says:
Warning: There has been an error reading data for calendar: Home.  However, this error is believed to be minor, so the program will attempt to continue. Error code: 0x80004005. Description: generation too old for for modifyItem

and

Error: An error occurred when writing to the calendar Home! Error code: MODIFICATION_FAILED. Description: 
Source File: resource://calendar/modules/calUtils.jsm -> file:///C:/Users/Sasha/AppData/Roaming/Thunderbird/Profiles/94akrt16.default/extensions/%7Be2fda1a4-762b-4020-b5ad-a41df1933103%7D/calendar-js/calCalendarManager.js
Line: 1061

Other people seem to have the same problem:
http://getsatisfaction.com/mozilla_messaging/topics/error_modification_failed

Any help?
Are you getting any error console messages? (Tools > Error Console) please see comment 5.
Yes, there is a ton of error data in the error console.  I have no place to send it.
You could put the errors into a file and attach it to this bug. Otherwise send it to me via email. Unfortunately there is no easy way to copy and paste multiple entries, so I'd also take a screenshot. Alternatively, you can use the Console^2 extension to gather multiple lines into a file. <https://addons.mozilla.org/en-US/firefox/addon/console²/>
Error console contents
Hmm I can't make much of this, but I'm sure Simon can help. Have you contacted Oracle IT support about this?
I opened an iSupport ticket back in April, but they kept closing it on me.  That's when I went to this site.
I'm sorry thats happening. Lets see what Simon has to say :)
(In reply to comment #9)
> Unfortunately there is no easy way to copy and paste multiple entries

To log JS errors to disk, set the environment variable "XRE_CONSOLE_LOG" to the path to the filename. i.e. export XRE_CONSOLE_LOG=/path/to/logfile or set XRE_CONSOLE_LOG=C:\path\to\logfile. After closing Thunderbird you can copy and paste all messages from that file.
I never got that to work, does that also work for non-debug builds?
I receive this error when trying to move a task from one calendar (Home) to another calendar (School).

It doesn't matter whether I open the task and change calendars, or if I right-click the task and select a new calendar.
I am now running into a "modification failed, error 405" situation and am noticing dubious behaviour by I believe calCalendarManager.js. At least that's what is shown in the Error Console.

Lightning 1.0, Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111110 Thunderbird/8.0 ID:20111110172238

From what I am seeing, Lightning builds an exactly 5 components path for a caldav modification request url. It will duplicate the last path component if its less than 5 or cut off 6th to make it exactly 5 depending on urls. I have not tested 7+ long path.

Success: PUT /calendar/caldav.php/leho/home/583a42cf-5798-4bd2-9e5e-bc350b1afbb5.ics
 5 components
Duplication: PUT /calendar/leho/home/home/583a42cf-5798-4bd2-9e5e-bc350b1afbb5.ics
 notice home/home
Cutoff: PUT /diddly/wookidoo/calendar/helena/calendar/ HTTP/1.1" 405
 notice missing the last uuid.ics component altogether

I have been running DAViCal with a /calendar/caldav.php/user/collection/ structure for a number of years now. Recently I looked into rewriting URLs for simplicity to remove caldav.php, to get to just /calendar/user/collection/. 

My rewrite.log proves step by step that the incoming modification URL built by Lightning is already wrong. I tested the other direction by Aliasing more random path components to the front, resulting in the outputs listed above.

Other than that, calendars load and accept new items, so this seems to be restricted to the event modification code.

Perhaps :Fallen or someone else knowledgeable about Calendar innards could comment on this sighting? Is there a way to monitor what URLs Lightning is building other than wiresharking? How is the detailed log in bug 695528 achieved?
in the meanwhile i put up a rewrite hack to coerce "home/home" and "calendar/calendar" into a singular form.
IIRC there were some ways to work around this server side, but it does seem we are incorrectly rewriting things here. I was also sure we had another bug on this too. CC'ing Andrew.

The detailed log requires a debug build afaik, with NSPR_LOG_MODULES set to the right value. You should get a decent amount of information using calendar.debug.log(.verbose) and the error console though.
Component: Lightning Only → Alarms
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: