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
72753e152b
Return error when failed to get user from database ( #700 )
...
* Return error when failed to get user from database
* Use CCNET_ERR_INTERNAL
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-18 16:28:15 +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
594bed8c41
Read JWT_PRIVATE_KEY from env ( #695 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-09-10 14:44:45 +08:00
feiniks
a1f2311bbf
Merge pull request #693 from haiwen/del_seahub_conf
...
Delete seahub_settings.py
2024-09-06 17:34:29 +08:00
杨赫然
0271675fd0
Delete seahub_settings.py
2024-09-06 17:26:50 +08:00
杨赫然
1467518615
Delete seahub_settings.py
2024-09-06 17:21:07 +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
6944257cc8
Add timeout when query from database ( #685 )
...
* Add timeout when query from database
* Modify DefaultTimeout to DBOpTimeout
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-29 15:10:55 +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
95f4fb3809
Set max conn and add read and write timeout ( #682 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-22 18:06:15 +08:00
feiniks
738716496a
Fix security issue and add go linter ( #677 )
...
* Fix security issue and add go linter
* Fix error checked by golangci-lint
* Delete jwt-go pkg
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-12 14:59:45 +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
9930112249
Go use Authorization header ( #676 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-02 10:35:03 +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
0a084d3c8a
Don't print log when db password is ! ( #673 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-07-31 11:56:56 +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
06851a12c1
Set repo_type when convert repo ( #661 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-06-20 18:39:14 +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
9f5fcdfe4d
Add trace of pprof ( #655 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-26 18:04:00 +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
1aa3b30c66
Delete unused doc ( #653 )
...
Co-authored-by: yangheran <heran.yang@seafile.com>
2024-03-26 14:30:54 +08:00
feiniks
549c6b827f
Add error log for block write failed ( #652 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-14 17:10:28 +08:00
feiniks
058b7405f1
Fix download file traffic statistics error ( #651 )
...
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-13 19:49:03 +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
bd6b87c2e5
Support error log rotate and notification log rotate ( #649 )
...
* Support error log rotate and notification log rotate
* Add comment
* Modify log name
---------
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-03-12 22:47:43 +08:00