1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-15 05:25:02 +00:00
Commit Graph

354 Commits

Author SHA1 Message Date
feiniks
5899f110b9
Add online gc (#706)
* Add online gc core

* Add check gc when update repo

* Go add check gc when update repo

* Add gc unit test

* Support set pwd_hash for gc and fsck

* Optimize to check if block exists

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-24 18:34:16 +08:00
feiniks
6af96fe1d2
Log format (#704)
* Format c log

* Format go log

* Add SEAFILE_LOG_TO_STDOUT env

* Modify parameters name

* Set stdout to output

* Add app name and print error log

* Disable daemon mode when SEAFILE_LOG_TO_STDOUT is true

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-10-24 10:46:41 +08:00
feiniks
1afed5d770
Support archive files with same name (#705)
* Support archive files with same name

* Go support archive files with same name

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-27 17:20:04 +08:00
feiniks
6649fada8c
Parse file path from url (#702)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-19 16:59:35 +08:00
feiniks
8085a65174
Unescape filename (#701)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-18 18:22:29 +08:00
feiniks
61126d108c
Add json exp (#699)
* Add json exp

* Add json exp and add gen jwt token

* Gen seahub and notif jwt token

* Add exp for gen jwt token

* Delete gen_jwt_token API

* Delete set exp to 72 hour

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-18 17:59:24 +08:00
feiniks
f27ab0847b
Return error message when query share link info (#698)
* Return rsp content when query share link info

* Add parse error message

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-13 18:33:41 +08:00
feiniks
c80bf17efb
Add batch del files RPC (#694)
* Add batch del files RPC

* Add pack multi-level files

* Go add pack multi-level files

* Use change set to batch del files

* Improve args

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-13 14:58:45 +08:00
feiniks
b2bde11d89
Add download file API (#696)
* Add download file API

* Go add download file API

* Set http header and return http error

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-12 11:02:41 +08:00
feiniks
f0c95b4e77
Use JWT_PRIVATE_KEY (#697)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-10 15:43:25 +08:00
feiniks
597f4bbfa6
Read site_root from env (#692)
* Read site_root from env

* Go read site_root from env and match slash

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-06 17:17:06 +08:00
feiniks
d01c46e2f9
Add cookie to check share link access (#691)
* Add cookie to check share link access

* Modify user agent and add timeout

* Add filename to attachment

* Go set filename to attach

* C set filename to attachment

* Adjust position of check priviate key

* Set Content-Type and User-Agent

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-06 11:40:42 +08:00
feiniks
f3f818881f
Add read JWT_PRIVATE_KEY (#690)
* Add read JWT_PRIVATE_KEY

* Go add read JWT_PRIVATE_KEY

* Add seahub_settings.py

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-03 18:43:11 +08:00
feiniks
1e8278122f
Set salt when use pwd_hash (#688)
* Use fixed repo salt

* Set default value

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-03 18:33:43 +08:00
feiniks
95bad895b4
Add upload link and download link API (#683)
* Add upload link and download link API

* Use go 1.22 for ci

* Go add upload link API

* Add norm UTF8 path

* Go add upload link API

* Add seahub_settings.py

* Add projectDir

* Add download link API

* Set and check etag

* Add comment and set no-cache

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-03 18:19:37 +08:00
feiniks
59a9f28f70
Rpc server use epoll (#687)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-29 15:31:32 +08:00
feiniks
b5b37e69e0
Add check Authorization header (#686)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-29 15:28:41 +08:00
feiniks
4f450ea8e0
Delete RepoTokenPeerInfo when del repo (#684)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-22 18:08:29 +08:00
feiniks
026a6d504f
Don't delete fs and block when failed to verify (#680)
* Don't delete fs and block when failed to verify

* Modify log and remove block

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-08-12 11:17:58 +08:00
feiniks
9492a75d0d
Fix set repaired files error (#678)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-12 10:41:53 +08:00
feiniks
31c81c1f28
Don't create repo_id unique index (#679)
* Don't create repo_id unique index

* Add index when create WebUploadTempFiles

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-09 17:45:43 +08:00
feiniks
a535c64d13
Use Authorization header (#675)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-01 11:25:31 +08:00
feiniks
77fa08566b
Add gen_jwt_token RPC (#674)
* Add gen_jwt_token RPC

* Set error when failed to generate jwt token

* Modify RPC name

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-31 18:03:41 +08:00
feiniks
49c860b50d
Get nickname use seahub API (#670)
* Get nickname use seahub API

* Add parse site_root

* Use regex to match SECRET_KEY

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-30 17:58:18 +08:00
feiniks
7d26e0a8f4
Skip merge when post files with replace existed (#671)
* Skip merge when post files with replace existed

* Use handle_concurrent_update to check if merge commits

* Go handle concurrent update

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-27 10:39:09 +08:00
feiniks
6c056c1f6b
Add last_modify field in form (#666)
* Add last_modify field in form

* Go add last_modify field in form

* Use rfc3339 time format

* Add mtime for upload_blks_api

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-23 18:52:15 +08:00
feiniks
de3ddbce82
Create parent dirs when revert file (#667)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-23 11:27:49 +08:00
杨赫然
11d4741224 Merge branch '11.0' 2024-07-16 17:37:24 +08:00
feiniks
ba9476d67b
Create repo add pwd_hash and don't read pwd_hash from seafile.conf (#665)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-16 16:42:37 +08:00
feiniks
d51591d8f7
get nickname from seahub database (#663)
* Add parse seahub database config

* Get nickname from seahub database

* Go get nickname from seahub database

* Save output of script to memory and fix some errors

* Add exec permission and free child_output

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-10 16:34:33 +08:00
feiniks
49168a140c
Add ETag for access file (#664)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-09 16:58:35 +08:00
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
4ca723d183
Fix the inability to move files with special characters (#656)
* Fix the inability to move files with special characters

* Check json file list

* Don't need to check json list

* Set SEAF_ERR_BAD_ARGS when args is wrong

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-05-06 17:55:04 +08:00
feiniks
b9e98c2b5e
Add repair-repo to fix corrupt fs (#657)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-04-29 15:34:38 +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