1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-14 04:56:21 +00:00
Commit Graph

58 Commits

Author SHA1 Message Date
feiniks
c7cf6f7d51
Don't record http method (#754)
Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-08 18:17:31 +08:00
feiniks
6f2927c0d2
Use seaf->http_server->priv after set evhtp hook (#749)
* Use seaf->http_server->priv after set evhtp hook

* Fix ci error

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-04-02 16:33:31 +08:00
feiniks
490f8d431c
Add metrics (#747)
* Add metrics

* Add obj_cache in session

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
2025-03-31 16:46:24 +08:00
feiniks
ee9ad5ef39
Return 409 when gc conflict (#731)
* Return 409 when gc conflict

* Go return 409 when gc conflict

* Return gc conflict when sync repo

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-30 15:03:54 +08:00
feiniks
c11e8ccbe9
Send events use json format (#726)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-12-13 11:01:24 +08:00
feiniks
aaa7819c34
Use post and add ip addr and user agent (#719)
* Use post and add ip addr and user agent

* Go add ip addr and user agent

* Adjust gc unit test

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-25 15:59:24 +08:00
feiniks
d727249a08 Check if file or dir is .. (#711)
* Check if file or dir is ..

* Diff and check name is ..

* Go diff and check name is ..

* Check if ignore new name or name

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-20 16:21:51 +08:00
feiniks
665d0083bd
Add verify blocks after sync (#715)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-11-18 11:34:38 +08:00
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
b5b37e69e0
Add check Authorization header (#686)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2024-08-29 15:28:41 +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
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
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
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
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
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
8843f529df
Support client ipv6 address (#551)
* Support client ipv6 address

* Parse ipv6 for client
2022-04-09 18:34:38 +08:00
feiniks
b954d8e14c
C add permission check (#529)
* C add permission check

* Fix ci error
2021-12-14 17:35:45 +08:00
feiniks
e2b3437710
Fix memory leak (#527) 2021-12-08 17:25:33 +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
feiniks
ea2e328624
Validate repo_id when validate token from cache (#520) 2021-12-01 14:13:47 +08:00
Xiangyue Cai
2844d69d94
remove redundant log (#477) 2021-07-09 15:21:26 +08:00
caixiangyue
baa76682ea Revert "Set compute fs-id-list thread to 10 (#450)"
This reverts commit 90427f9f78.
2021-03-17 15:36:29 +08:00
Xiangyue Cai
3a3c29e963
disable async compute fs id list (#455) 2021-03-11 16:19:25 +08:00
feiniks
90427f9f78
Set compute fs-id-list thread to 10 (#450) 2021-02-22 10:07:07 +08:00
feiniks
f94baf09c3
Improve fs-id-list API (#431) (#441)
* Improve fs-id-list API

* Del unused log

* Del invalid parameter log

* Don't return json error
2021-01-05 15:14:02 +08:00
feiniks
4a0eb5431c
Get accessible repo list return 500 when db error exists (#423)
* Get accessible repo list return 500 when db error exists

* CI should use 7.1 branch
2020-11-28 14:40:27 +08:00
feiniks
3520282c22
Fix set group repo perm error (#394) 2020-08-24 18:21:42 +08:00
feiniks
50882b41f4
Regularly cleanup files in the httptemp directory (#343)
* Regularly cleanup files in the httptemp directory

* Add scan http temp dir default configuration

* Fix mem leak for scan httptemp dir

* Modify int to gint64
2020-05-20 18:36:38 +08:00
feiniks
500e35fe9b
Fix segment fault when group_repos is NULL (#338)
* Fix segment fault when group_repos is NULL

* Parse group repos when repos is not NULL
2020-04-10 19:56:53 +08:00
feiniks
5dd4148b5f
Add get accessible repo list API on seafhttp (#327)
* Add get accessible repo list API on seafhttp

* Return once per repo

* Fix get owner and distinguish org

* Del handle org

* when the repo is shared to multi group,get the highest permission

* if last permission is rw,ignore it
2020-03-19 15:02:16 +08:00
Xiangyue Cai
efeac4bb99 add seaf_mq_manager_ prefix 2019-08-05 16:41:31 +08:00
caixiangyue
3ff52aee8a fixed wrong free 2019-07-26 14:14:38 +08:00
Jonathan Xu
f9686872d7 Merge branch '7.0' 2019-07-25 17:55:37 +08:00
Xiangyue Cai
aa0185203b add rpc publish_event() , pop_event() and remove cevent (#253) 2019-07-22 11:18:32 +08:00
ly1217
48c2a03d5f Fix get repo status. (#252) 2019-07-17 10:16:29 +08:00
Jonathan Xu
c142d4bf4f Improve code after use named pipe for RPC and support python 3. 2019-07-01 16:50:25 +08:00
ly1217
c73916ef77 Upadte to python3. 2019-06-27 22:30:31 -07:00
Jiaqiang Xu
3f5b7e4025
Merge pull request #210 from haiwen/optimize_rename_delete
Optimize cleaning-up of virtual repos and renaming, deleting operations.
2019-03-25 18:46:12 +08:00
cuihaikuo
7fe43a0248 Optimize cleaning-up of virtual repos and renaming, deleting operations. 2019-03-24 20:37:04 +08:00
cuihaikuo
22f096a70a Repo can be set 'read-only' or 'normal' status.
Return 'status' in get_repo(s) apis.
2019-03-14 11:07:42 +08:00
ly1217
d851199f06 Add byte-range upload. 2019-02-19 01:18:31 -08:00
Jonathan Xu
ef362bda37 Ignore 'need_idx_progress' parameter when handling upload requests.
There is a bug in cloud file browser that can cause high number of concurrent uploads.

Also reduce the number retries when updating head commit in db.
2018-12-08 11:37:54 +08:00
cuihaikuo
6669fdce86 Return 400 if base commit is lost when syncing. 2018-09-05 14:36:07 +08:00
cuihaikuo
ac5f26fef8 Support traffic statistics. 2018-08-10 17:47:19 +08:00
cuihaikuo
5a443b1bf8 Exit if failed to init http request.
Fix rollback issue.
2018-03-23 17:44:22 +08:00
cuihaikuo
caee7ef963 Support background task for indexing blocks. 2018-02-06 14:37:27 +08:00
cuihaikuo
bb89603e5b Fix sql syntax. 2018-01-05 13:01:47 +08:00
Jonathan Xu
79b43a0490 [fileserver] Add API to check repo head commit ids in batch. 2017-10-11 15:44:08 +08:00
Jonathan Xu
b7a18d70d0 Merge branch '6.1' 2017-09-13 13:53:03 +08:00