Klaas Freitag
2bb52ef6f9
Merge branch 'master' into dav - get cmocka tests and database move.
...
Conflicts:
CMakeLists.txt
cmake/Modules/FindCMocka.cmake
src/csync.c
src/csync_exclude.c
src/csync_reconcile.c
src/csync_statedb.c
src/csync_update.c
src/csync_util.c
src/vio/csync_vio.c
tests/CMakeLists.txt
tests/csync_tests/check_csync_exclude.c
tests/csync_tests/check_csync_statedb_load.c
tests/csync_tests/check_csync_statedb_query.c
tests/csync_tests/check_csync_update.c
tests/std_tests/check_std_c_path.c
2012-10-27 19:27:14 +02:00
Klaas Freitag
6770e91d31
Fix deletion of straying tmp files.
2012-10-18 13:26:44 +02:00
Klaas Freitag
3006f14c8d
Remove tmp files after GET request.
2012-10-18 10:04:11 +02:00
Daniel Molkentin
e0f02c41b1
owncloud: rely entirely on caller for proxy detection
2012-10-08 21:26:12 +02:00
Klaas Freitag
29e4e506e6
Switch back to PROPSET lastmodified as getlastmodified is readonly.
2012-09-28 17:36:04 +02:00
Klaas Freitag
c4db7d1acf
use correct DAV property for lastmodified.
2012-09-28 14:11:20 +02:00
Klaas Freitag
2af0d6f1a4
Be careful with memory, some fixes for that.
2012-09-26 15:32:38 +02:00
Klaas Freitag
f031e93618
Do not try a head request as PROPFIND is more efficient on ownCloud.
2012-09-26 12:44:17 +02:00
Klaas Freitag
0dfa61650d
ownCloud: clear the cache variables before ID query.
2012-09-24 15:45:11 +03:00
Klaas Freitag
403fec1454
ownCloud: Removed unused stat variable.
2012-09-24 15:44:19 +03:00
Klaas Freitag
e4c0fb90dd
ownCloud: some log cleanups.
2012-09-20 11:28:54 +03:00
Klaas Freitag
ee228cfff4
Make use of the Session cookie sent from the server.
2012-09-19 18:46:40 +03:00
Klaas Freitag
8571394847
Fix time correction between client and server.
2012-08-30 18:45:10 +03:00
Klaas Freitag
ecd6a86fd3
Remove wrong free command.
2012-08-30 14:30:30 +03:00
Klaas Freitag
9f4f0e8106
ownCloud: more memory cleanups, use widechar unlink for tmp files,
...
adjust the modtime by the time difference between client adn server.
2012-08-30 12:59:52 +03:00
Klaas Freitag
3950b18dc7
Fix memory leaks in new id sync code.
2012-08-28 17:53:26 +03:00
Klaas Freitag
3e95056975
ownCloud: Use stat cache more structured.
2012-08-28 15:59:33 +03:00
Klaas Freitag
636ec65c60
ownCloud: removed unused statcache code.
2012-08-28 14:24:42 +03:00
Klaas Freitag
bba1396770
ownCloud: Use correct path to push into owncloud_stat.
2012-08-28 14:06:55 +03:00
Klaas Freitag
9897335006
ownCloud: Test on null pointer before access for md5 sum.
2012-08-26 20:06:53 +02:00
Klaas Freitag
ef64756334
Merge branch 'md5' of ssh://milliways.cryptomilk.org/users/freitag/csync into fastsync
...
Conflicts:
modules/csync_owncloud.c
src/csync_private.h
src/csync_propagate.c
src/csync_reconcile.c
src/csync_statedb.c
2012-08-23 18:04:32 +03:00
Klaas Freitag
dba2c1d105
Added get_file_id function.
2012-08-23 17:43:51 +03:00
Klaas Freitag
0618eb956d
Merge conflicts solved.
2012-08-23 17:40:36 +03:00
Klaas Freitag
3e85218be9
Do not do post copy stat for ownCloud.
2012-08-23 17:35:16 +03:00
Klaas Freitag
8e401e662f
MD5 Support WIP
2012-08-23 17:34:19 +03:00
Klaas Freitag
30d1c9ed9d
ownCloud: Some code cleanup, added documentation.
2012-08-20 19:09:24 +03:00
Klaas Freitag
82d22d1494
Added get_file_id function.
2012-08-17 16:50:31 +03:00
Klaas Freitag
cf24513879
Merge branch 'dav' of ssh://milliways.cryptomilk.org/users/freitag/csync into md5
...
Conflicts:
modules/csync_owncloud.c
src/csync_private.h
src/csync_reconcile.c
src/vio/csync_vio.c
2012-08-13 15:24:15 +03:00
Klaas Freitag
f26b91f509
ownCloud: Still require time sync between the two repos.
2012-08-10 12:36:55 +03:00
Klaas Freitag
452babe593
Improved error report on proxy- and connection problems.
2012-08-09 15:12:22 +03:00
Klaas Freitag
d16dd57d85
ownCloud: More return value checking in fetch_resource_list.
2012-08-09 14:11:54 +03:00
Klaas Freitag
8ec3ea04da
more logging...
2012-08-08 19:00:11 +03:00
Klaas Freitag
3f2d5b380d
Fixed some strncpy flaws that might caused problems on win32 (mkdir)
2012-08-08 16:45:00 +03:00
Klaas Freitag
cbb09aeb0a
Sync based on uniqIDs WIP
2012-08-06 09:22:21 +02:00
Klaas Freitag
28d28ecac6
ownCloud: Proxy support when working in mirall.
2012-07-31 17:59:15 +03:00
Klaas Freitag
abef7eb3d2
UniqID based syncing, first WIP state.
2012-07-31 11:40:46 +03:00
Klaas Freitag
1352f6bc39
MD5 Support WIP
2012-07-24 09:36:06 +02:00
Klaas Freitag
785b7aad60
Use a proper namespace for lastmodified property.
2012-07-20 10:51:39 +02:00
Klaas Freitag
8402b5b6fa
ownCloud: removed config file access again, correct handling of
...
timediff.
2012-07-19 15:39:53 +02:00
Klaas Freitag
b47ac922ad
ownCloud: handle time delta and access the config file.
2012-07-19 10:50:18 +02:00
Klaas Freitag
81e77afaec
cleaner logging of time delta.
2012-07-11 16:02:43 +02:00
Klaas Freitag
de209ecdb9
ownCloud: Don't require time sync between server and client.
2012-07-04 16:32:17 +02:00
Klaas Freitag
6eb4e707d9
Add module capability about if a post copy size check is required.
2012-07-04 15:03:15 +02:00
Klaas Freitag
8ba2f483bf
Add a vio capabilites function to let a module define its capabilities.
2012-07-04 13:56:24 +02:00
Klaas Freitag
c263a39334
Compute server time from http header and adjust mtimes.
2012-07-03 14:38:43 +02:00
Klaas Freitag
adda008122
Remove wrong cast
2012-06-20 15:19:05 +02:00
Klaas Freitag
27dbdb29fc
ownCloud: Fix mem leaks to bring valgrind down to zero loss.
2012-06-20 15:01:54 +02:00
Klaas Freitag
6354c32d3b
ownCloud: Use wide char aware file system functions.
2012-06-20 12:08:06 +02:00
Klaas Freitag
370e2e451f
do not log on stderr on MacOSX because that spams system log
2012-06-18 13:02:06 +02:00
Klaas Freitag
f33cdb0de9
ownCloud: commented extensive log line.
2012-06-13 17:28:26 +02:00
Klaas Freitag
3e4e4eeee8
logging in SSL callback, important to debug.
2012-06-13 11:26:37 +02:00
Klaas Freitag
c0182c373a
ownCloud: Adopt logging to csync standard log instead of printf.
2012-06-05 17:10:50 +02:00
Klaas Freitag
648fc78d95
ownCloud: Proper initializations with NULL avoid a crash.
2012-05-21 09:44:23 +02:00
Klaas Freitag
33d1825551
Merge branch 'dav' of http://git.csync.org/users/freitag/csync into dav
...
Conflicts:
src/csync.c
2012-05-15 16:17:51 +02:00
Klaas Freitag
d228436aba
ownCloud: better debug output for file GET.
2012-05-15 16:16:04 +02:00
Klaas Freitag
2d34a1c993
ownCloud: Added redirect ability.
2012-05-14 17:19:50 +02:00
Klaas Freitag
eff0319e40
ownCloud: Fix bug #613 : Encode strange url correctly.
...
see http://bugs.owncloud.org/thebuggenie/owncloud/issues/oc-613
2012-05-10 17:55:57 +02:00
Klaas Freitag
9871989806
ownCloud: Fixed var initialization to avoid crash after thread
...
terminated.
2012-05-04 12:07:20 +02:00
Dominik Schmidt
0160be06f5
ownCloud: Fix warning condition in reader code.
2012-05-04 12:04:58 +02:00
Andreas Schneider
8212553cbe
owncloud: Fix some build warnings.
2012-04-17 11:23:20 +02:00
Klaas Freitag
010305eab2
ownCloud: catch some compiler warnings when very pedantic.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:16:09 +02:00
Klaas Freitag
f40ab9c6e1
ownCloud: Debug output only if NDEBUG is undefined.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:15:46 +02:00
Klaas Freitag
b8100868a3
ownCloud: added memory buffered put requests with fallback on file.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:13:18 +02:00
Klaas Freitag
4acb4eef63
ownCloud: Added a flag for the existance of the current directory.
...
That saves a lot of stat calls because the for each PUT a stat has
to be done if the parent dir exists.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:50:10 +02:00
Klaas Freitag
99c0405a26
ownCloud: Disabled useless debugging output.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:48:59 +02:00
Klaas Freitag
45ad55d894
ownCloud: Added http compression support for GET requests.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:48:28 +02:00
Klaas Freitag
53263a2685
owncloud: set _fmode variable to set file ops to binary mode.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:40:21 +02:00
Dominik Schmidt
87bc7ca4cc
Fix warning condition
2012-04-15 14:35:38 +02:00
Klaas Freitag
8a528d3abc
ownCloud: catch some compiler warnings when very pedantic.
2012-04-14 03:13:28 +02:00
Klaas Freitag
33b045270b
ownCloud: Debug output only if NDEBUG is undefined.
2012-04-14 03:13:28 +02:00
Klaas Freitag
9a2c83b94c
ownCloud: added memory buffered put requests with fallback on file.
2012-04-14 03:13:27 +02:00
Klaas Freitag
ece98b55a4
ownCloud: Added a flag for the existance of the current directory.
...
That saves a lot of stat calls because the for each PUT a stat has
to be done if the parent dir exists.
2012-04-14 03:13:27 +02:00
Klaas Freitag
b815e169f1
ownCloud: Disabled useless debugging output.
2012-04-14 03:13:27 +02:00
Klaas Freitag
a40df40b4c
ownCloud: Added http compression support for GET requests.
2012-04-14 03:13:27 +02:00
Klaas Freitag
d0e308a81d
owncloud: memclear a buf and remove not needed win32 code.
2012-04-14 03:13:27 +02:00
Klaas Freitag
b6ad8635d6
owncloud: set _fmode variable to set file ops to binary mode.
2012-04-14 03:13:26 +02:00
Klaas Freitag
f7c8e9f26c
std: Renamed struct_stat to csync_stat_t and use c_private.h again.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-14 03:13:26 +02:00
Klaas Freitag
3ae453cc36
std: Renamed struct_stat to csync_stat_t and use c_private.h again.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-03-21 13:48:41 +01:00
Klaas Freitag
e264ac347d
owncloud: use decoded file name to search in stat result list.
2012-03-15 14:11:14 +01:00
Klaas Freitag
5ad5d176f9
ownCloud: Use win32 API to get the standard user temp path.
...
Conflicts:
modules/csync_owncloud.c
2012-03-15 14:11:14 +01:00
Klaas Freitag
14791534ca
owncloud: cleaned some comment signs from C++ to C type.
2012-03-15 14:11:14 +01:00
Klaas Freitag
bc138efa4e
owncloud: set _fmode variable to set file ops to binary mode.
2012-03-07 16:18:08 +01:00
Klaas Freitag
87d3a56221
owncloud: More robust programming, some additional logs.
2012-03-07 16:18:08 +01:00
Klaas Freitag
bb1ccadebc
ownCloud: Fix translation of mkcol 405 errcode to ernno.
2012-03-07 16:18:08 +01:00
Klaas Freitag
9b8e75e4fc
ownCloud: append a trailing slash in mkdir as neon requests.
2012-03-07 16:18:08 +01:00
Klaas Freitag
a454156dc2
ownCloud: remove wired function to generate errno from neon error.
...
The errno is now either generated from the session values of neon
or individually in each function.
2012-03-07 16:18:08 +01:00
Klaas Freitag
edb073a290
ownCloud: removed the test on webdav.php. It is not needed.
...
The server handles it correctly itself to return the correct
type for the toplevel dir webdav.php
2012-03-07 16:18:08 +01:00
Klaas Freitag
9f67accf14
owncloud: Fix stat function for WebDAV root.
...
If a propcall happens to webdav.php the webdav server returns the
result list for all entries. In stat only the webdav.php entry is
interesting and must be searched within the result list.
2012-03-07 16:18:08 +01:00
Klaas Freitag
ded226911e
owncloud: Removed unused file attribute contenttype from PROPFIND.
2012-02-22 18:23:18 +01:00
Klaas Freitag
56c583615d
owncloud: Remove more unused logging.
2012-02-22 18:23:18 +01:00
Klaas Freitag
3025ada5dc
owncloud: Use c_parse_uri instead of neon equivalent, minor cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
5c97b6f81d
owncloud: Call the neon ssl functions only if SSL is active.
...
Especially ne_ssl_trust_default_ca seems to crash in case no SSL is
used actually. Added a flag to determine between SSL and no SSL.
Moved a debug message to the right place.
2012-02-22 18:23:18 +01:00
Klaas Freitag
bc1174cb8a
owncloud: Add ne_ssl_trust_default_ca to trust default certificates.
2012-02-22 18:23:18 +01:00
Klaas Freitag
d7e13276e5
owncloud: Remove the sorting of the dirlist results.
2012-02-22 18:23:18 +01:00
Klaas Freitag
45ec3c0248
owncloud: Removed unused _stat function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
71e110364e
owncloud: added cleanPath and moved _stat_perms.
2012-02-22 18:23:18 +01:00
Klaas Freitag
f56103dc0d
owncloud: Removed unused cleanUrl function.
2012-02-22 18:23:18 +01:00
Klaas Freitag
664f1cb17d
owncloud: some code cleanups.
2012-02-22 18:23:18 +01:00
Klaas Freitag
e320ccf7f8
owncloud: Renames of the vio functions by appending owncloud.
...
That avoids name clashes with MinGW. Patch provided by Dominik Schmidt.
2012-02-22 18:23:18 +01:00
Klaas Freitag
425f4b1cec
owncloud: Some code fixes and more errno corrections.
2012-02-22 18:23:18 +01:00
Klaas Freitag
545115bfae
owncloud: Set proper useragent, fixed some comments and warnings.
2012-02-22 18:23:18 +01:00
Klaas Freitag
936a32295f
owncloud: Added SSL support.
2012-02-22 18:23:18 +01:00
Klaas Freitag
19a485944a
owncloud: added missing close.
2012-02-22 18:23:18 +01:00
Klaas Freitag
7c3544611b
owncloud: Adopted to new owncloud scheme.
2012-02-22 18:23:18 +01:00
Klaas Freitag
07b4fbcf4f
owncloud: Module renamed to owncloud.
2012-02-22 18:23:18 +01:00