1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-05-15 19:39:35 +00:00
Commit Graph

11 Commits

Author SHA1 Message Date
杨赫然
1467518615 Delete seahub_settings.py 2024-09-06 17:21:07 +08:00
feiniks
f3f818881f
Add read JWT_PRIVATE_KEY ()
* 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
95bad895b4
Add upload link and download link API ()
* 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
Jiaqiang Xu
7420b8d738
Go fileserver ()
* Initial commit for fileserver written in golang.

[gofileserver] Fix some syntaxt errors.

Add fs backend and objstore test ()

* 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 ()

* Add comment for objstore

* Modify comment

Add commitmgr and test case ()

* 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 ()

* Add blockmgr and test case

* Modify comment and interface

Add fsmgr and test case ()

* Add fsmgr and test case

* Add save interface and error details

* Modify errors and comments

Add searpc package and test case ()

* Add searpc package

* Add searpc test case

* Add return error and add Request struct

* Modify returned error

* Modify comments

add checkPerm ()

Add file and block download ()

* 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 ()

Add zip download ()

* 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 ()

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

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

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

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

add /repo/head-commits-multi ()

Add file upload api ()

* 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 ()

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

Merge compute repo ()

* 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> ()

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

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

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

Add http return code ()

Add file update API ()

* Add file update API

* Add GetObjIDByPath and fix change size error

* Add traffic statistics for update api

add diffTrees unit test ()

add GET /accessible-repos ()

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

Add test update repo size and merge virtual repo ()

* 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 ()

* 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 ()

fixed error

Add quota-check API ()

use diff package

* Use central conf for go fileserver ()

* Use central conf for go fileserver

* Fix log error

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

* Fix permission error ()

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
Jonathan Xu
7ad4efc226 [tests] Add CREATE_TABLES option to ccnet.conf in tests/conf. 2019-04-11 11:41:11 +08:00
cuihaikuo
dd0519d7c3 Create tables by script. 2019-03-28 14:20:33 +08:00
cuihaikuo
f10d13a703 Add default config file. 2018-05-16 11:41:00 +08:00
Shuai Lin
b2d058badc
Add functional tests ()
* functional tests setup

* add a test case
2018-01-16 17:10:26 +08:00
cuihaikuo
a5c966ef14 Remove database configurations in ccnet.conf 2017-09-07 14:49:19 +08:00
Jonathan Xu
3e42e2d0b5 Merge branch '6.1' 2017-08-23 15:28:19 +08:00
Jiaqiang Xu
6077c4828e Add tests config files and modified .gitignore. 2016-09-19 17:06:47 +08:00