Code Monkey home page Code Monkey logo

google-drive-sdk-samples's People

Contributors

alainv avatar aliafshar avatar nicolasgarnier avatar sqrrrl avatar

google-drive-sdk-samples's Issues

.net version has a refresh problem in IE9

What steps will reproduce the problem?
1. Set user Credentials 
2. Run the application from visual studio.
3. Open the application in IE 9 (I use windows 7)
4. Authenticate the user;
5. After authentication is successful the first page is continually refreshing.
the:
    public class userController : Controller
    {
        //
        // GET: /user

        public JsonResult user()
 ... 

is always called.

What is the expected output? What do you see instead?
The form should call this method once.

What version of the product are you using? On what operating system?
I donloaded the .zip files. I use the .net version of the sample.

Please provide any additional information below.

In google Chrome this issue is not reproducible.


Original issue reported on code.google.com by [email protected] on 28 Dec 2012 at 10:48

Python lib, MediaFileUpload of HTML encoded in UTF-8 - fails with non-ASCII characters

What steps will reproduce the problem?
1. Attempt to create online Doc file by converting from HTML
2. Works perfectly with ASCII characters
3. Try a non-ASCII character, in a file stored as UTF-8 with no BOM, and it 
dies. There seems to be no parameter to specify the file file encoding, nor it 
is properly intuited.

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

Expect a new Doc file to be created. Instead, I get the following traceback:

Traceback (most recent call last):
  File "d:\my\py\ckwort.py", line 949, in <module>
    rids, worker_documents = analyze( meta, gd )
  File "d:\my\py\ckwort.py", line 812, in analyze
    gd.mkdir( **iy )
  File "d:\my\py\ckwort.py", line 205, in mkdir
    self.create( **( kw['subop']))
  File "d:\my\py\ckwort.py", line 282, in create
    media_body=kw['media_body'],
  File "D:\my\py\gdrive2\oauth2client\util.py", line 120, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "D:\my\py\gdrive2\apiclient\http.py", line 676, in execute
    headers=self.headers)
  File "D:\my\py\gdrive2\oauth2client\util.py", line 120, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "D:\my\py\gdrive2\oauth2client\client.py", line 420, in new_request
    redirections, connection_type)
  File "D:\my\py\gdrive2\httplib2\__init__.py", line 1597, in request
    (response, content) = self._request(conn, authority, uri, request_uri, method, body, headers, redirections, cachekey)
  File "D:\my\py\gdrive2\httplib2\__init__.py", line 1345, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "D:\my\py\gdrive2\httplib2\__init__.py", line 1282, in _conn_request
    conn.request(method, request_uri, body, headers)
  File "C:\Python27\lib\httplib.py", line 958, in request
    self._send_request(method, url, body, headers)
  File "C:\Python27\lib\httplib.py", line 992, in _send_request
    self.endheaders(body)
  File "C:\Python27\lib\httplib.py", line 954, in endheaders
    self._send_output(message_body)
  File "C:\Python27\lib\httplib.py", line 812, in _send_output
    msg += message_body
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 370: 
ordinal not in range(128)

I don't find any parameter to use to specify what file encoding should be used 
by MediaFileUpload (My files are using UTF-8). Am I missing something?

Later: It occurred to me to try adding

<meta content="text/html; charset=utf-8" http-equiv="Content-Type">

to each source file. Didn't hurt the ASCII ones, but didn't help those 
containing non-ASCII UTF-8 characters.

Later still: I've worked around the problem for now by using HTML entities 
(ASCII character sequences that represent Unicode characters) for all 
characters whose ordinal is greater than 127. But this shouldn't need to be.

What version of the product are you using? On what operating system?

Windows 7, not sure how to find the version on the Python library: tell me 
where it is, and I'll tell what it is. Probably I knew when I downloaded it, 
but can't find it in the installed version.


Please provide any additional information below.


Is there a Python 3 version of the library yet? I'd be glad to try the latest 
version of it...

Original issue reported on code.google.com by [email protected] on 21 Oct 2013 at 7:15

can't compile .net example

in the file Utils.cs line 125 - 127

Oauth2Service doesn't seem to have a constructor which takes IAuthenticator as 
parameter... only a Initializer

What to do?

Original issue reported on code.google.com by [email protected] on 9 Apr 2013 at 3:52

Downloading a copy of the sample application requires 'hg'

What steps will reproduce the problem?
1. Attempt to download drive sdk sample app for ios
2. choose between creating a clone or pasting in a command line
3. paste in line, get 'hg: Command not found.'
4. we need to install mercurial or some other crap just to DL a project? Really?

What is the expected output? What do you see instead?
A zip or tarball of the project is hoped for, errors are the result. It is 
either extremely ironic that google provides this as a web interface to modern 
software, or oafishly anticompetitive.

What version of the product are you using? On what operating system?
Trying to get example code with Safari on the latest OSX

Please provide any additional information below.
I thought this was supposed to provide an alternative to dropbox...

Original issue reported on code.google.com by [email protected] on 2 Mar 2013 at 1:46

Maven version of Java code sample

I cloned and checked-in a maven version of the Java code sample.
https://code.google.com/r/hrovira-mavenized-google-drive-sdk-samples/

Sorry if this is not the really an issue.

Original issue reported on code.google.com by [email protected] on 9 Jul 2012 at 10:07

(Android) App closes itself on saving the document

What steps will reproduce the problem?
1. Start the app on a device with a google account set
2. Create a new note. Type anything
3. Either after a given time or when you press Save, the app closes itself. If 
reopen, the note is there, but not on Drive.

I found this warning on the logcat
01-22 12:36:11.490: W/ContentResolver(3174): Failed to get type for: 
content://com.google.provider.NotePad/<my_gmail_account>/notes/-9223372036854775
808 (Unknown URI 
content://com.google.provider.NotePad/<my_gmail_account>/notes/-9223372036854775
808)


What version of the product are you using? On what operating system?
Just cloned it today

Original issue reported on code.google.com by [email protected] on 22 Jan 2013 at 12:03

(Android) App closes itself when selecting the google account

What steps will reproduce the problem?
1. Install the app to a device with google accounts (at least 1) set
2. First activity will be Preferences. Press on your google account
3. App closes itself

I find the following on Logcat
Don't know if it's related, but I also find this error 
01-22 12:36:03.380: E/Preferences(3174): SELECTED ACCOUNT WITH EXTRA: 
<my_gmail_account>


What version of the product are you using? On what operating system?
just cloned today

Original issue reported on code.google.com by [email protected] on 22 Jan 2013 at 12:04

Python example doesn't grab refresh token

What steps will reproduce the problem?
1. Run python Sample
2. Don't reauth for a while
3. Try to save or open a drive file

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

I expect to be able to save, instead this error is returned:

HttpError: <HttpError 401 when requesting 
https://www.googleapis.com/oauth2/v2/userinfo?alt=json returned "Invalid 
Credentials">

What version of the product are you using? On what operating system?

OS X Lion, Python 2.7

Please provide any additional information below.

The problem is that on line 993 of lib/oauth2client/client.py, the default 
params do not contain 'approval_prompt': 'force'. Without this, the refresh 
token is never returned and the app times out quickly.

Original issue reported on code.google.com by [email protected] on 20 Jul 2012 at 7:42

drEdit Issue

When i am using the sample code for iOS, In Table view List it's Only 
Retrieving the Files that I had created.

I Want To see All Files i m creating through App and already created on Google 
Drive.

Where should i change?

I am also suffering with same issue and even i am not able to open panel to 
upload file.

Original issue reported on code.google.com by [email protected] on 7 Jun 2013 at 1:22

hddownloader

What steps will reproduce the problem?
1.
2.
3.

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


What version of the product are you using? On what operating system?


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 4 Sep 2012 at 3:57

iOS Objective C SDK Error

An error occurred: Error Domain=com.google.GTLJSONRPCErrorDomain Code=403 "The 
operation couldn’t be completed. (Access Not Configured)" UserInfo=0x91300f0 
{error=Access Not Configured, GTLStructuredError=GTLErrorObject 0x9166240: 
{message:"Access Not Configured" code:403 data:[1]}, 
NSLocalizedFailureReason=(Access Not Configured)}



Original issue reported on code.google.com by [email protected] on 22 Mar 2013 at 5:27

DrEdit Java not working

What steps will reproduce the problem?
1. Done Everything as stated in the Setting Up Instructions page
2. I have every latest SDK installed

After uploading and running the example on appspot, I am asked to allow access 
to the App.
After I accept it, I am redirected to this URL 
https://driveexample.appspot.com/oauth2callback?code=4/p_Spcvd4ulncp2NMuOmfOo7Sw
rZ5.Uild629A4i0agrKXntQAax0-ZdhfeQI

and the page displays 
"Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this error 
message and the query that caused it."

I have tried mapping the /oauth2call to every servlet in the project, but for 
no success.
Checked the logs. It shows Error for /oauth2callback
java.lang.NoSuchMethodError: 
com.google.api.services.oauth2.Oauth2$Userinfo$Get.execute()Ljava/lang/Object;
    at com.google.drive.samples.dredit.CredentialMediator.getUserInfo(CredentialMediator.java:204)
    at com.google.drive.samples.dredit.CredentialMediator.getActiveCredential(CredentialMediator.java:288)
    at com.google.drive.samples.dredit.DrEditServlet.getCredentialMediator(DrEditServlet.java:92)
    at com.google.drive.samples.dredit.DrEditServlet.getClientId(DrEditServlet.java:137)
    at com.google.drive.samples.dredit.StartPageServlet.doGet(StartPageServlet.java:43)

More details in image

Original issue reported on code.google.com by [email protected] on 6 Feb 2013 at 2:54

Attachments:

Patch for /php/check_config.php

Correction of the condition of verification of OAuth. Using the strpos function 
with empty 2nd parameter was generating error:

Warning: strpos () [function.strpos]: Empty delimiter in 
D:\xampp\htdocs\estudos\google\google-drive-sdk\google-drive-sdk-samples-49d3811
82e62\php\check_config.php on line 85

Original issue reported on code.google.com by [email protected] on 18 Jan 2013 at 6:30

Attachments:

Whether implemented in php example, the function "Share file"?

I wish to to feature a "Share File", which would return a reference to the file.
Will there be implement this functionality?
Just would like to see when you click on a link received the server immediately 
gave the file, without any intermediate pages. The server should also be given 
the correct application type file.

Original issue reported on code.google.com by [email protected] on 27 Apr 2012 at 11:33

Cannot replicate DrEdit example

What steps will reproduce the problem?
1. https://riseapppdf.appspot.com 
2. While i debug the code I get NoRefreshTokenFound excetption everytime I 
debug at CredentialMediator.java/getActiveCredentials method 
Line: String userId =(String)request.getSession().getAttribute(USER_ID_KEY);
3.

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


What version of the product are you using? On what operating system?
Appengine 1.7.1
Eclipse Indigo (3.7)
Windows 7 OS

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 24 Sep 2012 at 12:38

DrEdit Java example doesn't work?

If I use the DrEdit Java sample code as is, I never get redirected to the OAuth 
flow.  I think the issue is in CredentialMediator.getActiveCredential(); this 
line:

      if (credential != null && credential.getRefreshToken() == null) {

should actually be this:

      if (credential == null || credential.getRefreshToken() == null) {

Original issue reported on code.google.com by [email protected] on 25 Apr 2012 at 7:44

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.