1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 06:46:13 +00:00
Commit Graph

321 Commits

Author SHA1 Message Date
feiniks
cd9bae2002 Add column type to RepoInfo (#660)
* Add column type to RepoInfo

* Go fileserver check repo type

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-06-19 12:20:38 +08:00
feiniks
84eb58f01c Skip check user when export file and fix build error (#659)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-06-18 15:29:33 +08:00
feiniks
96996b79e3 Support argon2id password hash algo (#637)
* Support argon2id password hash algo

* CI install argon2 deps

* Go support argonid algo

* RPC add pwd_hash_algo and pwd_hash_params

* Support password hash algo

* Don't set magic when pwd_hash is set

* Fix ci error

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-22 18:49:57 +08:00
feiniks
cf70221106 Fix set virtual repo id error (#654)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-26 18:01:54 +08:00
feiniks
98315cce73 Add option to build http server (#648)
* Add option to build httpserver

* Add option to build libevhtp

* Delete unused option

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:38:44 +08:00
feiniks
ef239b890d Add compat for Content-Disposition (#650)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-12 22:14:37 +08:00
feiniks
b2bd7b7b6b Don't support move directory to its subdirectory (#645)
* Don't support move directory to its subdirectory

* Check move dir to sub dir

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-02-04 16:40:34 +08:00
feiniks
1e4790b3a2 Return 404 when notification server is disabled (#643)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-02-01 16:31:59 +08:00
feiniks
2d667a5c99 Check files with same name before post (#638)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-11-22 16:57:13 +08:00
feiniks
0b0bfbf5ab Fix fsck crash when failed to save dir (#628)
* Fix fsck crash when failed to save dir

* Modify comment

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-07-31 11:13:33 +08:00
feiniks
fdb51c1352 Fix fsck crash when failed to find available commit (#627)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-07-25 10:37:19 +08:00
feiniks
a978b24d0c Start rpc server after prepare seafile session (#622)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-06-20 18:18:32 +08:00
feiniks
30f26ef24f Support copy/move files between enc repos (#611)
* Support copy/move files between enc repos

* Check block_id is empty

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-05-05 11:34:23 +08:00
feiniks
b5993456e3 Add retry count to 10 (#609)
* Add retry count to 10

* Add sleep interval and print max retry count

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-04-21 17:53:29 +08:00
feiniks
ad5ce70ffb Get repo list add return virtual repos (#605)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-20 10:11:57 +08:00
feiniks
499e8e8d17 Add search_files_by_path RPC (#599)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-25 11:24:50 +08:00
feiniks
766d716c6a GC traverse base commit of virtual repo (#597)
* GC traverse base commit of virtual repo

* Traverse virtual repo's base commit

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-20 11:49:11 +08:00
feiniks
0b5b0bf43c Delete seafile_auth_token option (#594)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-11 10:54:50 +08:00
feiniks
4a21c835d3 Add notification config in seafile.conf (#593)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-02-09 12:02:22 +08:00
feiniks
d6f6127641 Add notification server (#535)
* Add notification server of go

Modify path of pkg

Send notification for update-repo event

Delete client pkg and use reflect select to send message

Modify output of log

Add formatter of log

Add jwt authentication

go add get jwt token api

CI support compile libjwt

Get group users from database

* Add ping to test mysql is alive

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-16 15:29:01 +08:00
feiniks
ce8f5bcbe6 Add index repo_id on WebUploadTempFiles (#556)
Co-authored-by: yangheran <heran.yang@seafile.com>
2022-12-13 19:21:42 +08:00
杨赫然
5c741c15ca Merge branch '9.0' 2022-12-06 14:47:15 +08:00
feiniks
798f77efb5 Check if seafile is NULL (#513)
Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-06 11:34:22 +08:00
feiniks
8e9367c9a1 Delete sub query (#582)
* Delete sub query

* Use where to filter org id

* Fix ci error

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-05 18:35:41 +08:00
feiniks
9b200675fb Add peer_ip length to 50 (#580)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-02 11:00:00 +08:00
feiniks
550e75cb0b Fix memory leak (#577)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-20 10:27:50 +08:00
feiniks
160f96346c Fix fsck crash (#576)
Co-authored-by: heran yang <heran.yang@seafile.com>
2022-09-14 14:40:40 +08:00
feiniks
20409feb2e Fix delete device error (#575)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-05 12:29:17 +08:00
feiniks
5ab20142e2 Fix memory leak for json_object_set (#570)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-27 18:34:05 +08:00
feiniks
571854c6f0 Delete virtual repo info (#569)
* Delete virtual repo info

* Don't del virtual repoinfo again

* Don't del VirtualRepo again

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-26 11:57:46 +08:00
feiniks
be260e4c6a Clear error when retry upload (#568)
* Clear error when retry upload

* Add go_log_level option

* Fix type mismatch

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-21 16:29:47 +08:00
feiniks
8c9043d2c6 Retry upload when detecting concurrent uploads (#564)
* Retry upload when detecting concurrent uploads

* Check conflict when update branch and set concurrent upload error

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-15 14:45:36 +08:00
feiniks
faf434def9 Add count of duplicate names to 1000 (#561) 2022-06-21 15:28:34 +08:00
feiniks
0db03851a0 File names in json format (#559) 2022-06-16 12:36:34 +08:00
feiniks
cf479cefc2 Add get repo by id prefix RPC (#557)
Add get repos by id prefix test

del ret_corrupted parameter
2022-05-30 14:07:58 +08:00
feiniks
2412de2897 Don't remove progress immediately when has internal error (#553) 2022-04-26 10:37:12 +08:00
feiniks
8843f529df Support client ipv6 address (#551)
* Support client ipv6 address

* Parse ipv6 for client
2022-04-09 18:34:38 +08:00
feiniks
c31e5dd25d Don't merge virtual repo when get a error which isn't path no exist (#548)
* Don't merge virtual repo when get a error which isn't path no exist

* Modify log info
2022-03-22 16:42:29 +08:00
feiniks
38528c8c97 Improve sql statement to delete RepoInfo and VirtualRepo (#544) 2022-02-22 12:11:39 +08:00
feiniks
c461250dfa Delete upload tmp file (#542)
* Delete upload tmp file

* Delete tmp file when upload finished

* Modify tmp_file_path to resumable_tmp_file
2022-02-12 11:29:39 +08:00
feiniks
df591aa8c2 Add --rm-fs option for gc (#541)
* Add --rm-fs option for gc

* Use local variables and print fs number

* Modify return value to gint64
2022-02-12 09:57:53 +08:00
feiniks
1fe89ff710 Update repofilecount compatibility for older version upgrades (#540) 2022-02-10 16:49:33 +08:00
feiniks
62fc07fe2e Don't restore repo when failed to get head commit and fix a memory leak (#532) 2021-12-18 10:26:35 +08:00
feiniks
1b004ce949 Delete RepoInfo when delete a repo (#530)
* Delete RepoInfo when delete a repo

* Use commit's ctime as update time
2021-12-15 10:43:36 +08:00
杨赫然
c158fd2767 Merge branch '8.0' 2021-12-14 17:45:05 +08:00
feiniks
b954d8e14c C add permission check (#529)
* C add permission check

* Fix ci error
2021-12-14 17:35:45 +08:00
杨赫然
3ef6fed844 Merge branch '8.0' 2021-12-09 11:53:41 +08:00
feiniks
e2b3437710 Fix memory leak (#527) 2021-12-08 17:25:33 +08:00
feiniks
a6287cca4c Improve upload and download log info (#524)
* Improve upload and download log info

* Modify return message

* Modify operation not match
2021-12-08 12:11:10 +08:00
feiniks
807867afb7 Return 403 when failed to validate repo_id of token (#522)
* Return 403 when failed to validate repo_id of token

* Return 403 when failed to validate repo_id of token
2021-12-02 18:06:44 +08:00