Closed Bug 1765995 Opened 3 years ago Closed 2 years ago

Editing an event, making any small change, clicking Save & Close and choosing Discard My Changes And Reload will delete the event

Categories

(Calendar :: General, defect)

Thunderbird 100
x86_64
Windows 10
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: thee.chicago.wolf, Unassigned)

Details

(Keywords: dataloss)

Attachments

(3 files, 1 obsolete file)

Some possible repro requirements: Happens with 100.0 b3 and if you have some already created events (i.e., repeating, future, etc.) you know for sure that you made with an earlier version of TB (i.e., 99, 98, etc.). Make sure you have Today Pane and Mini-month showing.

STR:

  1. Go to some future event via mini-month view and double click the event and edit it
  2. Make one small change---like adding one period---to the Title
  3. Click Save & Close

In my case, it prompts me with an Item Changed On Server pop-up menu and the "Submit My Changes Anyway" and "Discard My Changes And Reload" buttons. If I choose "Submit My Changes Anyway", the event gets updated. If I choose "Discard My Changes And Reload", it will delete the event. Seems like new behavior with 100.0 b3.

Keywords: dataloss

This issue is now seemingly worse in 100.0 b4. It's wiping out gobs of my calendar events I'd set months ago. Please see https://bugzilla.mozilla.org/show_bug.cgi?id=1752307#c14 onward.

Happens mostly when a machine wakes from sleep or after waking up from sleep the next day. CalDAV caching issue?

I tried this but couldn't reproduce on daily (using a google cal).
In the STR, are you editing the one occurrence, or all?

(In reply to Magnus Melin [:mkmelin] from comment #2)

I tried this but couldn't reproduce on daily (using a google cal).
In the STR, are you editing the one occurrence, or all?

Either. Any event I'd set months ago and edit or an event I set the day before and edit.

Possibly related to bug 1765247?

Hi Arthur, a few questions:

  1. Are these events you created or invitations you saved via More > Save a Copy?
  2. If you created them, were they created via thunderbird or via the web interface of your provider?
  3. You said "repeating, future, etc." is this only happening with recurring events?
  4. If the event is not of a sensitive nature, are you able to share a copy?

Thanks.

(In reply to Lasana Murray from comment #5)

Hi Arthur, a few questions:

  1. Are these events you created or invitations you saved via More > Save a Copy?
    These are all events I created via TB.
  1. If you created them, were they created via thunderbird or via the web interface of your provider?
    TB.
  1. You said "repeating, future, etc." is this only happening with recurring events?
    It happens with both recurring events and one-off events.
  1. If the event is not of a sensitive nature, are you able to share a copy?
    Let me know how and I'll send you a couple: one-off and recurring

Additionally, if there's a way I can launch TB with "Insane Mode / God Mode" level of logging, please tell me how to do so as the data loss has killed some reminders (recurring and one-offs) that I've now lost and no longer remember what they are.

You can send an (In reply to Arthur K. [He/Him] from comment #6)

(In reply to Lasana Murray from comment #5)

Hi Arthur, a few questions:

  1. Are these events you created or invitations you saved via More > Save a Copy?
    These are all events I created via TB.
  1. If you created them, were they created via thunderbird or via the web interface of your provider?
    TB.
  1. You said "repeating, future, etc." is this only happening with recurring events?
    It happens with both recurring events and one-off events.
  1. If the event is not of a sensitive nature, are you able to share a copy?
    Let me know how and I'll send you a couple: one-off and recurring

On the event; Right click > Copy then paste into into a text file. You can send me an email at lasana at thunderbird.net or attach here if you prefer.

(In reply to Arthur K. [He/Him] from comment #7)

Additionally, if there's a way I can launch TB with "Insane Mode / God Mode" level of logging, please tell me how to do so as the data loss has killed some reminders (recurring and one-offs) that I've now lost and no longer remember what they are.

There are prefs in the config editor you can set calendar.baseview.loglevel, calendar.debug.log and calendar.debug.log.verbose

(In reply to Lasana Murray from comment #9)

(In reply to Arthur K. [He/Him] from comment #7)

Additionally, if there's a way I can launch TB with "Insane Mode / God Mode" level of logging, please tell me how to do so as the data loss has killed some reminders (recurring and one-offs) that I've now lost and no longer remember what they are.

There are prefs in the config editor you can set calendar.baseview.loglevel, calendar.debug.log and calendar.debug.log.verbose

Perfect. And where does the output go so I can attach to this bug if needed?

(In reply to Lasana Murray from comment #9)

(In reply to Arthur K. [He/Him] from comment #7)

Additionally, if there's a way I can launch TB with "Insane Mode / God Mode" level of logging, please tell me how to do so as the data loss has killed some reminders (recurring and one-offs) that I've now lost and no longer remember what they are.

There are prefs in the config editor you can set calendar.baseview.loglevel, calendar.debug.log and calendar.debug.log.verbose

The default for calendar.baseview.loglevel is Warn. What do I change it to for logging? I googled but can't find any settings for this one.

...
The default for calendar.baseview.loglevel is Warn. What do I change it to for logging? I googled but can't find any settings for this one.
You can change it to "Debug" to see more output. Output appears in the console.

Done. If anything is likely to happen it'll be when my machine wakes up tomorrow morning.

Not much new to add here. Much of the same output in error console as https://bugzilla.mozilla.org/show_bug.cgi?id=1752307#c14

Lasana,

On my office PC, all I saw was:

9:13:26.682 TypeError: foundItem is nullCalDavCalendar.jsm:1040:24

Here's something interesting though. When the event reminder window popped up, it did have 3 instances of two separate events display and one reminder from yesterday. I dismissed all those events at home last night.

Instead of clicking on Dismiss or Snooze, I simply closed the event reminder window and shut down and restarted TB. After this, only one of the instances were showing up instead of 3. And one of the events that displayed a triplicate has disappeared. I'm sending you some logging info privately.

Product: Thunderbird → Calendar

This appears to be ok now as of TB 101 b1. I will keep an eye on it for a week and if nothing more happens, I will close as WFM.

Attached file error-console-output.txt (obsolete) —

Well, I spoke too soon. If I choose "Submit My Changes Anyway", the event gets updated. If I choose "Discard My Changes And Reload", it will still delete the event.

But it now appears that after doing a "Submit My Changes Anyway" just once, it will update the event and no longer present a choice of "Submit My Changes Anyway" / "Discard My Changes And Reload." That's the behavior I've always seen.

So it now seems that (1) once you've edited and event and (2) clicked "Submit My Changes Anyway", whatever was previously "wrong" with the event per TB's purview, it seems to be ok afterward.

This does still seem to leave some landmines per se if they've been touched by TB 100 and not yet remedied with 101. I also attached a log when it happened.

Only thing Error Console showed was

CalDavRequest.jsm:126
06:08:29.367
PUThttps://apidata.googleusercontent.com/caldav/v2/<removed>/events/91cfe21e-85b0-409b-8be3-2c1f1c54c399.ics [HTTP/3 412 Precondition Failed 228ms]

Attachment #9274951 - Attachment is obsolete: true

So last night I had created 5 events via my Android's Calendar app and set them to fire off at 9AM CST. TB 101 did not even pickup these newly created events even after doing a CTRL-Shift-C > Synchronize. To TB, they are not present. But my Android's calendar app sees them. Logging into my GMail account's Web UI Calendar app also shows them as being there.

Should I open a new bug for this or do you think it's related to this bug?

(In reply to Arthur K. [He/Him] from comment #19)

So last night I had created 5 events via my Android's Calendar app and set them to fire off at 9AM CST. TB 101 did not even pickup these newly created events even after doing a CTRL-Shift-C > Synchronize. To TB, they are not present. But my Android's calendar app sees them. Logging into my GMail account's Web UI Calendar app also shows them as being there.

Should I open a new bug for this or do you think it's related to this bug?

Did you have "Offline Support" checked at the time? If you experience it again or can reproduce then sure, please file a separate bug.

(In reply to Lasana Murray from comment #20)

(In reply to Arthur K. [He/Him] from comment #19)

So last night I had created 5 events via my Android's Calendar app and set them to fire off at 9AM CST. TB 101 did not even pickup these newly created events even after doing a CTRL-Shift-C > Synchronize. To TB, they are not present. But my Android's calendar app sees them. Logging into my GMail account's Web UI Calendar app also shows them as being there.

Should I open a new bug for this or do you think it's related to this bug?

Did you have "Offline Support" checked at the time? If you experience it again or can reproduce then sure, please file a separate bug.

Where do I check for that setting?

(In reply to Lasana Murray from comment #20)

Did you have "Offline Support" checked at the time? If you experience it again or can reproduce then sure, please file a separate bug.

Ok, I found the setting and yes, it's enabled.

Created bug 1768207.

(In reply to Lasana Murray from comment #20)

Did you have "Offline Support" checked at the time? If you experience it again or can reproduce then sure, please file a separate bug.

Ok, there might be something related to the Offline Support setting and this issue along with bug 1768207.

Turning off "Offline Support" and then doing a Sync threw a LOT of new errors:

10:19:58.578 This page is in Quirks Mode. Page layout may be impacted. For Standards Mode use “<!DOCTYPE html>”. 3 calItemBase.js:431:30

10:19:58.597 Calendar: Parsing failed for parts of the item (while this is considered to be a minor issue, we continue processing the item): CalIcsParser.jsm:159

It gets weirder and weirder. After disabling Offline Support and doing a Synchronize action from the ctrl-shift-C / Calendar tab, something funny happened. Two event reminders from April went off. But this is the weird part: I clicked Dismiss on just one event and both events were dismissed. I did not click Dismiss All.

I captured that output in the attached log.

Re-enabling Offline Support and doing and Synchronize action from the ctrl-shift-C / Calendar tab made those two dismissed events pop up again. Once again, I clicked Dismiss on just one event and both events were dismissed. I did not click Dismiss All.

Currently on 109.0b3. This hasn't happened for me since at least 106b so I'm closing as WFM.

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: