GithubHelp home page GithubHelp logo

Shared folders not synced about grive2 HOT 11 CLOSED

vitalif avatar vitalif commented on June 2, 2024
Shared folders not synced

from grive2.

Comments (11)

vitalif avatar vitalif commented on June 2, 2024

Grive is using 'me' in readers search condition to list syncable resources. The idea was exactly to allow syncing of shared files/directories...
So, we must find an appropriate search condition to sync "My Drive"...
The documentation is here https://developers.google.com/drive/web/search-parameters
There is a "sharedWithMe" condition - can you test it here, will it show your company files? https://developers.google.com/drive/v2/reference/files/list (there is an "api tester" in the end of the page - just enter "sharedWithMe" into "q" field and click execute)

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

I have some files that are shared with me and they are shown by entering into https://developers.google.com/drive/v2/reference/files/list sharedWithMe but they are not synced by grive2. These files are stored under a subdirectory.

from grive2.

vitalif avatar vitalif commented on June 2, 2024

Is there something I can add to "my drive" like that? Maybe you can create a public folder and I'll try to add to "my drive" and debug the sync with grive?

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

I have created a public empty folder in my drive for testing:
https://drive.google.com/folderview?id=0B3Hv-zV2q5IcQ05uMnA4RVM0UzA&usp=sharing
I can sync my own folder using grive2 but not the ones that have been shared with me. When I type grive2 -s I can see my shared folders in google drive but they are not downloaded.

from grive2.

vitalif avatar vitalif commented on June 2, 2024

ok, now please add a file there...

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

I have uploaded a file to the folder now.

from grive2.

vitalif avatar vitalif commented on June 2, 2024

Hm... I suspect that "me in readers" condition is not needed at all. I've removed it in the master branch, this allowed grive to download your file. Please update and try if everything is ok now.

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

I have compiled the code with this patch and the unauthorized error when I sync is:

Failed to refresh auth token: HTTP 401, body: {
  "error" : "unauthorized_client"
}

and when I input the new code for authentication:

exception: /home/miguel/Source/grive2/libgrive/src/protocol/OAuth2.cc(116): Throw in function void gr::OAuth2::Refresh()
Dynamic exception type: boost::exception_detail::clone_impl<gr::OAuth2::AuthFailed>
[gr::expt::BacktraceTag*] = #0 0x545c20 :0 gr::Exception::Exception()
#1 0x529261 :0 gr::OAuth2::AuthFailed::AuthFailed()
#2 0x528ee0 :0 gr::OAuth2::Refresh()
#3 0x527d08 :0 gr::OAuth2::OAuth2(gr::http::Agent*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
#4 0x4e1e5d :0 Main(int, char**)
#5 0x4e252f :0 main
#6 0x7fbe94e6f610 /usr/lib/libc.so.6 __libc_start_main
#7 0x4e0bf9 :0 _start

from grive2.

vitalif avatar vitalif commented on June 2, 2024

O_o I don't think the change could have caused such error...

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

I went from v0.3 to the master branch, the error is not related with this ticket.

from grive2.

migueldvb avatar migueldvb commented on June 2, 2024

The change in 9841635 fixed the issue for me. Thank you!

from grive2.

Related Issues (20)

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.