Closed Bug 687412 Opened 13 years ago Closed 11 years ago

"Save Event" dialog pops up when closing an unmodified event

Categories

(Calendar :: Dialogs, defect)

Lightning 1.0b2
x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: psychonaut, Assigned: Fallen)

References

Details

Attachments

(1 file)

In Thunderbird's Event pane, I double-click on an event.  This opens an "Edit Event" dilaog.  I then close this dialog without making any changes.  This produces the following dialog:

Save Event
Event has not been saved.  Do you want to save the event?
[Don't Save] [Cancel] [Save]

Since I did not make any modifications to the event, I should not be prompted to save it.

I am using Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13.

Perhaps this is related to, or a recurrence of, Bug 419807.
Does this happen with the current release too, i.e. Lightning 1.0b5 + Thunderbird 6?

If yes, maybe some property of the event has been corrected in the background. I suggest to copy the event before and after and compare the iCalendar representation.
Lightning 1.0b2 is the latest stable release which I'm able to install on my 64-bit system (see Bug 455683), so I'm afraid I can't test with anything newer.
I don't see how Bug 455683 affects you. Lightning 1.0b5 does support 64-bit Thunderbird 6 builds. You can get it from https://addons.mozilla.org/thunderbird/addon/lightning/versions/1.0b5
It does, but we're still using Thunderbird 3.x at my place of work.  I'll see if I can install the latest version and test it on my home machine.
Confirming problem also occurs with Thunderbird 6.0.2 and Lightning 1.05b.

Stefan, I'm not sure what you mean by "copy the event before and after and compare the iCalendar representation".  Am I correct in thinking you want me to do the following steps?

1. Copy the event to the clipboard.
2. Paste it into a text editor to get an iCal representation
3. Open the event
4. Close the event, and when the dialog appears click on "Save"
5. Copy the event to the clipboard
6. Paste it into a text editor to get an iCal representation

If so, here is the difference between the two iCal versions:

$ diff task1.txt task2.txt
20c20
< DTSTAMP:20110919T141506Z
---
> DTSTAMP:20110919T141555Z
47a48
> X-MOZ-SEND-INVITATIONS:TRUE
Ok, so it seems to be the notify attendees checkbox. Is that visible for you? What calendar type do you have selected when creating the new event?
Philipp, some of the events I open have the "Notify attendees" checkbox visible and checked, and others do not have any "Notify attendees" checkbox at all.  In both cases, I get the unwanted "Save Event" dialog when closing the event without making any changes.

To answer your second question, I am not creating any events.  The events I am opening were created by other people on a shared CalDAV calendar.
Tristan, does it also happen when editing events on a local calendar? Could you enable calendar.debug.log and calendar.debug.log.verbose and let me know which DAV Options the caldav server supports? (i.e calendar-auto-schedule). You get this info when first connecting to the caldav server after startup.
Philipp, I enabled those logging settings.  Is this the portion of the log you're interested in?

CalDAV: send: OPTIONS http://localhost:1080/users/miller%40tk.informatik.tu-darmstadt.de/
CalDAV: DAV header: 1, calendar-access, calendar-schedule, calendarserver-private-events, addressbook
CalDAV: Calendar UKP generally supports calendar-schedule

If not, let me know more specifically what I should be looking for and I'll post it.

I can't reproduce the problem with a local calendar; it happens only with the CalDAV one.
I wanted to report the very same issue, as I experience it on my Apple calendar server from current trunk.

The headers are as follows:
DAV	1, access-control, calendar-access, calendar-schedule, calendar-auto-schedule, calendar-availability, inbox-availability, calendar-proxy, calendarserver-private-events, calendarserver-private-comments, calendarserver-sharing, calendarserver-sharing-no-scheduling, calendar-query-extended, addressbook, extended-mkcol, calendarserver-principal-property-search
So this likely has to do with the way the X-MOZ-SEND-INVITATIONS property is set. It should be trivial to fix, but you need someone with time and access to a such server to fix it. I don't have either.

Felix, if you feel like fixing this, start looking here:

http://mxr.mozilla.org/comm-central/source/calendar/base/content/dialogs/calendar-event-dialog.js#2267

and here:

http://mxr.mozilla.org/comm-central/source/calendar/base/content/dialogs/calendar-event-dialog.js#445

and here:
http://mxr.mozilla.org/comm-central/source/calendar/base/content/dialogs/calendar-event-dialog.js#3094

The property should likely be ignored while comparing changes, or be serialized correctly.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Can somebody provide a way to reproduce this? I have experienced this before myself, however, I cannot make it occur with current lightning.

Does it maybe just happen if the events were created with an older version of Lightning?
In my case, the events were created on a Microsoft Exchange server with Microsoft Outlook.  I'm reading them in Thunderbird+Lightning through the DavMail Exchange-to-CalDav gateway.
Felix, please check the conditions in the source code I linked. The notify attendees row needs to be visible and then maybe some combination of having an identity set, or maybe that calendar.itip.send pref, who knows :)
Hello, all.  I see this behavior each and every time I try to close an event I've viewed.  It happens both for events created within lightning, as well as those I create by clicking on a .ics attachment in an incoming e-mail message.

I'd be happy to gather and provide any information that might help get to the bottom of this.

I'm using Thunderbird 8 and Lightning 1.0 (updated 11/19/2011) on Fedora 15 for x86_64.
Long form of the package IDs:

thunderbird-8.0-2.fc15.x86_64
thunderbird-lightning-1.0-1.fc15.x86_64
I can confirm this bug with Lightning 1.1 in TB 9 on Win7. The behavior is correct for local calendars. It's incorrect (i.e. as reported) for events on CalDAV (Zimbra) that I was invited to. For events on CalDAV that I added myself the behavior is also correct.
The only thing reported in the console is 
Warning: Use of getAttributeNode() is deprecated. Use getAttribute() instead.
Source File: chrome://calendar/content/calendar-event-dialog.xul
Line: 0
Attached patch Fix - v1 — — Splinter Review
This patch takes care by ignoring that property. I've also noticed that in some cases, the CN property of the organizer is also changed, so I've taken this out by default too. I know the organizer shouldn't have this prop at all, but thats another bug.
Assignee: nobody → philipp
Status: NEW → ASSIGNED
Attachment #721669 - Flags: review?(matthew.mecca)
Comment on attachment 721669 [details] [diff] [review]
Fix - v1

Looks good. r=mmecca
Attachment #721669 - Flags: review?(matthew.mecca) → review+
Pushed to comm-central changeset 4053e929957f
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: