1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-17 23:59:44 +00:00
Commit Graph

802 Commits

Author SHA1 Message Date
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
993d464cda Return 400 when find blank line after boundary (#456) 2021-03-11 16:24:32 +08:00
Xiangyue Cai
3a3c29e963 disable async compute fs id list (#455) 2021-03-11 16:19:25 +08:00
feiniks
8b18e4be51 Search files should use store id (#454) 2021-03-08 17:25:14 +08:00
Xiangyue Cai
d1e57781b5 add block map cache (#452) 2021-02-26 18:09:04 +08:00
feiniks
e71d76de98 Add test config options (#451) 2021-02-22 10:12:08 +08:00
feiniks
90427f9f78 Set compute fs-id-list thread to 10 (#450) 2021-02-22 10:07:07 +08:00
Jonathan Xu
02d3ca7edc Fix detection of upload boundary.
Sometime a boundary can be splitted and received in two read operations.
2021-02-18 09:52:37 +08:00
Xiangyue Cai
5090725ff8 stop task when request canceled (#449) 2021-02-07 17:21:18 +08:00
杨赫然
705a1dd0eb Merge branch '8.0' 2021-02-05 15:40:48 +08:00
Xiangyue Cai
31c1f3f7f3 uniform log date format (#447) 2021-02-05 15:30:15 +08:00
feiniks
814b796038 Close connection when failed to query mysql (#446)
* Close connection when failed to query mysql (#318)

* Close connection when failed to query mysql

* Close connection when failed to handle transaction

* Fix ci error
2021-02-01 16:02:47 +08:00
feiniks
44a2ce41d1 Add ccnet config for fuse (#443) v8.0.3-server 2021-01-21 11:44:07 +08:00
feiniks
69d9e53bac Add USE_GO_FILESERVER variable (#442) 2021-01-18 11:30:36 +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
Jiaqiang Xu
72ec4c56c6 Revert "Improve fs-id-list API (#431)" (#440)
This reverts commit 7d9a03ec75.
2021-01-05 15:07:52 +08:00
feiniks
6621313064 Update repo size need to be after merge virtual repo (#439) 2021-01-05 14:52:21 +08:00
feiniks
7d9a03ec75 Improve fs-id-list API (#431)
* Improve fs-id-list API

* Del unused log

* Del invalid parameter log

* Don't return json error
2021-01-05 14:51:43 +08:00
欢乐马
a9d1347152 sql 8.0 repo_auto_delete (#438) v8.0.2-server 2021-01-04 15:04:22 +08:00
Jiaqiang Xu
7420b8d738 Go fileserver (#437)
* Initial commit for fileserver written in golang.

[gofileserver] Fix some syntaxt errors.

Add fs backend and objstore test (#352)

* Add fs backend and objstore test

* modify test case and optimize fs backend

* Modify function name and first write temporary files

* Don't need to reopen the temp files

Add comment for objstore (#354)

* Add comment for objstore

* Modify comment

Add commitmgr and test case (#356)

* Add commitmgr and test case

* Redefine the interface

* Modify comment and interface

* Modify parameter and del unused method

* Add comment for FromData and ToData

Add blockmgr and test case (#357)

* Add blockmgr and test case

* Modify comment and interface

Add fsmgr and test case (#358)

* Add fsmgr and test case

* Add save interface and error details

* Modify errors and comments

Add searpc package and test case (#360)

* Add searpc package

* Add searpc test case

* Add return error and add Request struct

* Modify returned error

* Modify comments

add checkPerm (#369)

Add file and block download (#363)

* Add file and block download

* Modify init and use aes algorithm

* Get block by offset and add stat method

* Modify objID's type

* Fix reset pos after add start

* Add http error handing and record log when failed to read block or write block to response

* Modify http return code and value names

* Modify http return code and add log info

* Block read add comment and only repeat once

load ccnetdb and support sqlite (#371)

Add zip download (#372)

* Add zip download

* Modify pack dir and log info

* Modify http return code and use Deflate zip compression methods

add /repo/<repo-id>/permission-check (#375)

add /<repo-id>/commit/HEAD (#377)

add  /repo/<repo-id>/commit/<id> (#379)

add /repo/<repo-id>/block/<id> (#380)

add /repo/<repo-id>/fs-id-list (#383)

add /repo/head-commits-multi (#388)

Add file upload api (#378)

* Add file upload api

* Upload api implements post multi files and create relative path

* Modify handle error and save files directly

* Fix rebase conflict

* index block use channel and optimize mkdir with parents

* Handle jobs and results in a loop

* Mkdir with parents use postMultiFiles and use pointer of SeafDirent

* Del diff_simple size_sched virtual_repo

* Need to check the path with and without slash

* Modify merge trees and add merge test case

* Del postFile and don't close results channel

* Close the file and remove multipart temp file

* Modify merge test case and compare the first name of path

* Use pointer of Entries for SeafDir

* Add test cases for different situations

add /repo/<repo-id>/pack-fs (#389)

add POST /<repo-id>/check-fs and /<repo-id>/check-blocks (#396)

Merge compute repo (#397)

* Add update repo size and merge virtual repo

* Eliminate lint warnings

* Uncomment merge virtual repo and compute repo size

* Need init the dents

* Use interface{} param and modify removeElems

* Move update dir to file.go and modify logs

* Del sync pkg

add PUT /<repo-id>/commit/<commit-id> (#400)

add PUT /<repo-id>/block/<id> (#401)

add POST /<repo-id>/recv-fs (#398)

add PUT /<repo-id>/commit/HEAD (#402)

Add http return code (#403)

Add file update API (#399)

* Add file update API

* Add GetObjIDByPath and fix change size error

* Add traffic statistics for update api

add diffTrees unit test (#391)

add GET /accessible-repos (#406)

add GET /<repo-id>/block-map/<file-id> (#405)

Add test update repo size and merge virtual repo (#409)

* Update dir need update repo size

* Add test update repo size and merge virtual repo

* Add delay for test ajax

* Add delay before get repo size and modify comment

Use go fileserver for unit test (#410)

* Use go fileserver for unit test

* Blocking scheduling update repo size

* Add delay because of sqlite doesn't support concurrency

* Post use multipart form encode

* Del mysql database when test finished

* Fix merge virtual repo failed when use sqlite3

Add upload block API (#412)

fixed error

Add quota-check API (#426)

use diff package

* Use central conf for go fileserver (#428)

* Use central conf for go fileserver

* Fix log error

* use store id and remove share get repo owner (#430)

* Fix permission error (#432)

Co-authored-by: feiniks <36756310+feiniks@users.noreply.github.com>
Co-authored-by: Xiangyue Cai <caixiangyue007@gmail.com>
2021-01-04 11:41:53 +08:00
欢乐马
686755f474 fix 8.0 sql (#436) 2021-01-04 11:18:30 +08:00
feiniks
3130d27b5d Don't check block integrity when block is missing (#429)
* Don't check block integrity when block is missing

* Continue check block when block is missing and don't set io error when block is missing
v8.0.1-server
2020-12-24 12:13:26 +08:00
feiniks
f31ec3bfc4 Handle upload boundary without CRLF (#427)
Handle boundary for form field without CRLF
2020-12-22 18:38:44 +08:00
Daniel Pan
193ec9381e Merge pull request #425 from haiwen/8.0.0-sql
add 8.0.0 sql
2020-12-07 16:53:36 +08:00
skywalker
2a9528e99e add 8.0.0 sql 2020-12-07 16:40:20 +08:00
杨赫然
1288c1ec10 Merge branch '7.1' 2020-12-04 16:35:23 +08:00
欢乐马
218dbe182a add upgrade_7.1_8.0.sh (#424) 2020-12-04 16:20:15 +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
欢乐马
603d7046b0 fix setup sqlite (#422) v8.0.0-server 2020-11-25 11:45:41 +08:00
杨赫然
642ab7acc2 Merge branch '7.1' 2020-11-24 17:57:49 +08:00
feiniks
b8ba9feee1 Seafile controller remove ccnet and use seaf-server for test (#420) 2020-11-24 12:05:16 +08:00
Daniel Pan
ef188f6de7 Merge pull request #418 from haiwen/remove-ccnet-init
remove ccnet-init
2020-11-20 21:18:47 +08:00
skywalker
2fc4579b44 remove ccnet-init 2020-11-20 15:37:03 +08:00
feiniks
be8231ffc2 Add search files RPC (#417)
* Add search files RPC

* Not case sensitive when searching files
2020-10-27 18:06:37 +08:00
feiniks
50ab9a8ffe Get group members add LIMIT (#416) 2020-10-15 15:26:01 +08:00
feiniks
063bf731c7 Get group members add LIMIT (#415) seatable-1.4.0 seatable-1.5.0 seatable-1.6.0 2020-10-15 15:24:04 +08:00
Xiangyue Cai
005b0503d2 Allow seafdav to access seahub_settings.py (#414) 2020-10-10 16:53:02 +08:00
feiniks
4d65689c79 Return db error when failed to connect mysql (#413) 2020-09-25 10:56:59 +08:00
feiniks
7ff3282975 Support encrypted repo of V4 (#411)
* Support encrypted repo of V4

* Use aes128 for V3 encrypted repo
2020-09-22 17:06:15 +08:00
feiniks
11b3fc45e3 Fsck add log when block is missing (#407) v7.1.5-server 2020-09-15 18:33:45 +08:00
feiniks
cd9bb75e63 Add content security policy when access file (#395) 2020-08-29 19:51:18 +08:00
Xiangyue Cai
17198b7527 use nonblock pipe (#392) 2020-08-24 18:23:05 +08:00
feiniks
3520282c22 Fix set group repo perm error (#394) 2020-08-24 18:21:42 +08:00
Xiangyue Cai
49332dfdb8 redirect seafdav python stderr to controller.log (#387) 2020-08-06 18:13:12 +08:00
feiniks
debc83cda5 Add check if dir downloadable rpc (#381)
* Add check if dir downloadable rpc

* modify format error
2020-07-22 16:13:21 +08:00
Jiaqiang Xu
1bb04296cf Revert "Add storage_id for create enc repo api (#373)" (#376)
This reverts commit ab167da336.
2020-07-08 22:03:51 +08:00
feiniks
ab167da336 Add storage_id for create enc repo api (#373) 2020-07-08 21:57:04 +08:00
Daniel Pan
56e8554b57 Merge pull request #370 from haiwen/sqlite-mysql
fix bug
2020-07-02 16:24:40 +08:00
lian
b1a2d4ddf4 fix bug 2020-07-02 16:20:18 +08:00
feiniks
cf7e938a33 Fix error when set max_connections to 0 (#366) 2020-06-28 12:02:46 +08:00