Klaas Freitag
c98f2dfba9
Do PROPFIND with multiple attempts to fix owncloud/mirall #285
...
temporarily.
2013-02-09 17:13:57 +01:00
Klaas Freitag
0410771d1b
Log the response buffer if the propfind response is not XML.
...
This will help to debug the problem described in bug owncloud/mirall
2013-02-09 17:13:56 +01:00
Klaas Freitag
b92a5f55b8
Fixed a typo lintian brought up.
2013-02-09 17:13:56 +01:00
Olivier Goffart
5a262d7588
Fix crash in owncloud_mkdir
...
ne_simple_request destroy the request, we cannot access the error code
after it.
2013-02-08 21:06:25 +01:00
Olivier Goffart
7edc31048a
owncloud: Retry when a download fails because of a timeout
2013-02-08 13:46:53 +01:00
Klaas Freitag
c7e60b5231
Renamed filename encoding functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-07 12:59:31 +01:00
Olivier Goffart
71caa3356c
Automatically creates the destination folder if it does not exist
2013-02-06 18:40:02 +01:00
Olivier Goffart
0cf770017d
Do not abort when move fail
2013-02-06 18:40:02 +01:00
Olivier Goffart
bdd331ee08
Allow to configure the timeout in the config
2013-02-06 18:38:46 +01:00
Klaas Freitag
1e61a03f32
Fix const warnings after revert of wrong SAFE_FREE patch.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 15:11:41 +01:00
Klaas Freitag
d2e5fc66fa
ownCloud: Added missing brackets.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:39:58 +01:00
Klaas Freitag
1d703ee6c4
Rename _TCHAR type to mbchar_t.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:38:58 +01:00
Klaas Freitag
ce080d5ee1
Fix definition of tmp file name.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:38:25 +01:00
Klaas Freitag
b152b39e67
ownCloud: Use wide char aware file system functions.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:36:29 +01:00
Klaas Freitag
9120098811
Use wide character abstraction functions for file operations.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-02-06 14:27:53 +01:00
Olivier Goffart
50dac60bc9
owncloud: fix session cookie again.
...
Some load balancers may add more cookies, and we would pick the wrong
one. So keep all the cookies.
If we already read a session cookie, don't parse more cookie as they are
not session cookie.
2013-02-06 12:32:48 +01:00
Klaas Freitag
b7a740d0b3
Switch off unix extensions like the server, see mirall bug #204 .
2013-02-05 12:38:40 +01:00
Olivier Goffart
624c99de8f
Make progress works correctly when files are chunked
2013-01-30 12:29:56 +01:00
Olivier Goffart
e75f11b87a
Use httpbf in owncloud
2013-01-29 16:23:28 +01:00
Olivier Goffart
c716fbb96e
Refactoring: create the neon request in sendfile
...
... instead of open.
That way we can do something else for the big files
2013-01-29 16:22:46 +01:00
Klaas Freitag
4ca84c80c6
Do not limit Cookie detection to PHPSESSID only (mirall#260)
2013-01-24 10:06:42 +01:00
Olivier Goffart
b7cbd311ba
Fix connection with NTLM proxy (should go to dav branch)
2013-01-18 16:28:42 +01:00
Klaas Freitag
21379de9c3
Fixed comment and initialized errno for stat.
2013-01-16 16:25:51 +01:00
Klaas Freitag
5b1a9d8ed8
Handle 405 status code in mkdir correct as EEXIST.
2013-01-16 13:48:52 +01:00
Klaas Freitag
e83cc82f0d
remove a duplicate void'ing.
2013-01-16 13:47:41 +01:00
Klaas Freitag
0752aff55a
Handle 405 as EPERM rather than EEXIST
2013-01-16 11:42:13 +01:00
Klaas Freitag
23fe05604b
Added new error types for service unavail, quoto and file too big.
2013-01-13 21:39:54 +01:00
Klaas Freitag
96eb138410
Make big file support working for win32.
2013-01-09 15:06:03 +01:00
Klaas Freitag
a880949836
Display all SSL certificates from the chain to the user to approve.
2012-12-19 18:06:36 +01:00
Klaas Freitag
bbf4e07579
Proper errno to csync error conversion, more errno fixes in oC module.
2012-12-17 17:22:24 +01:00
Klaas Freitag
ecf09c4077
Added error_string handling with modules
2012-12-14 16:49:03 +01:00
Olivier Goffart
89241013c3
Owncloud: Do not use PATH_MAX
...
We should not limit the size of the buffers to arbitrary values.
Should fix https://github.com/owncloud/mirall/issues/174
2012-12-14 00:14:45 +01:00
Olivier Goffart
1c8dde3b61
owncloud: install the compression hook in sendfile
...
In some cases (if the local file can't be opened) close will be called
without calling sendfile. That would result in the hook leaking, and
causing crash because it is only unhooked in sendfile.
2012-12-14 00:14:44 +01:00
Klaas Freitag
654e87a9d5
Fix temp name creation: Place dot correctly for hidden files.
2012-12-12 14:18:30 +01:00
Klaas Freitag
ab595a4c8f
Add another useful logging line.
2012-12-12 13:36:58 +01:00
Klaas Freitag
246e10c403
Up- and download errors are soft errors.
2012-12-11 15:27:00 +01:00
Daniel Molkentin
fc8ec72371
Fix c&p error
2012-12-11 12:09:51 +01:00
Daniel Molkentin
1507ca2eaf
Split download state
2012-12-11 12:09:33 +01:00
Klaas Freitag
1705a309b2
Merge remote-tracking branch 'ogoffart/dav' into dav
2012-12-10 21:16:05 +01:00
Klaas Freitag
128c69676f
Added some useful logging for GET
2012-12-10 21:15:08 +01:00
Olivier Goffart
01d2586f1e
Owncloud: Report the error in the progress callback
2012-12-10 16:51:13 +01:00
Markus Goetz
568a71daa0
Only send gzip Accept-Encoding
...
.. because later we only support gzip (and not deflate) anyway
2012-12-08 11:06:29 +01:00
Markus Goetz
7ee75f5499
Unify compress_reader and uncompress_reader
...
They are the same code anyway
2012-12-08 11:06:29 +01:00
Olivier Goffart
d3585db4ba
Owncloud: Add the fingerprint in the ssl warning mesage
...
Then the client can compare ssl certificate fingerprint
2012-12-08 11:06:29 +01:00
Olivier Goffart
fa0c458bb3
Owncloud: Fix getting id from id cache.
...
We need to remove the quotes around the ETag
2012-12-08 11:06:29 +01:00
Olivier Goffart
415a86edeb
owncloud: Fix GET requests
...
the download via the get function DOES NOT require a full uri
2012-12-08 11:06:29 +01:00
Klaas Freitag
82acccf333
Some more cleanpus.
2012-12-07 09:02:42 +01:00
Klaas Freitag
c4b88129db
Adopt module logging to new logging API.
2012-12-07 09:02:25 +01:00
Olivier Goffart
30548b26e3
Remove some superfluous call to the progress callback
2012-12-06 16:49:08 +01:00
Olivier Goffart
5ff6baaf85
Owncloud: cache the ETAG: while doing a GET
...
Makes downloading of lots of big files twice as fast
2012-12-06 14:59:26 +01:00
Klaas Freitag
0b951ab6b1
Fixed more compile warnings.
2012-12-06 13:18:54 +01:00
Klaas Freitag
e6ad2140eb
Fixing more errno handling.
2012-12-06 13:15:25 +01:00
Klaas Freitag
6d9bd79ccb
Cleanup and fix == error.
2012-12-06 11:39:53 +01:00
Klaas Freitag
e997af227c
Merge remote-tracking branch 'ogoffart/dav' into dav
2012-12-06 11:35:10 +01:00
Klaas Freitag
40206e0eab
Fix case statement for error code generation.
2012-12-06 11:34:03 +01:00
Markus Goetz
69a979c16b
ownCloud: Allow HTTP timeout to be settable
2012-12-05 18:15:56 +01:00
Klaas Freitag
5c44eb563f
Removed wrong csync_vio_file_stat_destroy calls.
2012-12-05 15:58:14 +01:00
Olivier Goffart
f946dd4287
Owncloud: cache the last PROPFIND call.
...
So we do not need to have two calls (stat+opendir)
2012-12-05 14:49:50 +01:00
Olivier Goffart
c4dc285ff0
Move the errno codes to another header
...
We can't include csync_private.h from the modules
2012-12-05 14:43:37 +01:00
Olivier Goffart
0169b034f3
Use the full URL in the callback instead of just the path
2012-12-05 14:43:36 +01:00
Klaas Freitag
41c4e05b93
Fix error reporting from sendfile method.
2012-12-05 14:19:22 +01:00
Klaas Freitag
fb3662127c
Better error checking on get_file_id.
2012-12-05 12:55:05 +01:00
Klaas Freitag
d3378a7991
Some cleanups to avoid compile warnings.
2012-12-05 12:54:50 +01:00
Klaas Freitag
823706caac
Use cross platform stat type and free mem of lastDir.
2012-12-05 12:38:29 +01:00
Klaas Freitag
b428b46ff8
Fix return code from sendfile.
2012-12-04 18:13:28 +01:00
Klaas Freitag
3e8c5e92cc
Removed leftover variables.
2012-12-04 18:12:42 +01:00
Olivier Goffart
f18f58ace0
Add progress callback
2012-12-04 17:26:23 +01:00
Olivier Goffart
f2f1672ba6
Owncloud: don't use userdata for proxy parameter
...
Use set_module_propery instead
2012-12-04 17:22:11 +01:00
Olivier Goffart
36715f54ef
owncloud: get session cookie from a module property
2012-12-04 17:22:11 +01:00
Klaas Freitag
ca30b99cea
More accurate setting of errno with custom values.
2012-12-04 17:03:00 +01:00
Klaas Freitag
d2730f6133
Clean read and write functions in owncloud_module.
2012-12-04 17:02:39 +01:00
Klaas Freitag
9e3dd6e5c8
Simplify up- and download through sendfile method in owncloud module.
2012-12-04 15:04:22 +01:00
Andreas Schneider
7fefdc1800
modules: Fix csync_dummy modules license header.
2012-12-04 13:51:11 +01:00
Andreas Schneider
0a9cca8441
modules: Fix csync_owncloud module license header.
2012-12-04 13:50:14 +01:00
Andreas Schneider
c4f46608dc
modules: Fix csync_smb module license header.
2012-12-04 13:49:40 +01:00
Andreas Schneider
9ca550f93a
modules: Remove csync_sftp2 module.
2012-12-04 13:48:31 +01:00
Andreas Schneider
c2ced426ef
modules: Fix csync_sftp module license header.
2012-12-04 13:48:13 +01:00
Klaas Freitag
924a19b8ea
Push variable declaration where its needed.
2012-12-03 19:40:06 +01:00
Olivier Goffart
b8fd96fc62
Merge remote-tracking branch 'ogoffart/dav' into dav
2012-12-03 18:23:25 +01:00
Olivier Goffart
04ebe966d2
Fix compilation after merge.
...
Log in owncloud module is temporarly disabled because it does not
compile as upstream added the context in the log.
2012-12-03 17:45:40 +01:00
Daniel Molkentin
9c853594e8
owncloud: Clean up resources allocated by neon
...
Fixes crashes that result from owncloud running out of FDs,
like oc-920.
2012-11-28 12:57:22 +01:00
Markus Goetz
d74c81feee
Owncloud: Add support for sending a cookie
2012-11-22 21:54:34 +01:00
Klaas Freitag
9eda137c77
Commented too verbose logging.
2012-11-22 15:25:27 +01:00
Klaas Freitag
6e29ec7a7c
:x
2012-11-20 17:26:05 +01:00
Klaas Freitag
eae3b863d0
Log the http result code of the propfind
2012-11-19 13:11:26 +02:00
Klaas Freitag
917eeea48c
ownCloud: Added a stricter check on HTTP PROPFINDs.
...
Now check on both the result code and the content type of the
reply. If the content-type is not applicaton/xml do not accept the
answer even if the status code is good.
This fixes https://github.com/owncloud/mirall/issues/92
2012-11-17 21:15:59 +01:00
Klaas Freitag
3265e2c6a2
Handle PUT fail correctly.
2012-11-16 12:31:09 +01:00
Klaas Freitag
ca7fceaa2c
Remove left over declaration.
2012-11-16 12:30:29 +01:00
Daniel Molkentin
d9b14670ab
owncloud: remove unused member from transfer context
2012-11-15 12:48:02 +01:00
Klaas Freitag
146ba66b50
Initialize struct to zero to avoid free on uninitialized value.
2012-11-14 14:08:47 +01:00
Klaas Freitag
940ff6eeaa
Proper cross platform initialization.
2012-11-09 17:14:52 +01:00
Klaas Freitag
eb640aae00
Fix parsing of GMT times and handle time difference more tolerant.
2012-11-08 14:52:14 +01:00
Klaas Freitag
d19a0c9c46
ownCloud: log the mtime in stat.
2012-11-08 11:22:49 +01:00
Klaas Freitag
2206c4a4d1
Fix printf operators for time delta values.
2012-10-31 21:33:17 +01:00
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
Andreas Schneider
351c6089fc
modules: Return in dummy_stat() if we have no memory.
2012-10-19 20:37:13 +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
404073fe7f
Rename csync to ocsync to not collide with upstream csync.
2012-10-01 12:39:05 +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