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
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