Giter VIP home page Giter VIP logo

drive_bug's Introduction

drive_bug

Unit test case for reproducing drive bug described here:

http://stackoverflow.com/questions/18177759/serious-bug-the-last-revision-of-drive-revisions-list-doesnt-return-actual-dat

Setup:

  1. Install dependency libraries
  mkdir <test_directory>
  virtualenv .
  source ./bin/activate
  pip install -r requirements.txt
  1. Enable Drive in project in the Google API console and download client_secrets.json.

  2. Add http://localhost:8080/ to the allowed API redirect URLs in the API console

Running the script:

Run the script as

  python drive_bug.py

The script will product the following output:

Timestamp errors, where timestamps of revisions differ greatly from that of files.list ( this is a secondary error ) :

Timestamp error for <fileid> files.list=2013-10-31T19:22:59.835Z, revisions.list=2013-10-31T19:17:32.141Z delta=327

Content errors, where sometimes revisions.list returns links to content with bad data. This is the primary error.

The script will output md5 sums of content obtained through the two different methods, and here sometimes the content obtained through revisions differs.

Content error for <fileid> get=9fcad645e2cbf9906d493bf0eba754dc revisions=0948a876dafffcc17ed9b4395d3843a0
Saving files as files_list_<fileid>.xls and revisions_list_<fileid>.xls

drive_bug's People

Contributors

ayyar avatar

Watchers

 avatar  avatar  avatar  avatar

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.