jschwab923 / google-api-objectivec-client

Automatically exported from code.google.com/p/google-api-objectivec-client
0 stars 0 forks source link

Crash on refuse Oauth permission #30

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open Drive sample application
2. Fill ClientID and ClientSecret
3. Sign in by typing your user and password
4. When the user should accept to give Google Drive permission to the client 
refuse it by clicking: "No thanks"

What is the expected output? What do you see instead?

The application close the login dialog and then show me the log message: 
"Error Domain=com.google.GTMOAuth2 Code=-1001 "The operation couldn’t be 
completed. (com.google.GTMOAuth2 error -1001.)" UserInfo=0x1028c3c90 
{error=access_denied}"

Meanwhile the application has crashed. 

What version of the product are you using? On what operating system?
I'm using r296 version (head version while writing this message) and Mac OS X 
10.8. While some users of my application reported the same problem under Mac OS 
X 10.7.X.

Please provide any additional information below.
I have attached a stack trace.

Original issue reported on code.google.com by p...@archyapp.com on 8 Apr 2013 at 4:37

Attachments:

GoogleCodeExporter commented 9 years ago
destroyWindow should stop the webview from loading

Original comment by grobb...@google.com on 9 Apr 2013 at 1:57

GoogleCodeExporter commented 9 years ago
Fixed in gtm-oauth2; please update your sources.

https://code.google.com/p/gtm-oauth2/source/detail?r=108

Thank you for pointing out the issue.

Original comment by grobb...@google.com on 9 Apr 2013 at 9:17

GoogleCodeExporter commented 9 years ago
Incidentally, updating the google-api-objectivec-client sources with "svn 
update" should pull down the revised OAuth 2 sources as well.

Original comment by grobb...@google.com on 9 Apr 2013 at 9:40

GoogleCodeExporter commented 9 years ago
I have tested it and now it works

Original comment by p...@archyapp.com on 10 Apr 2013 at 8:48

GoogleCodeExporter commented 9 years ago
I am also !
Error " Error Domain=com.google.GTMOAuth2 Code=-1001 "The operation couldn’t 
be completed. (com.google.GTMOAuth2 error -1001.)" UserInfo=0x7564c60 
{request=<NSMutableURLRequest 
https://www.googleapis.com/rpc?prettyPrint=false>} "
How fix?

Original comment by nguyendi...@gmail.com on 24 Oct 2013 at 2:17