After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 340783 - publishing does not show errors nor success
publishing does not show errors nor success
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.8.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
Evolution QA team
: 261836 392291 (view as bug list)
Depends on:
Blocks: 502515
 
 
Reported: 2006-05-05 22:00 UTC by David Trowbridge
Modified: 2013-09-10 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add EError to publishing plugin (8.93 KB, patch)
2006-05-05 22:01 UTC, David Trowbridge
none Details | Review
patch (8.62 KB, patch)
2006-06-20 08:46 UTC, David Trowbridge
none Details | Review
new version (8.68 KB, patch)
2006-07-08 18:05 UTC, David Trowbridge
needs-work Details | Review
20060731 (9.55 KB, patch)
2006-07-31 12:26 UTC, David Trowbridge
reviewed Details | Review
proposed evo patch (18.47 KB, patch)
2009-03-04 22:43 UTC, Milan Crha
committed Details | Review

Description David Trowbridge 2006-05-05 22:00:17 UTC
Patch that got lost on the list.
Comment 1 David Trowbridge 2006-05-05 22:01:15 UTC
Created attachment 64888 [details] [review]
add EError to publishing plugin
Comment 2 Chenthill P 2006-05-06 05:24:11 UTC
It was not lost, i am looking into. It introduces some string changes it can be taken only for 2.8. I will review it asap.
Comment 3 Chenthill P 2006-05-09 11:10:10 UTC
The e_error_run will not display any error message, as the tag passed is not in the form domain:error-id. The ":" is missing in all the e_error_run functions.

Calling e_error in a thread causes a, 
 Xlib: unexpected async reply (sequence 0xb1e4)!. Probably e_error_new could be used.

e_cal_get_freebusy will fail for exchange and groupwise calendars as the list of users is not passed. The cal_address of the selected calendar should be passed in the user_list. The email address of the default account could be used when the cal_address is not available. The errors when the functions fails must be handled.

The error message "Couldn't create the uri {0}" can be "Could not the uri {0}". It  lacks a secondary error message.

In the function publish () [publish-calendar.c:82], the null check for the vfs_uri should be present after gnome_vfs_uri_new ().

Please include the ChangeLog with the patch.

Comment 4 Chenthill P 2006-06-20 07:20:15 UTC
*** Bug 261836 has been marked as a duplicate of this bug. ***
Comment 5 David Trowbridge 2006-06-20 08:35:44 UTC
I'm not sure what you mean by:
The error message "Couldn't create the uri {0}" can be "Could not the uri {0}".

Can you clarify?
Comment 6 David Trowbridge 2006-06-20 08:46:45 UTC
Created attachment 67680 [details] [review]
patch

This fixes all your comments except for the contents of the uri-creation error
Comment 7 Harish Krishnaswamy 2006-06-20 09:00:19 UTC
I guess Chen meant 

a) s/Couldn't/Could not/ and
b) It requires a secondary error message.
Comment 8 André Klapper 2006-07-08 13:59:15 UTC
chen: *poke*!
can we please get this reviewed within the next two weeks?
Comment 9 David Trowbridge 2006-07-08 18:05:19 UTC
Created attachment 68631 [details] [review]
new version

New version with error.xml problems fixed.
Comment 10 Chenthill P 2006-07-16 19:08:38 UTC
This patch will not popup a error message as the widget returned by e_error_new is not shown at all. The contents of the groupwise calendar is getting published now.

Another issue which i found while reviewing is in
publish-calendar.c, function publish ():84
if (vfs_uri == NULL) {
}
The password variable should not be freed in this block.

Was this patch tested ?
Comment 11 André Klapper 2006-07-18 11:35:20 UTC
david: ping
Comment 12 David Trowbridge 2006-07-31 12:26:42 UTC
Created attachment 69963 [details] [review]
20060731

Fixes the list of issues
Comment 13 André Klapper 2006-08-12 13:12:53 UTC
hmm. punting, this cannot go into 2.8 anymore as it would break string and UI freeze now.
anyway, chen, a patch review and a "commit-after-freeze" status would be of course welcome. :-)
Comment 14 André Klapper 2006-08-21 19:22:26 UTC
2.9 target. definitely.
Comment 15 Chenthill P 2006-11-06 06:15:13 UTC
Xlib: unexpected async reply (sequence 0x6975)!

Am still getting the hang. The error dialog comes up properly for the first time.  Evolution hangs when it comes for the second time with the above message on the console. 

Comment 16 David Trowbridge 2007-04-09 02:40:02 UTC
Hmm.  This sounds like a thread problem.  I'll update the patch to HEAD and try to reproduce.
Comment 17 André Klapper 2007-12-09 00:38:40 UTC
any news here?
Comment 18 Matthew Barnes 2008-03-11 00:27:41 UTC
Bumping version to a stable release.
Comment 19 Milan Crha 2009-03-04 20:44:10 UTC
*** Bug 392291 has been marked as a duplicate of this bug. ***
Comment 20 Milan Crha 2009-03-04 20:45:16 UTC
Requested to show also a success of an operation.
Comment 21 Milan Crha 2009-03-04 22:43:29 UTC
Created attachment 130076 [details] [review]
proposed evo patch

for evolution;

Show success only when explicitly called by menu Actions->Publish..., otherwise shows only error messages, if any.
Comment 22 Chenthill P 2009-03-13 10:04:18 UTC
The patch looks good. Just one small concern,
Will the UI hang if the error_queue_show_idle thread gets locked ?

If thats not the case the patch can be committed after the freeze.
Comment 23 Milan Crha 2009-03-13 12:03:22 UTC
(In reply to comment #22)
> Will the UI hang if the error_queue_show_idle thread gets locked ?

It's locked for time of extracting messages from a queue only, but the lock is released (g_static_mutex_unlock (&error_queue_lock);) before the extracted messages are shown to a user (e_notice call), thus should be fine.

I'm thinking of some improvements of this approach, moving the rutines to e-util or somewhere, and let each component to register for listening to these queues, with some distinguishment on "domain" basis, so some messages could be shown in a status bar only, not bothering user with a dialog. Though that's a question of the next step, improvement, not this particular bug. (I'm just thinking aloud.)
Comment 24 Milan Crha 2009-04-07 15:25:26 UTC
chen, ping
Comment 25 Chenthill P 2009-04-16 03:22:38 UTC
Ok it shouldn be a problem. Please commit the patch to trunk as its branched now.
Comment 26 Milan Crha 2009-04-24 16:09:46 UTC
Created commit f171b15 in master.