mikedamage / hayfever-chrome

An extension for Google Chrome that lets you manage your Harvest timers
http://mikedamage.github.com/hayfever-chrome
GNU General Public License v2.0
22 stars 10 forks source link

Harvest Logout - In Browser #19

Closed chriscarr closed 13 years ago

chriscarr commented 13 years ago

Since installing the extension, I am logged out of my in browser session every time I use Hayfever. Since I need to visit the full site multiple times a day it is inconvenient to have to log back in each time.

Small complaint compared to my love for the extension, thank you for all your hard work!

mikedamage commented 13 years ago

Thanks for the love, and for the bug report! I'll check this out ASAP; we definitely can't have Hayfever booting people out of their Harvest sessions.

What OS and version of Chrome are you using? Also, if anyone else is having this problem, please chime in w/ same info!

chriscarr commented 13 years ago

Windows 7 Enterprise x64 SP1, Chrome 10.0.648.205 (Newest)

I can do some more testing if this isn't something you have come across yet.

chriscarr commented 13 years ago

Little more info, this only happens when I:

Does not happen when:

I am logging in with username/password (not google apps) and the remember me on this computer checkbox is checked.

mikedamage commented 13 years ago

Thanks for the extra details. I've confirmed that this is also a problem on OS X. It shouldn't be, since Hayfever isn't aware of your authenticated sessions on Harvest (it uses HTTP Basic Authentication).

Some possible explanations off the top of my head:

  1. Harvest logs us out on their end if we edit or create a timer via the API. (Doubtful, since this is something they'd probably have fixed when they released their widget. I'll test this in the desktop widget to see if it causes the same problems.)
  2. Hayfever messes with the cookies storing your Harvest browser session. (Scary, since it shouldn't have access to those cookies. I need to check the Chrome developer docs to see if this is even possible.)

I don't know where the side effects coming from yet, but I've got a few good leads to check. I'll keep you posted.

mikedamage commented 13 years ago

Ok, so neither of those things are happening. Tested the widget, and it does not cause logout in browser session. That rules out a server-side issue on Harvest. Also tested Hayfever itself to see if it was using any of Harvest's cookies. Negative. For the moment, I'm stumped.

I'm making this a high priority for the next bugfix release. Sorry I can't be of more help right now.

chriscarr commented 13 years ago

Just wanted to say thanks again for your work, really appreciate what you have done and your attention to bugfixes and updates. Let me know if there is anything on my end I can do to help your test. Thanks!

(unrelated note, that "Comment and Close" button is too close to the "Comment" button, lol)

mikedamage commented 13 years ago

Thanks for participating in the process! I'm still pretty psyched that people are using something I built. I'll definitely let you know when I figure out a solution. I'll probably need help testing it.

mikedamage commented 13 years ago

Update on this Issue

I did a little diagnostic test to make sure the problem isn't endemic to Hayfever by logging into Harvest, opening up the JavaScript console, and running an AJAX request to update one of my timers. Same thing happened. I was kicked out and had to log back in. Ditto when I tried it in Firefox.

That means the problem is either: A.) on Harvest's end, or B.) a side effect of Harvest and jQuery's AJAX interface not playing well together. I've got a ticket in with Harvest support and I'm waiting to hear back from one of their developers.

mikedamage commented 13 years ago

Spoke with a very helpful Harvest developer by the name of Barry. He said that he might know what's causing the problem on their end, and he'll take a look at it this coming week. Yet another reason why I love Harvest.

mikedamage commented 13 years ago

So Harvest found the source of the problem - it was on their end. They just pushed a fix, and I've verified that Hayfever no longer logs you out of the Harvest web interface.

chriscarr commented 13 years ago

Great! Appears to be working swell now. Thanks again!