Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1440835

Summary: Upon draft saving evolution opens redundant warning message
Product: Red Hat Enterprise Linux 7 Reporter: Michal Odehnal <modehnal>
Component: evolutionAssignee: Milan Crha <mcrha>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: bmilar, mbarnes, vbenes
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: evolution-3.22.6-7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 12:27:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Attachment 1 none

Description Michal Odehnal 2017-04-10 14:41:51 UTC
Created attachment 1270507 [details]
Attachment 1 [details]

Description of problem:
While composing new message in evolution, I enter some data, click Save Draft button, and try to quit the composer with my message saved. Unfortunately I am getting a window [attachment 1 [details]] which asks if I want to discard my message, even though I already saved it and it is now displayed behind the composer window (data: Today 16:31 is part of saved message as seen in attachment).

When I click Discard Changes, composer quits, but my message is saved, even though I clicked discard.

When I click Continue Editing it lets me back in the composer window. This works fine.

When I click Save Draft, it gets me back in composer window, but upon quitting this message pops up again even though I clicked Save Draft several times in a row.

Release number of selected component (if applicable):
evolution-3.22.6-4.el7.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Start evolution.
2. Click New.
3. Enter some data.
4. Click Save Draft button.
5. Exit composer.

Actual results:
Illogical warning pops up.

Expected results:
Composer closes and I am able to continue my actions.

Additional info:
While clicking several times on Discard Changes button (creating and saving new messages). I am able to save message with button and this warning is no longer displayed. Upon quitting evolution and starting new session. This problem is renewed.

Comment 2 Milan Crha 2017-04-10 16:51:31 UTC
Thanks for a bug report. It sounds like:
https://bugzilla.gnome.org/show_bug.cgi?id=775075

but that change is part of evolution 3.22.3. I'll check what failed this time.

Comment 3 Milan Crha 2017-04-10 18:14:53 UTC
(In reply to Milan Crha from comment #2)
> I'll check what failed this time.

Works for me with local Drafts folder. I'm afraid there failed to save the draft, or it had been stuck in the background for some reason. Do you store Draft messages locally (under On This Computer/Drafts) o r remotely? It's viewed in Properties of the mail account, Defaults tab.

Could you grab a backtrace of the evolution, to see whether it does something in the background, please? You can get the backtrace with command like this:
   $ gdb --batch --ex "t a a bt" -pid=`pidof evolution` &>bt.txt
Please check the bt.txt for any private information, like passwords, email address, server addresses,... I usually search for "pass" at least (quotes for clarity only).

Only make sure that you'll have installed debuginfo packages for glib2, evolution and evolution-data-server (not for its dependencies, these three are enough) of the same version as their binary packages. Thanks in advance.

Comment 5 Milan Crha 2017-04-13 13:28:24 UTC
With Michal's help we discovered the issue. Its callstack is below and the steps are:
a) open evolution
b) File->New->Mail message
c) a new composer window opens, with focus on the To entry
d) type some address, like: a
e) press Tab twice, thus you are in Subject now
f) type: aaa
g) press Shift+Tab twice, thus back in the To entry
f) press Escape

This opens the dialog to Discard/Continue editing/Save draft. Click Save Draft, which, well, saves the draft, but doesn't close the composer.

The callstack:

webkit_editor_set_changed: editor:0x506ed10 changed:0~>1
           at g_object_set_valist() at gobject.c:1425
           by g_object_set() at gobject.c:2277
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3419
           by g_signal_emit() at gsignal.c:3449
           by g_object_dispatch_properties_changed() at gobject.c:1063
           by g_object_notify() at gobject.c:1158
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3419
           by g_signal_emit_by_name() at gsignal.c:3487
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3419
           by g_signal_emit_by_name() at gsignal.c:3487
           by end_change() at gtkentry.c:2868
           by gtk_entry_set_text() at gtkentry.c:7641
           by user_focus_in() at e-name-selector-entry.c:2071
           by _gtk_marshal_BOOLEAN__BOXED() at gtkmarshalers.c:90
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3403
           by g_signal_emit() at gsignal.c:3449
           by gtk_widget_event_internal() at gtkwidget.c:7725
           by gtk_widget_send_focus_change() at gtkwidget.c:16154
           by do_focus_change() at gtkwindow.c:8207
           by gtk_window_real_set_focus() at gtkwindow.c:8510
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3419
           by g_signal_emit() at gsignal.c:3449
           by _gtk_entry_grab_focus() at gtkentry.c:4959
           by gtk_entry_grab_focus() at gtkentry.c:4977
           by _g_closure_invoke_va() at gclosure.c:290
           by g_signal_emit_valist() at gsignal.c:3140
           by g_signal_emit() at gsignal.c:3449
           by gtk_widget_grab_focus() at gtkwidget.c:8013
           by e_msg_composer_restore_focus_on_composer() at e-msg-composer.c:5326
           by g_closure_invoke() at gclosure.c:290
           by signal_emit_unlocked_R() at gsignal.c:3140
           by g_signal_emit_valist() at gsignal.c:3419
           by g_signal_emit() at gsignal.c:3449
           by g_object_dispatch_properties_changed() at gobject.c:1063
           by g_object_notify() at gobject.c:1158
           by weak_refs_notify() at gobject.c:2637
           by g_object_unref() at gobject.c:3149
           by activity_bar_timeout_data_free() at e-activity-bar.c:73
           by g_source_callback_unref() at gmain.c:1548

Comment 7 Bohdan Milar 2017-06-19 10:35:05 UTC
Tested manually on x86_64, ppc64le and aarch64 using evolution-3.22.6-10.el7

I used reproducer from C5. After Esc and "Save Draft", the composer window closed.

Comment 8 errata-xmlrpc 2017-08-01 12:27:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2066