1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-07-16 08:15:51 +00:00
Commit Graph

67 Commits

Author SHA1 Message Date
feiniks
6ca4f18d31
Fix define type error (#604)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-16 11:37:47 +08:00
feiniks
9173f217a4
Send repo update event to notification server (#602)
* Send repo update event to notification server

* Add option to manage configuration

* Init default options at start

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-03-11 12:14:39 +08:00
feiniks
dcda34478f
go fileserver write header before write body (#591)
* go fileserver write header before write body

* Set json header when ret-json is true

---------

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-29 15:59:24 +08:00
feiniks
88438dd0fe
Fix edit origin repo error (#592)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-29 15:05:59 +08:00
feiniks
47efb16c92
Set fixed_block_size unit to M (#589)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2023-01-05 17:06:34 +08:00
杨赫然
852bc4bd38 Merge branch '9.0' 2022-12-29 13:47:54 +08:00
feiniks
5289841dd8
Fix error in calculating the number of blocks (#588)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-29 12:32: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
杨赫然
c0b7ba6013 Fix sql column error 2022-12-08 14:36:51 +08:00
杨赫然
079a8b65a5 Don't use cache when merge 2022-12-06 17:04:44 +08:00
feiniks
b936ee1eb1 go fileserver support enc v4 (#585)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:51:17 +08:00
杨赫然
5c741c15ca Merge branch '9.0' 2022-12-06 14:47:15 +08:00
feiniks
760937015d
go fileserver support enc v4 (#585)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:39:26 +08:00
feiniks
f02d2e5304
Fix root_id is empty in commit (#586)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 14:38:45 +08:00
feiniks
df78d10ec1 Reuse zlib ReadCloser and add timeout for get fs id list (#508)
* Reuse zlib ReadCloser and add timeout for get fs id list

* Reuse zlib reader

* Get seafile and seafdir with zlib reader

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Use json-iterator/go to parse fs objects (#510)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Add cache for seafdir (#511)

* Add cache for seafile and seafdir

* Add ttl for fs cache

* Use MB unit and add a comment

Co-authored-by: 杨赫然 <heran.yang@seafile.com>

Close object after reading finished (#512)

Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-12-06 10:45:39 +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
620438fbb5
Clean go unused log (#579)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-10-14 12:10:53 +08:00
feiniks
04350f2b99
Merge same repo once and check fs object is valid (#578)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-28 16:43:07 +08:00
feiniks
955d4c5277
Add workpool to calculate fs id list (#574)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-09-03 18:22: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
318e850ccb
Go Retry upload when detecting concurrent uploads (#567)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-20 11:25:58 +08:00
feiniks
e14e820d5e
Modify profile option (#566)
Co-authored-by: 杨赫然 <heran.yang@seafile.com>
2022-07-15 16:03:31 +08:00
feiniks
3a47cf7ab2
Fix normalize utf8 path for go (#565)
* Fix normalize utf8 path for go

* Fix normalize utf8 path for go
2022-07-13 18:18:32 +08:00
feiniks
2be8f28df6
Add enable_profiling option (#563) 2022-07-13 17:58:48 +08:00
feiniks
881c270aa8
Set unix time to repo token sync time (#558) 2022-05-30 14:10:18 +08:00
feiniks
e7f96976e9
Fix downloading non-ASCII filename (#555)
* Fix downloading non-ASCII filename

* Add comment

* Modify comment
2022-05-25 09:37:58 +08:00
feiniks
625957bbf9
Add profile for go fileserver (#554) 2022-05-23 17:38:51 +08:00
feiniks
5e33fc3476
Go fileserver support enc v3 repo (#552)
* Go fileserver support enc v3 repo

* add comment
2022-04-11 18:48:18 +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
96b33251ce
Modify log format and don't print network error (#546)
* Modify log format and don't print network error

* Don't print network error and content canceled error

* Modify function name
2022-03-02 16:03:16 +08:00
feiniks
35f6678c1c
Set zip suffix to zip file (#545) 2022-02-23 15:05:49 +08:00
feiniks
c3f50c53b6
Modify returned json message (#543) 2022-02-15 11:23:45 +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
524f227b02
Check block if exists before write block (#537) 2022-01-14 17:39:11 +08:00
feiniks
8027161e1a
Add log rotate for go fileserver (#534) 2021-12-22 17:03:15 +08:00
feiniks
1c2c981530
Fix get fs-id-list for virtual repos (#533) 2021-12-22 16:01:21 +08:00
feiniks
2931328df6
Set Access Control headers (#531) 2021-12-18 09:48:52 +08:00
feiniks
f588d926de
Go add permission check (#528) 2021-12-14 17:38:03 +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
96884a83a0
Validate token return 403 for go (#523) 2021-12-02 18:30:22 +08:00
feiniks
273e44c18e
Validate repo_id when validate token from cache for go (#521) 2021-12-01 16:03:17 +08:00
feiniks
a967d5094f
Encode json data in a specific format (#513)
* Encode json data in a specific format

* Convert fs to json when save fs
2021-11-19 11:01:29 +08:00
feiniks
fc57f6a3ae
Replace Dup2 with Dup3 (#514) 2021-11-18 18:01:29 +08:00
feiniks
da084f7bbc
Return StatusPartialContent for request of range (#512) 2021-11-16 10:43:37 +08:00
Xiangyue Cai
32a6777536
handle OPTIONS method (#511) 2021-11-08 12:32:09 +08:00
Xiangyue Cai
086327d369
fix parse fileserver option (#510) 2021-11-04 14:59:46 +08:00
sun20121818
cb6cf3764f
Add a config for go fileserver (#497)
* Add a config for go fileserver

* Change after review.

* Change after review
2021-10-15 16:11:26 +08:00
Xiangyue Cai
0556b641a3
fix url (#499) 2021-09-29 17:09:02 +08:00
Xiangyue Cai
c2006c5443
improve log (#498)
* improve log

* write header after internal server error
2021-09-29 17:08:39 +08:00
Xiangyue Cai
31c017d2c8
fix retry to update branch (#495)
* fix retry to update branch

* improve code
2021-09-27 17:50:03 +08:00