Commit Graph

40 Commits (5bc503279a139f0cfe6d7f1a4e052a3cdd1909b7)

Author SHA1 Message Date
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 f16f212281 use pkg-config also for finding json-c (fixes paths on debian) 2015-05-14 01:20:35 +03: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 645bb2e7d4 Add delay before auth token refresh
This is sometimes necessary to prevent too frequent requests.
2013-11-27 00:15:15 +02:00
Nestal Wan 94d66f0d30 can show tree now, but still has issues 2013-04-29 23:47:33 +08:00
Nestal Wan ee6408d05f changed to store parent IDs 2013-04-29 23:47:33 +08: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 d4a7fae273 refactored exception handling 2013-04-29 23:47:32 +08:00
Nestal Wan 755ee1c9ad new qt gui 2013-04-29 23:47:32 +08:00
Nestal Wan bec8362639 added template contructor for object 2012-07-30 16:43:36 +08:00
Nestal Wan 5a0c6ae56e don't throw in CurlAgent for all HTTP errors (#82) 2012-07-26 01:25:44 +08:00
Nestal Wan 51e42914f3 refreshing the token if HTTP 401 is returned (#83) 2012-07-23 16:00:21 +08:00
Nestal Wan 3acd25cb55 proper fix for (#98: missing reference count for Json::Get() ) 2012-07-23 15:43:11 +08:00
Nestal Wan c6a1c47d40 added retry on HTTP 500 & 503 (#82) 2012-07-20 00:50:40 +08:00
Nestal Wan 28e8012ca5 added AuthAgent, a wrapper around http agent 2012-07-20 00:39:36 +08:00
Nestal Wan a79edc9c2b merged compile fixes from LemonBoy #58 2012-06-11 23:37:15 +08:00
LemonBoy 6157dc57f3 Fix some compilation issues. 2012-06-10 19:50:26 +02:00
Nestal Wan 7be193c35b added unit test case 2012-06-10 23:11:32 +08:00
Nestal Wan 379dddc532 fully configurable log 2012-06-03 18:31:02 +08:00
Nestal Wan 53f9c39941 disable debug log during authenication 2012-06-03 17:31:16 +08:00
Matchman Green 6db0b4a7aa refactored the creation of resources 2012-05-31 23:37:47 +08:00
Matchman Green 729ec106f8 no need to check MD5 or mtime for folders 2012-05-27 22:49:49 +08:00
Matchman Green e09bdc5a8a trying to add fdopen 2012-05-27 14:55:26 +08:00
Matchman Green d78728938f added resource test 2012-05-25 01:24:59 +08:00
Matchman Green 50f1d813e2 set the mode of .grive to 0600 for security.
Thanks Huin for the reminder.
2012-05-24 19:06:03 +08:00
Matchman Green dfbe859531 load and save from .grive_state and build the resource tree 2012-05-20 17:12:01 +08:00
Matchman Green 57fb6d3b0e added state to drive 2012-05-20 15:01:52 +08:00
Matchman Green 6dd505f8a6 added state 2012-05-20 15:01:52 +08:00
Matchman Green 53883ab8bd move the .grive from home directory to current directory. get change stamp 2012-05-16 00:54:58 +08:00
Matchman Green 8ced12d5a1 used new exception classes 2012-05-13 15:27:58 +08:00
Matchman Green efaa5df229 renamed HTTP.(hh|cc) to Agent 2012-05-10 00:22:27 +08:00
Matchman Green 06158e6bf0 fixed state reuse in the receivables 2012-05-09 22:25:42 +08:00
Matchman Green b42e7c6501 move http files to a separate directory 2012-05-06 02:21:39 +08:00
Matchman Green 1c7b114ea5 refactored to use only the new http interface 2012-05-06 02:15:28 +08:00
Matchman Green 1e6e6a4347 added HTTP receiver callback interface 2012-05-06 01:12:44 +08:00
Matchman Green 8357e9ed82 renamed HTTP agent class and namespace 2012-05-05 22:39:18 +08:00
Matchman Green 915303d205 commented out the SignalHandler 2012-05-03 00:17:16 +08:00
Matchman Green d4a8d9fb65 Merge branch 'massix'
Conflicts:
	CMakeLists.txt
2012-05-02 23:30:49 +08:00