Commit Graph

621 Commits

Author SHA1 Message Date
Jonathan Xu
1a6d320a71 Improvements to rename library folder name.
- Retry rename on restart if failed.
- Don't rename library folder if it's not the same as library name at the beginning.
2017-09-25 17:15:13 +08:00
Jonathan Xu
250fd6fc96 Update worktree folder name when repo name is changed. 2017-09-23 17:07:55 +08:00
Jonathan Xu
1e1cd0ba35 Return error if repo name contains invalid characters when cloning a repo. 2017-09-21 15:40:32 +08:00
Jiaqiang Xu
de51237334 Fix a case where upload percentage can be larger than 100%.
How to reproduce:
1. Copy a folder with lots of small files and total size > a few 100MB to a library.
2. After the above folder is copied, copy another 50MB file into the library.
2017-07-12 13:23:42 +08:00
Jonathan Xu
31dcd9283a Use 8MB as average block size.
And be compatible with files chunked with the old block size.
2017-06-30 16:30:52 +08:00
Jonathan Xu
0ea81583bf Update local repo name after it's changed on server. 2017-06-28 17:45:58 +08:00
Jonathan Xu
d132dc96aa Add timeouts to network operations.
Except for getting fs id list from server on clone.
2017-06-26 17:43:42 +08:00
Jonathan Xu
9ab37b3e44 Release all connections in connection pool after 3 consecutive errors. 2017-06-13 17:08:39 +08:00
Jonathan Xu
8f64c3e66b Handle possible crash case when setting local file permissions. 2017-06-12 11:26:21 +08:00
Jonathan Xu
b43d60605d [Mac] Remove unnecessary option when monitor worktree. 2017-05-25 20:38:40 +08:00
Shuai Lin
739c4eb4d7 include curl header in seaf-daemon.c 2017-05-25 11:45:44 +08:00
Jonathan Xu
7c7baddf2f Call curl_global_init() at the beginning of program. 2017-05-25 11:34:20 +08:00
Jonathan Xu
549a09039f Fix compilation for libssl 1.1. 2017-02-25 15:27:46 +08:00
Jonathan Xu
7c50492614 When a file is committed on rename, add its size into total commit size. 2017-02-21 13:33:45 +08:00
Jonathan Xu
bc83c3a5ef Fix some compile warnings. 2017-02-10 16:11:12 +08:00
Jonathan Xu
fe636dce8b Clear task error when retry failed clone tasks. 2017-01-04 18:33:52 +08:00
Jonathan Xu
0e181b58e2 Some BSD compile fixes.
Thanks to Daniel Ölschlegel <amoibos@gmail.com>.
2016-12-27 18:48:56 +08:00
Jonathan Xu
5f030ac463 Fix a compile error when use gpl crypto libraries. 2016-12-24 14:32:47 +08:00
Jonathan Xu
9ead52ce0d Fix some bugs.
- Fix block sha1 calculation.
- Fix a corner case in error handling in upload.
- Add back integration-tests folder.
2016-12-22 14:39:43 +08:00
Jonathan Xu
232af69506 Allow compiling with GPL-compatible crypto libraries. 2016-12-22 14:39:43 +08:00
Jonathan Xu
95cf1b8b40 Remove server code. 2016-12-22 14:39:43 +08:00
Jiaqiang Xu
f2e3bdc8dc [win] Load intermediate CAs from system store. 2016-12-17 10:17:02 +08:00
Jonathan Xu
656666a9af Use unified progress for multipart uploads. 2016-12-16 15:17:37 +08:00
Jonathan Xu
f7f8356283 [win] Fix a crash bug when check out file with invalid path. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
19fa2324fb Save file sync errors to database. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
64635b19d9 Return error detail for clone and sync tasks. 2016-12-16 15:17:37 +08:00
Jiaqiang Xu
bc7fbee36d Simplify file checkout procedure. 2016-12-03 11:56:51 +08:00
Jiaqiang Xu
76220e5a4d Don't generate case conflict files. 2016-12-03 11:03:27 +08:00
Shuai Lin
3649afb442 Use SEAFILE_CLIENT_VERSION instead of PACKAGE_VERSION when possible. 2016-10-02 00:04:22 +08:00
Jiaqiang Xu
8e57ffffff Add "client_version" attribute to commit object. 2016-09-22 10:36:40 +08:00
Jiaqiang Xu
1b159bd40f Allow setting device name from seafile-applet. 2016-09-21 18:18:00 +08:00
Jiaqiang Xu
fad9fc28c3 [linux] Don't filter consecutive modify events in wt-monitor. 2016-08-27 14:23:14 +08:00
Jiaqiang Xu
d3a77ad7c2 Load folder permissions after loading repos on startup. 2016-08-25 10:57:50 +08:00
Jiaqiang Xu
d14b4f6ce8 Improved file checkout procedure. 2016-08-21 14:49:35 +08:00
Jiaqiang Xu
3f9cf6a673 Fix compile in Mingw64. 2016-07-04 12:15:27 +08:00
Jiaqiang Xu
dc1b655553 Fix a crash bug when root dir object is corrupted for a repo. 2016-07-02 10:06:43 +08:00
Jiaqiang Xu
7772b1e00a Merge pull request #1703 from haiwen/improve-case-conflict
Improve case conflict
2016-06-27 11:57:00 +08:00
Jiaqiang Xu
4dc8af1d0d [client] Improve auto-locking of office files. 2016-06-25 18:21:02 +08:00
Jiaqiang Xu
8b5d724c14 Prevent from generating too many case conflict files. 2016-06-24 17:05:07 +08:00
Jiaqiang Xu
a21065dad8 [server] Add an option to allow download dir only when gettting fs object list. 2016-06-24 13:20:05 +08:00
Jiaqiang Xu
13cea7738a [win] Don't create folders with invalid characters when downloading. 2016-04-22 18:14:16 +08:00
Jiaqiang Xu
4447016528 Merge pull request #1598 from haiwen/client-diff
Add a daemon rpc to do commits diff
2016-04-22 16:32:29 +08:00
Shuai Lin
5f828a2a5c Add the job mgr in daemon since we have async rpc now. 2016-04-21 09:20:29 +08:00
Shuai Lin
0e64f4378d Include the head commit id in the sync.done message. 2016-04-20 14:36:20 +08:00
Jiaqiang Xu
6fc7d29958 [client] Remove redundant pop-up file conflict message when cloning a repo.
When a conflict is downloaded in clone procedure, don't show a message.
If the conflict file is created locally, show the message.
2016-04-18 16:22:29 +08:00
Jiaqiang Xu
927db07632 [client] Add diff commit RPC. 2016-04-18 14:42:27 +08:00
Jiaqiang Xu
0a4170eafb Merge branch 'unsync-delete-store' 2016-04-09 12:03:41 +08:00
Jiaqiang Xu
6d3e1f2bf6 [client] Fix bug in server property setting. 2016-03-28 14:15:32 +08:00
Shuai Lin
1a4e874215 Merge pull request #1567 from haiwen/server-property
[client] Support server properties.
2016-03-25 12:00:09 +08:00
Jiaqiang Xu
809d3536ea Add "device_name" field to commit object. 2016-03-22 17:16:06 +08:00
Jiaqiang Xu
c30de91731 [client] Support server properties.
Server properties can be set by RPC set_server_property (server_url, key, value).

Currently only one server property is defined: "is_pro". You can set it to "true" or "false".
2016-03-22 14:29:25 +08:00
Jiaqiang Xu
f88be89907 Clean up unused code. 2016-03-21 17:54:20 +08:00
Shuai Lin
abb5ac0b23 Improved updating proxy config when system proxy changes. 2016-03-18 12:36:05 +08:00
Shuai Lin
44f1e7d123 Added support of using system network proxy. 2016-03-18 11:54:00 +08:00
Jiaqiang Xu
b1b606e50b [client] Disable proxy in libcurl connections if proxy is not set. 2016-03-18 11:28:44 +08:00
Jiaqiang Xu
506c6cccc4 [win] Auto lock office file when it's opened. 2016-03-16 16:31:09 +08:00
Jiaqiang Xu
b6891b40a0 [client] Remove -Werror flag from makefile. 2016-03-08 10:36:45 +08:00
Jiaqiang Xu
d8bd9e24d0 [client] Fix compile warnings on Windows. 2016-03-02 11:48:12 +08:00
Jiaqiang Xu
c2f78e37fb Fix compile warnings. 2016-03-02 10:39:05 +08:00
Jiaqiang Xu
21b4dd9a26 [client] Make http transfer timeout to 120 seconds.
In low bandwidth network 45 seconds is too small. It makes data
transfer fails more frequently.
2016-03-01 17:52:45 +08:00
Jiaqiang Xu
d062bceb72 Always delete built-in ignored files when apply delete-dir operation in download. 2016-02-28 14:13:41 +08:00
Adrian Imboden
50a4dcd2da curl: avoid race conditions with crypto-functionality by using the CRYPTO_* functions from openssl 2016-02-26 09:48:06 +00:00
Jiaqiang Xu
f4a8c6ef00 [client] Fix a potential crash bug in download/upload. 2016-02-19 17:06:49 +08:00
Shuai Lin
89118fd28e [client] add breakpad support 2016-01-15 10:35:27 +08:00
Shuai Lin
06d05adba6 Merge pull request #1482 from haiwen/periodic-sync
[client] Support periodic sync.
2016-01-07 10:58:04 +08:00
Jiaqiang Xu
9e87b6d18d [client] Handle ccnet_job_manager_schedule_job() failure. 2016-01-04 17:57:26 +08:00
Jiaqiang Xu
a85ebe70cb [client] Fix a minor memory leak. 2015-12-29 17:17:33 +08:00
Jiaqiang Xu
779719f8d1 [client] Clean up repo stores when it's unsynced. 2015-12-29 17:03:53 +08:00
Jiaqiang Xu
f3f6fd4b12 [client] Record download fs objects progress for clone tasks. 2015-12-22 14:43:00 +08:00
Jiaqiang Xu
772648a05e [client] Support periodic sync.
This feature is controlled by setting "sync-interval" property of
a repo. If the property is not set or <= 0, it's disabled; if it's > 0,
sync the repo every specified seconds.

If periodic sync is set for a repo, auto change detection is
disabled. And in every sync, the worktree is scanned, and latest
changes from the server is downloaded.
2015-12-21 16:34:39 +08:00
Jiaqiang Xu
fdb25e8968 [client] Fix another redundant sync error message on startup. 2015-12-19 17:13:14 +08:00
Jiaqiang Xu
f3bbc83a9e [client] Fix redundant sync error message on startup. 2015-12-19 15:56:33 +08:00
Jiaqiang Xu
648f5b1d54 [client] Fix memory leak in load certificates. 2015-12-19 10:31:46 +08:00
Jiaqiang Xu
98eb107c41 [client] Delete path sync status when it's deleted/renamed in worktree. 2015-12-18 19:16:35 +08:00
Jiaqiang Xu
674a9acc65 [client] Fix a crash bug caused by loading certs. 2015-12-14 11:08:58 +08:00
Jiaqiang Xu
fb1a3ebf61 [client] Close directory handle after checking folder lock. 2015-11-24 17:00:44 +08:00
Jiaqiang Xu
41161fd293 [client] Temporarily disable sync error notification for index errors.
Some recoverable index errors may be confusing.
2015-11-24 13:46:18 +08:00
Jiaqiang Xu
8a6f038bdb [client] Don't delete changed or untracked files when delete dir on download. 2015-11-23 11:31:51 +08:00
Jiaqiang Xu
b3af295e21 [win] Set TCP send buffer size and TCP_NODELAY options. 2015-11-20 18:29:33 +08:00
Jiaqiang Xu
c679e89035 [client] Should initialize folder perms before loading repos on start. 2015-11-19 18:16:21 +08:00
Jiaqiang Xu
b8affcce1c [client] Fix a typo. 2015-11-19 17:59:06 +08:00
Jiaqiang Xu
f6e4d0d936 [client] Send sync error notifications.
Notifications are sent in the following cases:
- A downloaded file is locked by other application on Windows;
- A locked file is updated locally, but the update cannot be uploaded to server since it's locked;
- A file path contains invalid characters on Windows, so it cannot be downloaded.
- Failed to index a file.
2015-11-19 15:33:11 +08:00
Jiaqiang Xu
a114d00e4d [win] Don't checkout/rename invalid paths on download.
If an invalid path is later renamed back to a valid path,
it will be checked out.
2015-11-19 15:33:11 +08:00
Jiaqiang Xu
627f526767 [client] Don't conflict when a locked file is opened by Office. 2015-11-13 16:46:02 +08:00
Jiaqiang Xu
31553ed116 [client] Fix file locking bug for Office files. 2015-11-13 16:46:00 +08:00
Jiaqiang Xu
3d02adb19e Merge branch '4.4' 2015-10-27 13:30:51 +08:00
Jiaqiang Xu
569c7e440c [client] Fix sync problem for an update sequence.
- Add a file
- Delete the file
- Add the same file again
2015-10-22 16:02:53 +08:00
Shuai Lin
d571f3f6ab support -F,--central-config-dir flag in bin programs 2015-10-20 14:01:29 +08:00
Jiaqiang Xu
e6e14b6d9a [client] Fix upload progress display. 2015-10-16 11:02:05 +08:00
Jiaqiang Xu
a79fbe21b7 [client/win] Fix potential block locking problem in multi-threaded download. 2015-10-10 12:05:56 +08:00
Jiaqiang Xu
65932e712e [client] Don't use absolute path in conflict notification. 2015-09-18 14:02:02 +08:00
Jiaqiang Xu
c83db18a86 [client] Improve office temp file ignore handling. 2015-09-14 16:41:53 +08:00
Jiaqiang Xu
f87c33c9b9 [client] Fix ignore handling for deletion. 2015-09-14 16:41:51 +08:00
Jiaqiang Xu
a155d12137 Merge branch '4.3' 2015-09-14 16:40:26 +08:00
Shuai Lin
4c53aca927 Merge pull request #1359 from haiwen/client-side-keygen
added rpc for client side keygen
2015-09-12 11:40:39 +08:00
Jiaqiang Xu
df6acfb449 [client] Reduce upload/download threads to 3. 2015-09-10 19:23:32 +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
Shuai Lin
6c95de784c fixed a typo in refresh_locked_path_status 2015-09-08 09:38:51 +08:00
Jiaqiang Xu
156b679927 [client] Allow removing and renaming a locked file. 2015-09-01 16:35:26 +08:00
Jiaqiang Xu
cfb91cc237 [client] Fix locked files status display. 2015-08-31 16:19:11 +08:00
Shuai Lin
4b93208516 added rpc for client side keygen 2015-08-29 20:56:09 +08:00
Jiaqiang Xu
a1ab06e671 Merge branch '4.3' 2015-08-26 14:42:44 +08:00
Jiaqiang Xu
60ecc00364 [client] On restart, use index to create commit. 2015-08-24 17:31:34 +08:00
Jiaqiang Xu
1ba8c2841f [client] Fix handling of removed folder on restart. 2015-08-24 14:24:25 +08:00
Jiaqiang Xu
20d99481b7 Fix bugs discovered by Coverity. 2015-08-19 11:11:45 +08:00
Jiaqiang Xu
1a3657c816 [client] Add one more message when fs tree is not changed in commit. 2015-08-18 17:39:07 +08:00
Jiaqiang Xu
1c58894562 [client] Improve index and change set consistency checking. 2015-08-18 13:45:24 +08:00
Jiaqiang Xu
b8572da5fc [client] Skip commiting if new root id == old root id. 2015-08-17 18:05:51 +08:00
Jiaqiang Xu
1a0315775a [client] Fix ignore bug. 2015-08-17 17:36:43 +08:00
Jiaqiang Xu
2e12da9a19 Merge pull request #1343 from haiwen/mac-load-system-ca
[mac] use system ca bundle
2015-08-13 10:39:45 +08:00
Jiaqiang Xu
467ec53d14 Merge branch '4.3' 2015-08-12 13:10:24 +08:00
Shuai Lin
422f869127 [mac] use system ca bundle 2015-08-12 13:02:36 +08:00
Jiaqiang Xu
4a7bb8b96d [client] Fix upload missing file bug and add sanity check for commit. 2015-08-11 10:40:35 +08:00
Jiaqiang Xu
5bc5cb03ca Fix a few sync problems.
- Fail to download empty folder;
- Fail if file timestamp changed but content not changed.
- Sync file mode and timestamp changes.
2015-08-08 15:17:07 +08:00
Jiaqiang Xu
cba73be991 Merge pull request #1328 from haiwen/rm-cdc
don't use cdc when index block
2015-07-31 11:32:43 +08:00
yejianguo
ff6e6a8510 don't use cdc when index block 2015-07-30 13:41:45 +08:00
Jiaqiang Xu
692c08c73b [client] Minor fixes.
- Make seaf-cli download and sync work when relay port not set on server.
- Fix memory leak in change-set.c
2015-07-28 20:01:01 +08:00
Jiaqiang Xu
efcd4b1339 Remove redundant log message. 2015-07-28 16:56:07 +08:00
Jiaqiang Xu
426d16f3be [client] Multi-threaded block transfer. 2015-07-28 16:54:04 +08:00
Shuai Lin
ee1838f029 [client] fixed a bug in refresh_locked_path_status 2015-07-25 14:52:39 +08:00
Jiaqiang Xu
0c0f2486f2 [client] Improve commit descriptions. 2015-07-23 13:54:24 +08:00
Jiaqiang Xu
eb80c3501b [client] Fix a few memory leaks. 2015-07-22 13:41:48 +08:00
Jiaqiang Xu
e779b1713a [client] Improve indexing performance for large repos. 2015-07-21 12:07:22 +08:00
Jiaqiang Xu
e8d8ded8df [client] Init file lock manager before repo manager. 2015-07-20 14:12:14 +08:00
Jiaqiang Xu
c401786000 [client] Release libcurl connection after a network error.
This prevents libcurl from reusing dead connections after network
is disconnected and connected again.
2015-07-09 17:33:03 +08:00
Jiaqiang Xu
f509d232c2 Merge branch '4.2' 2015-07-09 17:29:43 +08:00
Jiaqiang Xu
0ebe480cf4 [client] Dispaly "readonly" icon for readonly files. 2015-07-09 15:56:44 +08:00
Jiaqiang Xu
4c0fe32cf0 [win] Refresh icon overlay after lock status changed locally. 2015-07-08 13:31:37 +08:00
Jiaqiang Xu
4b7ba81be7 [client] Add mark_file_unlocked() RPC. 2015-07-08 12:06:51 +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
a3e5e73645 [client] Disable "Expect: 100 continue" header for POST. 2015-07-02 14:42:55 +08:00
Jiaqiang Xu
e5a7c4a6e8 [client] Remove redundant error log message. 2015-07-02 11:44:44 +08:00
Jiaqiang Xu
b940288081 Improve log messages.
- Replace all g_warning() with seaf_warning()
- Print repo id when access to commit/fs/block fails
2015-06-30 20:25: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
54cb5eec31 [client] Fix a crash bug when objects are corrupted. 2015-06-24 11:50:11 +08:00
Jiaqiang Xu
5391b060b7 [client] Display "readonly" status for readonly synced folders. 2015-06-19 11:52:12 +08:00
Jiaqiang Xu
79c08df41c [client] Fix bugs of file status.
- Only change worktree sync state to "sync" when it's really syncing.
- Update checked out file timestamp even on conflict.
2015-06-18 15:27:31 +08:00
Jiaqiang Xu
e5cf8b2fc9 [client] Don't set "Excpect: 100-continue" header in PUT requests. 2015-06-17 14:12:54 +08:00
Jiaqiang Xu
0dbb035cf0 [client] Display repo worktree folder sync status better. 2015-06-07 11:05:53 +08:00
Jiaqiang Xu
2a81512c2e [client] Update transfer rates for each sync task. 2015-05-29 11:33:25 +08:00
Jiaqiang Xu
3a1602a3a6 [client] Use user accetped self-signed certificates in https connection. 2015-05-28 13:34:40 +08:00
Jiaqiang Xu
23f661c248 [client] Always enable http sync. 2015-05-25 13:23:03 +08:00
Jiaqiang Xu
8445f95c18 [win] Fix bugs in extracting system CA. 2015-05-20 14:00:29 +08:00
Jiaqiang Xu
0be2a68c65 [client] Folder/file sync status for Mac and Linux. 2015-05-19 16:47:44 +08:00
Jiaqiang Xu
fb35ae8ca3 [win] Extract system CA certs to use with openssl.
This allows users to set custom CA to system repository
while we use openssl for https sync.
2015-05-19 15:02:18 +08:00
Jiaqiang Xu
c50132945b [client] Fix overlay icon bug when folder becomes empty. 2015-05-15 11:33:54 +08:00
Jiaqiang Xu
96c6553b9c [client] Fix stat error handling of local files. 2015-05-15 11:27:53 +08:00
Jiaqiang Xu
a36fa3ebf8 [client] Use correct syncing url when Nginx/Apache is not configured.
When the server doesn't configure Nginx/Apache but still use port 80,
the url used for http sync is incorrect.
2015-05-08 17:38:07 +08:00
Jiaqiang Xu
d94400ae8d [win] Don't refresh all windows after each repo is scanned.
Instead, refresh all windows 10 seconds after startup.
2015-05-07 14:26:16 +08:00
Jiaqiang Xu
d791fe2c89 Handle sync status properly for read-only folders. 2015-05-07 10:49:26 +08:00
Jiaqiang Xu
f581dfa909 Fix bugs for sync status icon.
- Handle checkout file error.
- Set status to "synced" after checkout a locked file.
- Refresh after sync status is changed.
2015-05-07 10:49:26 +08:00
Jiaqiang Xu
189b1733c3 On startup, after scanning the worktree, refresh all open explorer windows. 2015-05-07 10:49:26 +08:00
Jiaqiang Xu
82a649630b [win] Add file/folder sync status for download. 2015-05-07 10:49:26 +08:00
Jiaqiang Xu
4d8e21bc43 [win] Add file/folder sync status for upload. 2015-05-07 10:49:26 +08:00
Jiaqiang Xu
089cbf1161 [client] Reset effective server host after server-url is changed. 2015-05-07 10:49:26 +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
54941aeabd Merge branch '4.1' 2015-04-11 10:30:18 +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
37bf2a3a7f [client] Cancel sync task when unsync a library. 2015-04-01 16:25:08 +08:00
yejianguo
963f65bc90 add root field in Repo object 2015-04-01 15:14:41 +08:00
Jiaqiang Xu
69be58db50 [client] Set User-Agent header for http sync requests. 2015-04-01 15:05:17 +08:00
Jiaqiang Xu
bcf2347a00 [client] Check locked sub-folder before removing a folder. 2015-04-01 14:20:10 +08:00
Jiaqiang Xu
433cd1fddb [client] Ignore stat and read directory error when index files. 2015-04-01 14:20:10 +08:00
Jiaqiang Xu
5331c512e5 [client] remove request timeout for most http sync operations.
Only block and commit transfer has timeout now. It's used to
detect network connection problems.
2015-04-01 14:20:10 +08:00
Jiaqiang Xu
52dad8e765 Merge branch 'rpc-repo' 2015-03-27 16:51:55 +08:00
yejianguo
e7c187b0f4 modify info of returned SeafileRepo object 2015-03-24 14:52:29 +08:00
Jiaqiang Xu
1f8f67ee54 [client] Escape client_name parameter in http-sync. 2015-03-23 11:31:24 +08:00
Jiaqiang Xu
284847d5a3 Merge pull request #1112 from haiwen/logout
support logout current account
2015-03-13 15:35:44 +08:00
Jiaqiang Xu
406b8aaeca [client] Fix a typo error in http sync. 2015-03-11 17:51:52 +08:00
Shuai Lin
449e580929 [client] add rpc function seafile_set_repo_token 2015-03-10 08:45:13 +08:00
Shuai Lin
fdbd7f52a6 [client] support logout current account 2015-03-10 08:45:13 +08:00
Jiaqiang Xu
56c8ca2fba [fsck] Remove misleading message. 2015-03-07 17:11:20 +08:00
Jiaqiang Xu
a8266855e5 Record client id, IP and name in http sync. 2015-03-03 18:53:09 +08:00
Shuai Lin
cada2c1fcf Merge pull request #1080 from haiwen/fix-update-repo-server
also update repos "server-url" property when change account url
2015-02-15 18:32:24 +08:00
Shuai Lin
bdcebb4593 also update repos "server-url" property when change account url
Ref #984
2015-02-15 18:06:00 +08:00
Jiaqiang Xu
178d01b164 [client] Add username/password support for http proxy.
Config options:
- proxy_username
- proxy_password
2015-02-14 11:53:46 +08:00
Jiaqiang Xu
3c2d2eb4e4 [client] Handle 3xx redirect response in http sync. 2015-02-13 15:30:40 +08:00
Jiaqiang Xu
de3d819e37 [client] Proxy support for http sync.
New config options in config.db:
- use_proxy: true or false
- proxy_type: http or socks
- proxy_addr: proxy server address
- proxy_port: proxy server port
2015-02-13 15:30:40 +08:00
Jiaqiang Xu
bb4bc8d87e [win] Fix long path bug when a folder becomes empty. 2015-01-28 17:44:05 +08:00
Jiaqiang Xu
b1bad8747a [client] Enable http sync by default. 2015-01-28 15:17:16 +08:00
Jiaqiang Xu
0518901a3b Fix bugs after previous merge.
* Upload large file set.
* Fix a double free bug on server.
2015-01-28 13:30:29 +08:00
Jiaqiang Xu
90b7753923 Merge branch 'folder-perm'
Conflicts:
	daemon/repo-mgr.c
2015-01-27 17:18:34 +08:00
Jiaqiang Xu
e845e3f6c0 [win] Handle delete/rename events with 8.3 format paths. 2015-01-21 15:01:32 +08:00
Jiaqiang Xu
4893406bbd [win] Convert path returned from fs events to long path. 2015-01-19 17:20:44 +08:00
Jiaqiang Xu
97175222b2 [win] Use native API for I/O operations to support long path. 2015-01-19 11:36:24 +08:00
Jiaqiang Xu
36e40a56d3 [client] Fix memory leak in http sync. 2015-01-09 18:01:00 +08:00
Jiaqiang Xu
8e3855bca6 [client] Folder permission support. 2015-01-09 17:13:43 +08:00
Jiaqiang Xu
36f94b985f [client] Don't timeout block-tx-client if the connection was closed. 2015-01-08 13:36:38 +08:00
Jiaqiang Xu
879dc05a98 [client] Don't timeout connection in upload. 2015-01-06 14:02:16 +08:00
Jiaqiang Xu
e181c7eb89 [client] Fix timeout problem in http sync. 2014-12-25 14:06:22 +08:00
Jiaqiang Xu
21bfad2106 [client] Scan worktree changes when "sync now" is invoked. 2014-12-23 16:04:39 +08:00
Jiaqiang Xu
55a8a2043e [client] Add timeout when receive data. 2014-12-23 14:39:41 +08:00
Jiaqiang Xu
ff1d383093 [Mac] Fix bug in wt-monitor and commit. 2014-12-23 11:05:20 +08:00
Jiaqiang Xu
ea15945824 Ignore filenames with '/' in it. 2014-12-18 13:57:55 +08:00
Jiaqiang Xu
b675844628 Merge branch 'sync-nocheck' into 4.0
Conflicts:
	daemon/repo-mgr.c
2014-12-18 12:11:35 +08:00
Jiaqiang Xu
ec669e18f9 [Mac] Remove trailing '/' from folder path in fs events returned by system. 2014-12-15 12:14:16 +08:00
Jiaqiang Xu
938743156f [client] Fix a bug when adding file to empty dir. 2014-12-13 15:24:19 +08:00
Daniel Pan
13beb59f0c Remove flag kFSEventStreamCreateFlagFileEvents 2014-12-13 14:56:07 +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
903e0866e1 [client] Fix bugs in index code.
Test case:
Have file "test.txt", folder with files "test" and empty folder "test2".
Move folder "test" into folder "test2".
Result: On the server, the folder "test" is not removed.
2014-12-13 13:34:08 +08:00