Vitaliy Filippov
9b8e0c826b
Remove request logging from Drive/Feed/Syncer (prepare to move it into CurlAgent)
2015-09-30 13:54:45 +03:00
Vitaliy Filippov
70ec926e2a
Add response body and headers to diagnostic information on HTTP 400 and above
...
Also should fix #13 because stops AuthAgent from using the same response multiple times
2015-06-27 22:58:09 +03:00
Vitaliy Filippov
29241002eb
Add myself to copyrights, change README
2015-05-17 22:11:35 +03:00
Vitaliy Filippov
0bdbf87514
Ignore local .trash, fix REST API - it mostly works
2015-05-17 21:05:24 +03:00
Vitaliy Filippov
2d34d7708b
Implement upload methods for REST API Syncer (basic file upload to root now works)
2015-05-17 20:10:03 +03:00
Vitaliy Filippov
862fca035a
Move all protocol interaction into Syncers out of the base code
2015-05-17 16:54:04 +03:00
Vitaliy Filippov
717a6a4793
Use vector<Entry> instead of iterator_adaptor to hide implementation details
2015-05-17 14:32:04 +03:00
Vitaliy Filippov
dabaaac38f
Cleanup Feed interface (remove some unused methods)
2015-05-17 12:29:00 +03:00
Vitaliy Filippov
6a15dd09a5
Split Resource to global (base/Resource) and API-specific ({drive,drive2}/Syncer) parts
2015-05-17 02:00:00 +03:00
Vitaliy Filippov
f41e4f6dd3
Split Entry to v1::Entry1 and v2::Entry2
2015-05-16 21:10:38 +03:00
Vitaliy Filippov
b0255d9699
Add Entry constructor for new Drive REST API
2015-05-16 19:38:43 +03:00
Vitaliy Filippov
2d8da5cab3
Remove doclist API specific fields from Entry class: kind, create_link, edit_link and alt_self
2015-05-16 12:35:41 +03:00
Vitaliy Filippov
770baca3fc
Reduce syscalls slightly more (os::FileCTime is still left...)
2015-05-16 01:05:19 +03:00
Vitaliy Filippov
5bc503279a
Remove JSON-C json wrappers, use YAJL for everything
2015-05-16 00:37:02 +03:00
Vitaliy Filippov
ac1763f2c7
Merge https://github.com/visap/grive/commits/visa
2015-05-16 00:36:26 +03:00
Vitaliy Filippov
c0c89c306c
Remove useless swap() code
2015-05-14 01:10:09 +03:00
Vitaliy Filippov
400d9e0c0f
Fix long/int cast errors
2014-07-23 14:51:13 +04:00
Visa Putkinen
3775572f46
Retry upload on XML error instead of crashing
...
Sometimes the Google Drive API sends malformed XML which crashes grive.
This patch adds a simple try-catch to Resource::Upload that retries the
upload if an XML exception is thrown from AuthAgent::Put.
2013-11-27 00:15:24 +02:00
Visa Putkinen
84785ec473
Fix hang when upload receives HTTP 500
...
When an uploading PUT request got a HTTP 500 as reponse, grive hanged
forever inside libcurl. This was because the File parameter was not
rewound to 0 position on retry. The XmlResponse had to be cleared as
well.
Rewinding the File and clearing the XmlResponse were not enough to fix
the problem, because when retrying after 500, HTTP 410 Gone or 412
Precondition failed is often received, and CheckHttpResponse would throw
an exception that crashes grive. Therefore, I implemented a retry logic
to Resource::Upload that retries the whole upload transaction if 410 or
412 was received.
2013-11-27 00:15:24 +02:00
Visa Putkinen
8b434dad14
Reduce number of syscalls while scanning local files
2013-11-24 14:34:03 +02:00
Visa Putkinen
c15bfbe8bc
Ignore only .grive and .grive_state
2013-11-24 14:25:01 +02:00
Vitaliy Filippov
752eb3fdda
Allow to sync just one directory in the root
2013-09-08 02:36:30 +04:00
Nestal Wan
62dc542341
refactored old GDoc API into v1 namespace. using v2 namespace for new Google Drive API
2013-04-29 23:47:33 +08:00
Nestal Wan
738435837b
using DataStream instead of Receiveable
2013-04-29 23:47:32 +08:00
Nestal Wan
443a85d558
removing redundant header parameter in Feed
2013-04-29 23:47:32 +08:00
Nestal Wan
755ee1c9ad
new qt gui
2013-04-29 23:47:32 +08:00
Nestal Wan
804fe923f2
refactored the config file part from #109
2012-07-30 16:52:59 +08:00
Nestal Wan
612b35a090
fixed compiler warnings
2012-07-30 16:43:51 +08:00
justin
034891a610
issue 86 allow sync folder to be specified, move Config class and add basic unit test
2012-07-29 18:17:41 +01:00
justin
e0383a843c
remove unused code
2012-07-29 17:53:02 +01:00
Nestal Wan
d831b8d59f
support creating revisions with --new-rev ( #87 )
2012-07-27 00:45:53 +08:00
Nestal Wan
fd81cc1fe4
added --log-xml for debugging ( #80 )
2012-07-27 00:17:44 +08:00
justin
96227d38cf
store modified time of file in m_mtime instead of passing value as param
2012-07-19 22:22:34 +01:00
Nestal Wan
28e8012ca5
added AuthAgent, a wrapper around http agent
2012-07-20 00:39:36 +08:00
Nestal Wan
57c431dd83
added logs for tracing last sync time
2012-07-19 23:48:01 +08:00
Nestal Wan
7cc4984932
use mmap for checksum
2012-07-17 01:59:00 +08:00
Nestal Wan
ce245576b5
use StdioFile for uploading ( #88 )
2012-07-17 01:58:16 +08:00
Nestal Wan
75c67dad8d
added class & functions for memory mapped files
2012-07-17 01:08:34 +08:00
Nestal Wan
94383e0030
ignoring files with missing MD5 checksum in remote feeds
2012-07-16 23:37:50 +08:00
Nestal Wan
593c335a5e
improved logging for HTTP responses
2012-07-16 23:23:08 +08:00
justin
e28fe96260
fix deleted local file downloaded again
2012-07-15 17:33:33 +01:00
Nestal Wan
80f3fbf370
refactored the logs to debug sync problems
2012-07-12 00:36:58 +08:00
Nestal Wan
278037b07b
fixed incorrect name in pdf files
2012-07-12 00:30:19 +08:00
Ben L
06bf4fe58d
Fix empty filenames for Google Docs
2012-07-03 13:42:16 -05:00
Nestal Wan
daa1fe9ca3
refactored a bit for the fix in #76
2012-06-27 23:18:12 +08:00
Georges Dubus
34be2e7a87
Fixed a bug where grive crashed on the first run.
...
It gived a negative start index to get the changes feed, which is
illegal. The error returned by the server triggered a crash.
Fixes #76 .
2012-06-27 14:17:13 +02:00
Nestal Wan
460a4fd8f2
save the changestamp after sync ( #68 )
2012-06-26 00:13:18 +08:00
Nestal Wan
1d1365ea1a
refactored code in Update() to DetectChanges()
2012-06-23 18:23:43 +08:00
Erik Hardesty
62238c5ba6
Move update logic out of Grive constructor
...
This is to make it easier to repeatedly sync the
directory when used in a daemon-like setting without
reinstantiating the class
2012-06-21 18:47:01 -05:00
Nestal Wan
c5a5221f4b
disable an unimportant assertion and replace it with a warning
2012-06-20 22:46:17 +08:00