Vitaliy Filippov
6645206d27
Implement Google OAuth loopback IP address flow ( fixes #362 #372 #365 )
2022-11-09 12:37:18 +03:00
Vitaliy Filippov
548ea362f3
Update client_id and client_secret -> maybe Google will verify it?
2019-11-13 01:05:31 +03:00
Vitaliy Filippov
93cae255fa
Fix #169
2018-07-28 23:48:46 +03:00
Blackrabbit
f27e3724de
Implement progressbar (by @svartkanin adjusted by @vitalif)
2016-09-29 00:56:15 +03:00
Vitaliy Filippov
fbf8f1663f
Initialize mMaxUpload/mMaxDownload to 0 ( fix #81 )
2016-07-06 12:04:15 +03:00
Vitaliy Filippov
44d3ddf928
Implement upload/download speed limit ( fix #60 )
2016-05-15 23:05:49 +03:00
Vitaliy Filippov
5381919e5b
Enable warnings and fix them
2016-01-03 02:01:01 +03:00
Vitaliy Filippov
887da88c14
Simplify http::Agent methods and use multipart upload
...
Should speed-up uploads by updating metadata and contents at the same time.
Also should fix most 412 errors because of the update atomicity.
2015-10-10 00:54:05 +03:00
Vitaliy Filippov
f288c559c6
Oops. I was thinking auto_ptr is smart_ptr O_o. Sorry. Also fix #33
2015-10-07 01:57:28 +03:00
Vitaliy Filippov
dc8e172a27
Handle error HTTP responses in OAuth2
2015-09-30 15:52:24 +03:00
Vitaliy Filippov
9402bff12e
Implement normal reliable HTTP logging (in Agent)
...
Flushes on every call so may be slightly slow, but in return always provides full
information in case of a segfault or a failed assertion.
2015-09-30 15:01:50 +03:00
Vitaliy Filippov
6f35a32ca2
Get auth headers again before each Put() retry - fixes #19
2015-08-04 22:59:09 +03:00
Vitaliy Filippov
308aab92cf
Also print response body on 401
2015-07-04 00:25:13 +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
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