Commit Graph

288 Commits

Author SHA1 Message Date
feiniks
84477411f6
Check if dir is ignored and if file exists when record "index error" (#2863)
* Check if dir is ignored and record index error when file exists

* Check if file exists

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-12-21 12:24:04 +08:00
feiniks
5c4c8336a5
Add option to ignore symbol link (#2861)
* Add option to ignore symbol link

* Modify parameter names and check on rename

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-12-21 11:56:27 +08:00
feiniks
9c9be46b46
Ingore case conflict error on linux (#2857)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-12-20 18:16:19 +08:00
feiniks
f5d8b38bd0
Support password hash (#2783)
* Support password hash

* Add rpc signature and verify pwd hash

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-16 20:11:40 +08:00
feiniks
83e4b297fd
Save block to file directly (#2834)
* Save block to file directly

* Add size of progress

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-15 15:43:21 +08:00
feiniks
2828f6df88
Don't save username to commit (#2797)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-07-15 11:16:40 +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
Joffrey
34e743ffb6 GCC 14.1: Fix incompatible pointer type 2024-05-23 13:52:58 +02:00
feiniks
d69e133a42
Fix windows build error (#2774)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-20 15:01:33 +08:00
feiniks
81a9e1cd57
Fix unlock file error and only record sync error (#2772)
* Fix unlock file error and only record sync error

* Check folder perms and file locks immediately

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-16 16:38:53 +08:00
feiniks
8c2fe93154
Check path is case conflict when checkout files (#2748)
* Check path is case conflict when checkout files

* Check parent dir on windows

* Check path case conflict

* Add conflict path to check case conflict

* Add no_case_conflict_hash to check local dir

* Add case conflict error

* Don't check cache entry when rename dir

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-09 15:09:35 +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
d5d8afa1f4
Add log when filename is too long (#2752)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-03-26 15:17:17 +08:00
feiniks
9097dc88c0
Don't record error when failed to stat file (#2744)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-03-01 16:09:54 +08:00
feiniks
12058215fc
Record index error when faile to traverse dir (#2733)
* Record index error when faile to traverse dir

* Send index error notification

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-01-23 16:14:30 +08:00
feiniks
8ac92a6c29
Only record a file-level error,don't send notification (#2701)
* Only record a file-level error,don't send notification

* only send notification once

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-08-28 15:49:47 +08:00
feiniks
5b44209bf6
Add option to build websockets (#2693)
* Revert "Disable notification on linux (#2659)"

This reverts commit 20d5947916.

* Add option to build websockets

* Set enable-ws default to no

* Add build option COMPILE_LINUX_WS

* Modify APPLE macro

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-07-20 17:50:41 +08:00
feiniks
ed64098bf2
Add a file-level error when failed to checkout file (#2692)
* Add a file-level error when failed to checkout file

* Add sync error SYNC_ERROR_ID_CHECKOUT_FILE

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-07-20 17:41:15 +08:00
feiniks
c3cb6ea66c
Add enc info when resync an encrypted repo (#2665)
* Add enc info when resync an encrypted repo

* Reset repo enc info when resync encrypted repo

* Modify function name

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-04-14 17:36:15 +08:00
feiniks
4aa7b5e616
Only send notification when create invalid file or directory locally (#2666)
* Only send notification when create invalid file or directory locally

* Check path in index

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-04-11 15:22:52 +08:00
feiniks
20d5947916
Disable notification on linux (#2659)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-25 14:57:38 +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
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
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
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
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
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
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
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
caixiangyue
3b59c89d1f move canonical_server_url() to utils.c 2019-11-05 18:42:52 +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
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
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