2.1 Beta Second Attempt

36 views
Skip to first unread message

Paddy Foran

unread,
Jul 28, 2011, 8:38:45 PM7/28/11
to 2clou...@googlegroups.com
Hey everyone,

The second attempt at a 2.1 beta is available now. You can download it here: http://dl.dropbox.com/u/6777769/2cloud.apk

Changelog:
- Everything from last time
- I've re-introduced the OAuth login flow with a custom browser that we all hate so much, because it's more stable
- Much better error handling; rather than just saying "Well, darn, something broke", almost all the errors that the app catches are displayed to you
- Easy reporting; errors that have information associated with them that will be useful in debugging have a button in their error dialog to report the error to the developers. This populates an email for you with all sorts of fun information that will help pinpoint the error.

Sorry for the delay in getting this update to you. I would love to say that the new error handling was the cause of the delay, but really, I'm just getting burnt out. I can only stare at code for 12 hours a day for so long before I start losing any drive I had to open up Eclipse. So thanks for bearing with me.

As usual, put this through its paces. I'd love to hear about any errors you run into with it. You can even use the nifty new reporting mechanism :) I'll leave this beta open until I'm comfortable doing a full-scale release.

Thanks,
Paddy

Joseph Adams

unread,
Jul 29, 2011, 4:41:10 AM7/29/11
to 2clou...@googlegroups.com
Hi Paddy

I just downloaded and installed the APK and when it prompted me to set up an account and I press on the "Connect" button it errors and gives me the option to send an e-mail to you (which I did). Hope that helped.

Joseph
--
Joseph Adams

Paddy Foran

unread,
Jul 29, 2011, 5:20:38 AM7/29/11
to 2clou...@googlegroups.com

Hi Joseph,

Thanks for testing. Just checking, but are the date, time, and timezone on your phone correct? Also, is this a fresh install, or did you overwrite the last beta?

Thanks,
Paddy

Joseph Adams

unread,
Jul 29, 2011, 5:24:34 AM7/29/11
to 2clou...@googlegroups.com
Hi Paddy

The date is correct but the timezone was wrong it was 1 hour behind (so the time was too). Yes it is a fresh install since I did a hardware reset since the last install.

Paddy Foran

unread,
Jul 29, 2011, 5:27:29 AM7/29/11
to 2clou...@googlegroups.com
Joseph,

That would explain it. OAuth is a time-sensitive protocol, so the server thought you were trying to give it an authorization that was signed an hour ago and it rejected it for being stale. If you update the timezone (and update the time to be correct), you should have no issues.

Thanks,
Paddy

Joseph Adams

unread,
Jul 29, 2011, 5:28:42 AM7/29/11
to 2clou...@googlegroups.com
Thanks Paddy I'll try that right away!

Joseph Adams

unread,
Jul 29, 2011, 5:35:06 AM7/29/11
to 2clou...@googlegroups.com
Hi again

I have tried the correct time zone which actually displays the wrong time and I have tried different time zones too which display the correct time, but I still get the same error.

Paddy Foran

unread,
Jul 29, 2011, 5:43:11 AM7/29/11
to 2clou...@googlegroups.com
Hi Joseph,

Sorry, maybe I wasn't clear. You need the date, time, and timezone to *all* be correct. The problem is, OAuth has "expiring" request tokens-- if your token is too old or from the future, OAuth rejects it. So the UTC timestamp generated by your device needs to be comparable to the UTC timestamp generated on the server. Which means that if even one of the date/time/timezone trio is wrong, the UTC timestamp is going to be off.

You can find more information about timestamps (and the associated concept, "nonce"s) here: http://hueniverse.com/oauth/guide/security/

Thanks,
Paddy

Joseph Adams

unread,
Jul 29, 2011, 5:49:41 AM7/29/11
to 2clou...@googlegroups.com
Aha!

Ok I've got forward to the OAuth and have granted access. When Google tries to redirect me back I get a DNS error as with the 1. beta.

Hope that helped

Joseph

Paddy Foran

unread,
Jul 29, 2011, 5:54:33 AM7/29/11
to 2clou...@googlegroups.com
It should be redirecting you to http://2cloud.app/?abunchofquerystuffhere. Is that the URL that the error page is telling you is not found?

Thanks for testing, Joseph. You're the ideal beta tester-- the one that runs into all the issues. :) At least I know if I can make it work reliably for you, it's pretty stable. :P

Thanks,
Paddy

Joseph Adams

unread,
Jul 29, 2011, 5:58:37 AM7/29/11
to 2clou...@googlegroups.com
Well good question. I don't know the answer because I can't see the URL bar in the web view and our dns provider has his own page displayed with no info about the crashed/not reached page, but I guess it is redirected the correctly as in 1. beta the url and querystuff was alright. :P 

Paddy Foran

unread,
Jul 29, 2011, 7:32:04 AM7/29/11
to 2clou...@googlegroups.com
Alright, thanks to Joseph's tireless beta testing this morning, we've got a slightly-tweaked build. The URL above will get you the newest version-- here it is again: http://dl.dropbox.com/u/6777769/2cloud.apk

For those of you curious as to what's changed:
  • Bug reporting gives more information now (2cloud build number, Android version number, and phone model are now reported). Reports are always opt-in, and you can edit the email before you send it.
  • The auth flow has been tweaked to point to a domain that actually exists. Because some DNS providers have the wonderful habit of intercepting requests to domains that don't exist, which broke the OAuth flow.
  • A bug that would crash the app if you were in landscape mode has been fixed
Let me know how this newest build works out for you-- though after all Joseph's issues, I'd say we ironed out the vast majority of problem points.

Thanks for all the help. Especially Joseph.
Reply all
Reply to author
Forward
0 new messages