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 538019 - Preferences window opens automatically
Preferences window opens automatically
Status: RESOLVED FIXED
Product: Tasque
Classification: Other
Component: General
0.1.x
Other All
: Normal minor
: ---
Assigned To: tasque-maint
tasque-maint
Depends on:
Blocks:
 
 
Reported: 2008-06-12 16:42 UTC by Joseph Method
Modified: 2008-09-21 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Handles different kinds of exceptions during authentication differently (1.25 KB, patch)
2008-06-12 22:17 UTC, Joseph Method
none Details | Review
Addresses 1) and 2) above (2.24 KB, patch)
2008-06-13 00:56 UTC, Joseph Method
none Details | Review
Addresses 1) and 2) above (2.24 KB, patch)
2008-06-13 00:58 UTC, Joseph Method
none Details | Review
Patch updated for SVN (1.96 KB, patch)
2008-08-22 03:27 UTC, Andrew Conkling
committed Details | Review

Description Joseph Method 2008-06-12 16:42:56 UTC
Please describe the problem:
The preferences window opens when you start tasque. It should open the first time when you're setting the backend, but not afterward. This might be because when tasque opens on system startup, there might not be internet yet, so it tries the backend and fails.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Joseph Method 2008-06-12 16:50:51 UTC
Okay, I had lost the connection to RTM somehow. After authenticating it didn't bring up the preferences window. Need to restart and see if it clears the authentication when it can't find internet.
Comment 2 Joseph Method 2008-06-12 18:35:22 UTC
Yeah, if you add tasque to startup, then restart and it's slow to acquire internet (e.g., wireless), then it will lose its authentication with RTM.
Comment 3 Joseph Method 2008-06-12 22:16:26 UTC
Here are the pieces of the problem:

1) If there is an exception while authenticating with RTM, it throws away the credentials.
2) Application only attempts to initialize the backend once, then gives up, so lack of Internet will cause 1).

Submitting patch for 1).
Comment 4 Joseph Method 2008-06-12 22:17:47 UTC
Created attachment 112644 [details] [review]
Handles different kinds of exceptions during authentication differently
Comment 5 Joseph Method 2008-06-13 00:56:50 UTC
Created attachment 112648 [details] [review]
Addresses 1) and 2) above
Comment 6 Joseph Method 2008-06-13 00:58:34 UTC
Created attachment 112649 [details] [review]
Addresses 1) and 2) above
Comment 7 Joseph Method 2008-06-13 01:03:05 UTC
Okay, this patch does 1) and 2). It makes the decision that the preferences window won't open automatically in the case where there's a valid backend but it's not authenticating yet.
Comment 8 Andrew Conkling 2008-08-22 03:27:05 UTC
Created attachment 117171 [details] [review]
Patch updated for SVN

Updated patch for SVN; on first run (with my RTM association already lost) it hides the Tasque window; I'll test it further.
Comment 9 Andrew Conkling 2008-08-29 02:14:23 UTC
Having tested this for a week, this patch has worked well for me. I can see it happen: Tasque starts before it can connect to my tasks, fails, but tries again in a few seconds and succeeds.

(Also, bumping severity; this is definitely not trivial. :)
Comment 10 Sandy Armstrong 2008-09-17 18:20:10 UTC
Andrew, do you have GNOME SVN access?  Feel free to commit.
Comment 11 Andrew Conkling 2008-09-17 18:36:03 UTC
(In reply to comment #10)
> Andrew, do you have GNOME SVN access?  Feel free to commit.

I do not, but if you think I should, feel free to email me.
Comment 12 Sandy Armstrong 2008-09-21 14:10:10 UTC
Committed in r104.  Thanks Joseph and Andrew, and sorry for the delay in getting this in.