Commit Graph

621 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
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
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
ce82435bdb
Init exists when handle last event (#2845)
* Init exists when handle last event

* Only handle events of dir renaming

* Add comment

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-11-09 12:18:43 +08:00
feiniks
6e2ad478ac
Hide windows incompatible path msg by default (#2847)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-11-06 23:22:25 +08:00
feiniks
8d16c1782a
Check pwd hash and add crypt header (#2844)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-30 11:11:39 +08:00
feiniks
9a149a6129
Hanlde last event and discontinuous renaming events (#2838)
* Hanlde last event and discontinuous renaming events

* Handle rename events and last event

* Check rename first and add comment

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-23 18:46:14 +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
6df037c9a1
Add rename event when rename file on mac (#2828)
* Add rename event when rename file on mac

* Adjust stat file

* Add process rename event

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-15 17:11:37 +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
e5421f8152
Add Authorization header (#2821)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-10-14 15:08:22 +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
96ec6a4178
Polish several error messages (#2792)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-07-03 16:51:53 +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
d6d8954e87
Socks5 support username and password (#2768)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-09 16:21:06 +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
4b85bc22cd
Retry 3 times when quota is ful (#2767)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-06 18:48:46 +08:00
feiniks
3af62964cc
Fix server_url of repo is NULL (#2760)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-05-06 18:43:04 +08:00
icy17
7647d50a3e
Fix potential Null pointer dereference in timer.c (#2759) 2024-04-23 11:52:15 +08:00
feiniks
f9c1efd052
Seaf-cli check daemon is running (#2758)
* Seaf-cli check daemon is running

* Add log

* Modify log

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-04-10 18:20:09 +08:00
feiniks
3c77d6eac0
Modify error log info (#2755)
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-03-29 18:05:29 +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
6c869d42dc
Fix command handling bug in wt-monitor (#2736)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-01-31 15:21:59 +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
9ec8f933c8
Check server_url is NULL when subscribe repo (#2719)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-11-21 16:27:57 +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
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
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
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
9ab77f59d2
Fix free path twice (#2680)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-06-07 10:00:31 +08:00
feiniks
34956467c1
Support universal build (#2672)
* Support compile universal

* Support universal build

* Add python3 build scripts

* Rename script name

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2023-05-13 17:43:07 +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
8e3b6d67bf
Use encoding of NFD to create file and directory on mac (#2668)
* Use encoding of NFD to create file and directory on mac

* Convert path to NFD before call os

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-04-14 16:09:16 +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
9a97819f81
Don't set sync state to error for specific error (#2667)
* Don't set sync state to error for specific error

* Don't set sync state to error when only set task error

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-04-11 14:38:56 +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
a046ff2f77
Don't lock file when file has beed locked (#2657)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-03-16 16:10:40 +08:00
feiniks
d749be96af
Limit count of jwt-token request (#2655)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-03-09 15:27:55 +08:00
feiniks
3cbca5c186
Get jwt-token when notification server is alive (#2654)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-03-03 17:12:03 +08:00
feiniks
4d8779213e
Don't need to create a new context (#2651)
Co-authored-by: heran yang <heran.yang@seafile.com>
2023-03-01 12:11:54 +08:00
feiniks
efefe27eb5
Add log when notification server is enabled (#2646)
* Add log when notification server is enabled

* Add print server addr

---------

Co-authored-by: heran yang <heran.yang@seafile.com>
2023-02-11 11:31:18 +08:00
feiniks
91e5d89739
Sync repo immediately when del_confirmation_pending is TRUE (#2631)
* Sync repo immediately when del_confirmation_pending is TRUE

* Sync repo immediately when del_confirmation_pending is TRUE

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-27 16:53:39 +08:00