Commit Graph

111 Commits

Author SHA1 Message Date
feiniks
92af45825e
Don't set timeout for fs-id-list (#2862)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-12-21 11:57:38 +08:00
feiniks
e5421f8152
Add Authorization header (#2821)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-14 15:08:22 +08:00
feiniks
8e0e9ce76b
Checkout file directly (#2781)
* Checkout file directly

Add download progress

Return error when cancel task

Check if usr is NULL when get notif server

Adjust code struct

Checkout file from offset

Don't use http task

Adjust function parameters

* Support set file_id attr to tmp file

* user error_id to check failed

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-07-03 16:46:58 +08:00
feiniks
1e4556e4c1
Use username as conflict file name and add username field to commit (#2786)
* Use username as conflict file name and add username field to commit

* Add comment for username and creator_name

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-06-28 15:00:11 +08:00
feiniks
d6d8954e87
Socks5 support username and password (#2768)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-09 16:21:06 +08:00
feiniks
3cf1bbebe6
Send file error notification (#2761)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-06 19:31:02 +08:00
feiniks
98b5288e9b
Add block missing sync error (#2694)
* Add block missing sync error

* Print response body when block is missing

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-07-21 15:06:44 +08:00
feiniks
39073989ee
Add sync error too many files (#2683)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-06-27 11:54:36 +08:00
feiniks
3290f3fd80
Get notification from server (#2527)
* Get notification from server

Don't sync repo when repo is subscribed

Get notification from server

* Disconnect notification server when subscribed repos is 0 and modify log info

* Add jwt certification

* Use server lock

* VS add libwebsockets

* Add check notification server

* Check notif server once

* Check locks and folder perms after fileserver is recovered

* Add comment

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-24 16:51:55 +08:00
feiniks
3680e29e64
Print empty argument (#2575) 2022-06-15 10:13:59 +08:00
Xiangyue Cai
c95bc45a98
handle repo too large error (#2447) 2021-04-29 14:08:46 +08:00
feiniks
cb877e00d9
portable visual studio 2019 (#2378)
* portable visual studio 2019

* Need alignment and fix compile warning

* Define related headers in common.h

* del reference config.h

* Add files generated by vala

* Def reference config.h for windows

* Support vs build

Co-authored-by: sun <1184550842@qq.com>
2020-11-18 16:55:44 +08:00
feiniks
03dcd9073c
Use socks5h for socks5 proxy (#2388) 2020-10-28 18:15:25 +08:00
feiniks
abe5a66717
Add ref count when block exists (#2377) 2020-09-24 13:35:17 +08:00
feiniks
562c0bd81e
Check if the block exists when downloading (#2357)
* Check if block exists when downloading

* Update download progress when block exists
2020-07-21 18:11:29 +08:00
feiniks
93f80b0b86
Add sync error when failing to parse head commit (#2354) 2020-07-09 18:37:59 +08:00
caixiangyue
6249e4abe7 do not refresh explorer when restart 2020-01-21 09:59:42 +08:00
Jiaqiang Xu
afe5c026af
Merge pull request #2234 from haiwen/refactor-sync-error
Refactor sync error
2019-08-27 15:42:42 +08:00
Jonathan Xu
434303cba5 Fix bugs in error notification refactor. 2019-08-21 14:54:09 +08:00
Jonathan Xu
c73fe3f949 Refactor sync error recording and notification. 2019-08-20 16:51:11 +08:00
Jonathan Xu
480222133c Revert "use finishing blocks to calculate downloading process"
This reverts commit 75c61a19c7.
2019-07-31 18:38:17 +08:00
caixiangyue
874141f9d3 use finishing blocks to calculate downloading process 2019-07-31 17:59:48 +08:00
caixiangyue
75c61a19c7 use finishing blocks to calculate downloading process 2019-07-31 17:21:46 +08:00
ly1217
c0a03e27e5 Fix the error that duplicate case value in switch. 2018-11-15 21:58:16 -08:00
ly1217
55c2b5defb Add two sync error strings. 2018-09-28 01:24:47 -07:00
ly1217
0e15929beb Only net error retry in clone process. 2018-09-20 01:09:18 -07:00
ly1217
82572c99c0 Add saving 403 errors into FileSyncError and 403 error retry count. 2018-09-17 00:25:30 -07:00
Jonathan Xu
1a4bc67e00 Add debug option to print libcurl verbose log.
export SEAFILE_DEBUG=curl
2018-09-11 11:49:54 +08:00
Jonathan Xu
e34490f24c [win] Don't add expire CA certificates to pem file. 2018-08-27 13:24:47 +08:00
Jonathan Xu
c61db01adf Remove cert name from ca-bundle file. 2018-08-24 15:11:35 +08:00
Jonathan Xu
2d67426c03 Remove dependency to ccnet. 2018-06-26 12:23:36 +08:00
Jonathan Xu
d2bd43e135 Show more precise error message in main window when file is locked on server.
"File is locked by another user on server" instead of "Access denied".
2018-02-23 16:22:53 +08:00
Jonathan Xu
8473986174 Notify detailed file path when server return file locked or folder perm error. 2018-02-22 14:27:08 +08:00
Jonathan Xu
b50b513fe7 Check synced repo head commit ids in batch. 2017-11-07 10:42:29 +08:00
Jonathan Xu
0ea81583bf Update local repo name after it's changed on server. 2017-06-28 17:45:58 +08:00
Jonathan Xu
d132dc96aa Add timeouts to network operations.
Except for getting fs id list from server on clone.
2017-06-26 17:43:42 +08:00
Jonathan Xu
9ab37b3e44 Release all connections in connection pool after 3 consecutive errors. 2017-06-13 17:08:39 +08:00
Jonathan Xu
7c7baddf2f Call curl_global_init() at the beginning of program. 2017-05-25 11:34:20 +08:00
Jonathan Xu
0e181b58e2 Some BSD compile fixes.
Thanks to Daniel Ölschlegel <amoibos@gmail.com>.
2016-12-27 18:48:56 +08:00
Jonathan Xu
9ead52ce0d Fix some bugs.
- Fix block sha1 calculation.
- Fix a corner case in error handling in upload.
- Add back integration-tests folder.
2016-12-22 14:39:43 +08:00
Jonathan Xu
232af69506 Allow compiling with GPL-compatible crypto libraries. 2016-12-22 14:39:43 +08:00
Jiaqiang Xu
f2e3bdc8dc [win] Load intermediate CAs from system store. 2016-12-17 10:17:02 +08:00
Jonathan Xu
656666a9af Use unified progress for multipart uploads. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
64635b19d9 Return error detail for clone and sync tasks. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
1b159bd40f Allow setting device name from seafile-applet. 2016-09-21 18:18:00 +08:00
Jiaqiang Xu
3f9cf6a673 Fix compile in Mingw64. 2016-07-04 12:15:27 +08:00
Jiaqiang Xu
a21065dad8 [server] Add an option to allow download dir only when gettting fs object list. 2016-06-24 13:20:05 +08:00
Jiaqiang Xu
b1b606e50b [client] Disable proxy in libcurl connections if proxy is not set. 2016-03-18 11:28:44 +08:00
Jiaqiang Xu
506c6cccc4 [win] Auto lock office file when it's opened. 2016-03-16 16:31:09 +08:00
Jiaqiang Xu
d8bd9e24d0 [client] Fix compile warnings on Windows. 2016-03-02 11:48:12 +08:00