Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with "spaced file" #17

Closed
mmornati opened this issue May 10, 2012 · 10 comments
Closed

Problem with "spaced file" #17

mmornati opened this issue May 10, 2012 · 10 comments
Assignees
Labels

Comments

@mmornati
Copy link

Error downloading file with space in the name:

./grive
downloading ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc
terminate called after throwing an instance of 'std::runtime_error'
what(): cannot open file ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc for writing
Aborted (core dumped)

@match065
Copy link
Member

Thanks for reporting.

Which version are you using now? Is it the v0.0.4 or the latest code from git?

@mmornati
Copy link
Author

I downloaded the latest git code (branch master using https://github.com/match065/grive/tarball/master)

@match065
Copy link
Member

Can you please try again with the latest code? I committed something which may help.

@mmornati
Copy link
Author

No, always problem on files. Could be anything different than spacing?

./grive
HTTP POST "https://accounts.google.com/o/oauth2/token" with "refresh_token=xxx&client_id=xxx.apps.googleusercontent.com&client_secret=xxx&grant_type=refresh_token"
HTTP response 200
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=10&showroot=true"
HTTP response 200
can't find folder "." ("")
HTTP GET "https://docs.google.com/feeds/default/private/full?showfolders=true&showroot=true"
HTTP response 200
file "grive-0.0.4.x64.gz" parent doesn't exist, ignored
Downloading ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc
exception: Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: gr::http::Error
std::exception::what: cannot open file ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc for writing
[gr::expt::MsgTag*] = cannot open file ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc for writing

@match065
Copy link
Member

Added code to dump error number and message of the fopen() error.

@ghost ghost assigned match065 May 14, 2012
@match065
Copy link
Member

Can you please try again with the latest code?

@mmornati
Copy link
Author

Same error (??)
I can naturally, rename the file, but if you want to test it and fix the problem I can leave it this way ;)
It seems that file start with a "space" char... I think you can test it creating a file like the one in the test, on your space.

./grive
HTTP POST "https://accounts.google.com/o/oauth2/token" with "refresh_token=xxx&client_id=xxx.apps.googleusercontent.com&client_secret=xxx&grant_type=refresh_token"
HTTP response 200
HTTP GET "https://docs.google.com/feeds/default/private/full/-/folder?max-results=10&showroot=true"
HTTP response 200
can't find folder "." ("")
HTTP GET "https://docs.google.com/feeds/default/private/full?showfolders=true&showroot=true"
HTTP response 200
file "grive-0.0.4.x64.gz" parent doesn't exist, ignored
Downloading ./WORK/Oxylane/delta/DRP_BatchConsole_v2-00.doc
HTTP GET "https://doc-0c-1g-docs.googleusercontent.com/docs/securesc/eccb9i2ntfhatk78pf10592v35bicjvp/7uug9s43mjtc5l1h7t4k0on4da2dl378/1337090400000/04997088312931080823/05090217592002565984/105cmhifRgUnfguombTv_MUXeVq9n2jgHVrCDn5QPcVKb7ZY3fT9Hw-t0pH8B?h=16653014193614665626&e=download&gd=true"
HTTP response 200
Downloading ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc
exception: /home/mmornati/projects/grive/libgrive/src/util/StdioFile.cc(46): Throw in function gr::StdioFile::StdioFile(const string&, const char_)
Dynamic exception type: boost::exception_detail::clone_implgr::StdioFile::Error
std::exception::what: std::exception
[boost::errinfo_errno__] = 2, "No such file or directory"
[boost::errinfo_file_name__] = ./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc
[boost::errinfo_api_function__] = fopen
[boost::errinfo_file_open_mode_*] = wb

@match065
Copy link
Member

Thanks.

The error is "No such file or directory". It means that grive cannot create the directory for the file. Can you please check if the directory "./WORK/Oxylane/delta/RUN /" is created by grive?

Actually I tried to use exactly the same path (./WORK/Oxylane/delta/RUN / CRASH Procedures RNS.doc) in my drive to test it, but grive is able to create the directory and the file correctly.

@match065
Copy link
Member

Please don't rename the file and let the problem be reproducible so I can fix it.

Your help on this is very important for me to improve grive.

I take it very seriously on bug fixes and the quality of grive.

Thanks a lot!

@nestal
Copy link
Member

nestal commented Jun 6, 2012

Any update on the problem on the latest code? Many bugs have been fixed and maybe this one got fixed too.

Can anyone check again?

@ghost ghost mentioned this issue Dec 2, 2014
@nestal nestal closed this as completed in 1d47616 Feb 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants