Commit Graph

28 Commits

Author SHA1 Message Date
feiniks
8e0e9ce76b
Checkout file directly (#2781)
* Checkout file directly

Add download progress

Return error when cancel task

Check if usr is NULL when get notif server

Adjust code struct

Checkout file from offset

Don't use http task

Adjust function parameters

* Support set file_id attr to tmp file

* user error_id to check failed

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-07-03 16:46:58 +08:00
feiniks
1e4556e4c1
Use username as conflict file name and add username field to commit (#2786)
* Use username as conflict file name and add username field to commit

* Add comment for username and creator_name

---------

Co-authored-by: yangheran <heran.yang@seafile.com>
2024-06-28 15:00:11 +08:00
feiniks
3290f3fd80
Get notification from server (#2527)
* Get notification from server

Don't sync repo when repo is subscribed

Get notification from server

* Disconnect notification server when subscribed repos is 0 and modify log info

* Add jwt certification

* Use server lock

* VS add libwebsockets

* Add check notification server

* Check notif server once

* Check locks and folder perms after fileserver is recovered

* Add comment

Co-authored-by: heran yang <heran.yang@seafile.com>
2022-12-24 16:51:55 +08:00
Jiaqiang Xu
afe5c026af
Merge pull request #2234 from haiwen/refactor-sync-error
Refactor sync error
2019-08-27 15:42:42 +08:00
Jonathan Xu
434303cba5 Fix bugs in error notification refactor. 2019-08-21 14:54:09 +08:00
Jonathan Xu
c73fe3f949 Refactor sync error recording and notification. 2019-08-20 16:51:11 +08:00
Jonathan Xu
480222133c Revert "use finishing blocks to calculate downloading process"
This reverts commit 75c61a19c7.
2019-07-31 18:38:17 +08:00
caixiangyue
874141f9d3 use finishing blocks to calculate downloading process 2019-07-31 17:59:48 +08:00
caixiangyue
75c61a19c7 use finishing blocks to calculate downloading process 2019-07-31 17:21:46 +08:00
ly1217
55c2b5defb Add two sync error strings. 2018-09-28 01:24:47 -07:00
ly1217
0e15929beb Only net error retry in clone process. 2018-09-20 01:09:18 -07:00
Jonathan Xu
d2bd43e135 Show more precise error message in main window when file is locked on server.
"File is locked by another user on server" instead of "Access denied".
2018-02-23 16:22:53 +08:00
Jonathan Xu
b50b513fe7 Check synced repo head commit ids in batch. 2017-11-07 10:42:29 +08:00
Jiaqiang Xu
64635b19d9 Return error detail for clone and sync tasks. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
506c6cccc4 [win] Auto lock office file when it's opened. 2016-03-16 16:31:09 +08:00
Jiaqiang Xu
f3f6fd4b12 [client] Record download fs objects progress for clone tasks. 2015-12-22 14:43:00 +08:00
Jiaqiang Xu
bad4c61d96 [client] Popup notification when file conflicts.
In order to detect conflict files, we also change the conflict suffix
to "(SFConflict username time-of-day)".
2015-09-10 15:42:35 +08:00
Jiaqiang Xu
426d16f3be [client] Multi-threaded block transfer. 2015-07-28 16:54:04 +08:00
Jiaqiang Xu
c67a4341e4 [client] File lock support.
Conflicts:
	daemon/repo-mgr.c
	daemon/sync-mgr.c
	daemon/sync-mgr.h
2015-07-03 11:31:07 +08:00
Jiaqiang Xu
91928b9396 Fix a few bugs related to deleting repos on server.
Server:
- Delete entries from Branch and RepoHead tables;
- Restore entries to Branch and RepoHead tables from repo trash.
- When client checks head commit, return DELTED if no entry in
  Repo table.
- When client checks upload/download permission, return DELETED
  if repo doesn't exist.

Client:
- Handle repo DELETED situation in upload/download thread.
2015-06-27 15:59:17 +08:00
Jiaqiang Xu
7a97fc055d [client] Use http-sync exclusively for repos version > 0.
For repo version > 0, if requests to '/seafhttp/*' urls fail,
and https is not used, fall back to send requests to 8082 port directly.
2015-05-07 10:49:26 +08:00
Jiaqiang Xu
9838f69417 [client] Fix conflict handling bug in clone.
A conflict file cannot be produced.
2015-04-02 18:55:48 +08:00
Jiaqiang Xu
8e3855bca6 [client] Folder permission support. 2015-01-09 17:13:43 +08:00
Jiaqiang Xu
ffe1995e81 [client] Minor improvements to locked file handling.
* Don't load locked file set on Linux/Mac.
* Use dedicated sync error message for locked file.
2014-12-13 13:34:08 +08:00
Jiaqiang Xu
a078be1981 Improve http sync server and remove fileserver. 2014-10-29 21:14:29 +08:00
Jiaqiang Xu
422b802545 [client] Http download. 2014-10-29 21:14:29 +08:00
Jiaqiang Xu
4d5bf52827 [client] Http upload. 2014-10-29 17:50:18 +08:00
Jiaqiang Xu
be2c492657 [client] Add http transfer manager and implement check head commit. 2014-10-29 17:50:18 +08:00