Commit Graph

621 Commits

Author SHA1 Message Date
feiniks
b4473ecc26
Diff deleted folder to get deleted files (#2630)
Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-26 12:24:24 +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
4a2221920a
Add handle move event (#2618)
Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-01 15:59:23 +08:00
feiniks
7ae2d29b3d
Don't create commit from index and don't write duplicate name cache t… (#2614)
* Don't create commit from index and don't write duplicate name cache to index

* Modify name to prev_name

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-10-26 17:53:16 +08:00
feiniks
187800c185
Add confirmation when deleting more than 500 files (#2612)
* Add confirmation when deleting more than 500 files

* Delete repo and reclone it

* Don't need to cancel task

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-10-21 14:10:31 +08:00
feiniks
dc0847f8ab
Add event log (#2608)
* Add event log

* Modify log format and add lock when save event message

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-09-28 16:52:24 +08:00
feiniks
3680e29e64
Print empty argument (#2575) 2022-06-15 10:13:59 +08:00
feiniks
a9199aa91e
Fix empty commit (#2551) 2022-03-15 16:28:10 +08:00
Xiangyue Cai
207bd49dcc
use %lld (#2490) 2021-09-07 15:54:45 +08:00
Xiangyue Cai
0fdc14d517
add hide_windows_incompatible_path_notification configuration (#2471) 2021-07-02 17:31:55 +08:00
Xiangyue Cai
c95bc45a98
handle repo too large error (#2447) 2021-04-29 14:08:46 +08:00
Xiangyue Cai
eed7fa2250
Reduce explorer refresh when copy large folders into library (#2432)
* refresh explorer only for top dir

* fixed refresh problem

* no need to change ignore logic

* only refresh top dir when syncing

* refresh explorer when syncing
2021-03-22 12:07:16 +08:00
feiniks
0a1bb6ae30
Should use full_path,the path mabe NULL (#2412) 2020-12-30 17:26:01 +08:00
feiniks
30fe948291
Add sync error when upload a invalid path on linux or mac (#2410)
* Add sync error when upload a invalid path on linux or mac

* Only check the base name of path
2020-12-29 12:00:08 +08:00
feiniks
f0097a706b
Support breakpad for windows (#2401) 2020-12-07 12:27:19 +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
88da64bced
Fix recreate invalid file name after delete it (#2393) 2020-11-18 10:32:11 +08:00
feiniks
9fbc731504
Don't disable auto sync when failed to access worktree (#2392)
* Don't disable auto sync when failed to access worktree

* Use worktree invalid parameter
2020-11-17 18:11:57 +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
b8dac76419
Support encrypted repo of V4 (#2376) 2020-09-24 10:23:29 +08:00
feiniks
4948b0b24e
Disable auto sync when failed to access worktree (#2374) 2020-09-22 17:33:39 +08:00
Moritz Schlarb
ad72d1bbb9
Fix typo recyle (#2353) 2020-09-17 13:39:48 +08:00
feiniks
d315935dc1
free the path when failed to mkdir (#2365) 2020-08-18 11:25:07 +08:00
feiniks
8db7f48dde
support checkout paths of any length (#2364) 2020-08-18 11:01:24 +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
feiniks
12b114dec0
Add check if current task is NULL (#2345) 2020-06-06 15:08:24 +08:00
Xiangyue Cai
bd7ae28770
remove redundant error notification (#2335) 2020-05-15 14:13:07 +08:00
Jonathan Xu
449eb67d99 [mac] Ignore apple double files (._*) when commit. 2020-03-29 10:56:19 +08:00
caixiangyue
9f829ef8d7 handle block_size not set 2020-02-14 14:34:55 +08:00
caixiangyue
5c47fa2b74 Use default block size(8MB) when block size less than 1KB 2020-02-12 18:52:24 +08:00
caixiangyue
4534f16ec8 add rpc seafile_del_file_sync_error_by_id 2020-02-06 10:51:43 +08:00
caixiangyue
6249e4abe7 do not refresh explorer when restart 2020-01-21 09:59:42 +08:00
Jiaqiang Xu
7c97b4028b
Merge pull request #2275 from haiwen/clean-rpc-112
Clean rpc
2019-11-19 11:39:07 +08:00
caixiangyue
3b59c89d1f move canonical_server_url() to utils.c 2019-11-05 18:42:52 +08:00
caixiangyue
2055046a15 fixed compilation warning 2019-11-05 16:07:51 +08:00
caixiangyue
12dd689072 do not use libevent_pthreads in win32 2019-11-05 10:52:45 +08:00
caixiangyue
71168bcac0 seafile_clone and seafile_download rpc remove peer_id, peer_addr, peer_port 2019-11-04 17:33:06 +08:00
caixiangyue
9eca646bb6 seafile_update_repos_server_host rpc use server_url instead of relay_addr 2019-11-04 16:34:11 +08:00
caixiangyue
9c3eb4fa75 remove seafile_get_session_info rpc 2019-11-04 16:34:11 +08:00
caixiangyue
9d274be334 remove seafile_remove_clone_task rpc 2019-11-04 16:34:11 +08:00
caixiangyue
5f58b4b103 init multithreading support for libevent 2019-11-04 11:20:36 +08:00
caixiangyue
18234cb359 add config disable_block_hash 2019-10-26 15:58:07 +08:00
Jonathan Xu
a4e56b6588 Add 'id' field to FileSyncError RPC object. 2019-10-24 20:18:37 +08:00
Jonathan Xu
24e2eeb04b Fix SQL to query NULL path in file sync error db. 2019-10-24 17:35:32 +08:00
caixiangyue
f36530844d add pthread detached attr 2019-10-18 18:50:33 +08:00
caixiangyue
36701cf26f revert commit cb64a15785 2019-10-18 18:39:51 +08:00
Jiaqiang Xu
29686e2452
Merge pull request #2249 from haiwen/named-pipe-server-thread-pool-size
add parameter named_pipe_server_thread_pool_size=50
2019-10-17 16:21:39 +08:00
caixiangyue
e59f55b5f4 add sync_error_id_to_str rpc 2019-10-16 17:53:16 +08:00
caixiangyue
cb64a15785 add parameter named_pipe_server_thread_pool_size=50 2019-09-23 11:51:32 +08:00
caixiangyue
ec3ea3cf35 add block_size configuration 2019-09-20 15:02:22 +08:00
Jonathan Xu
9ea418db45 Change seafile-recycle-bin to recycle-bin. 2019-08-27 18:16:05 +08:00
Jonathan Xu
5220184d9d Add error notification when move a folder to recycle-bin. 2019-08-27 16:36:12 +08:00
Jonathan Xu
100f8af7a5 Rename seafile-trash to seafile-recycle-bin. 2019-08-27 15:45:40 +08:00
Jonathan Xu
a93e93fe99 Move folder to a special trash folder if failed to remove it on checkout. 2019-08-27 15:45:40 +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
1073e1f915 Fix a potential crash bug when checking delayed file updates. 2019-08-20 18:29:48 +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
Jiaqiang Xu
c513ac1058
Merge pull request #2221 from haiwen/use-block-725
use finishing blocks to calculate downloading process
2019-07-31 18:30:25 +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
caixiangyue
9ee895976a fixed sending an error notification for readonly repo 2019-07-25 13:39:56 +08:00
caixiangyue
300b9175bc remove failed to index files notification which due to file not exist 2019-06-20 16:56:39 +08:00
caixiangyue
91cf2aa9fc fix daemon not show warning error when syncing with read only folder 2019-05-30 10:52:04 +08:00
caixiangyue
af195bcc4e Encrypted library version 3: use different salt for each library. 2019-05-18 17:32:10 +08:00
Shuai Lin
3e724f5a89 win: base64 encode the username before appending to the pipe name 2018-12-25 18:25:37 +08:00
ly1217
c0a03e27e5 Fix the error that duplicate case value in switch. 2018-11-15 21:58:16 -08:00
Jiaqiang Xu
416e4f979f
Merge pull request #2103 from haiwen/add_sync_error
Add two sync error strings.
2018-09-28 16:41:09 +08:00
ly1217
55c2b5defb Add two sync error strings. 2018-09-28 01:24:47 -07:00
Jiaqiang Xu
f0e7cb13a6
Merge pull request #2105 from haiwen/add_property_is_readonly
Add set is_readonly property.
2018-09-28 13:48:21 +08:00
ly1217
cb9d6bcc61 Fix the bug that the client can't upload when resync the repo after sync error retry. 2018-09-27 19:14:36 -07:00
ly1217
440c4db354 Add set is_readonly property. 2018-09-27 02:16:23 -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
5824e798ed Force delete all files when deleting a folder recurively. 2018-09-11 15:56:29 +08: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
Shuai Lin
a6ac5667f5 seaf-cli: remove ccnet and use new seafile rpc client 2018-08-10 18:42:55 +08:00
Jonathan Xu
7d7116c68e Use diff to generate commit description. 2018-07-10 18:54:34 +08:00
Jonathan Xu
71c1234372 [Mac] Fix handling of fs events.
FSEvent can set multiple flags in one event and the flags can sometimes be quite suprising.
2018-07-03 15:44:21 +08:00
Shuai Lin
65a20c2605 Log the client id and name at startup 2018-07-02 14:44:16 +08:00
Shuai Lin
0d93ef7bab Added back a missing rpc 2018-06-29 19:01:11 +08:00
Jonathan Xu
4b9678eb68 Fix .eml file cannot be deleted problem. 2018-06-28 10:45:39 +08:00
Jonathan Xu
d811868c98 [Mac] Fix UTF8 string length issue in auto lock office file code. 2018-06-27 15:40:13 +08:00
Jonathan Xu
79aba80c85 [Mac] Delay updates to opened MS Office files. 2018-06-27 15:40:13 +08:00
Shuai Lin
d16c6ac0f7 Fixed build on win/linux 2018-06-26 17:03:00 +08:00
Jonathan Xu
2d67426c03 Remove dependency to ccnet. 2018-06-26 12:23:36 +08:00
Jonathan Xu
8b60a0f272 [Mac] Auto lock/unlock MS Office files if MS Office is used. 2018-06-25 17:42:44 +08:00
Moritz Schlarb
d7154a5249 Fix some typos (#2055) 2018-06-09 08:18:03 +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
4dcd592066 Fix a crash bug when loading a repo who's worktree is not set. 2018-02-13 12:09:22 +08:00
Jonathan Xu
c44e3ee507 Check result of g_utf16_to_utf8() when converting filenames from filesystem. 2018-02-13 11:41:44 +08:00
Jonathan Xu
ad1354a637 Remove ignored office temp files when removing a folder recursively. 2017-11-24 12:02:03 +08:00
Jonathan Xu
c4227f1ea9 Fix empty folder not being removed issue on Mac. 2017-11-10 18:55:45 +08:00
Jonathan Xu
b50b513fe7 Check synced repo head commit ids in batch. 2017-11-07 10:42:29 +08:00