Daniel Molkentin
4d663f6cfa
More cheating on proxies: Add OS to User-Agent
2013-05-28 19:35:54 +02:00
Daniel Molkentin
95c532c46a
Set User-Agent to contain Mozilla/5.0 string
...
A blatant lie for a blatant abuse of Firewall filters.
2013-05-28 15:46:03 +02:00
Klaas Freitag
61335b6a70
Do not set the error_code from errno
2013-05-17 12:25:17 +02:00
Klaas Freitag
4f47aba1e2
Allow user aborting in chunked uploads
2013-05-16 17:37:30 +02:00
Olivier Goffart
3e795a84c2
Fix memory leak.
...
csync_destroy do not call vio_commit. Maybe it should?
2013-05-14 15:30:56 +02:00
Klaas Freitag
1a648a612e
Merge remote-tracking branch 'ogoffart/rename_folders_merged' into dav
2013-05-13 16:28:31 +02:00
Klaas Freitag
b7c03e92da
Temporary disable cached propfind.
2013-05-10 09:55:44 +02:00
Markus Goetz
952290890c
Merge remote-tracking branch 'origin/dav' into dav_recursive_update_squashed
...
Conflicts:
modules/csync_owncloud.c
2013-05-08 14:31:24 +02:00
Markus Goetz
9b4eb40216
Remove timedelta stuff
2013-05-08 14:27:59 +02:00
Markus Goetz
639f1127b7
Move stuff to _util.c
2013-05-08 13:59:07 +02:00
Markus Goetz
9c2f223093
Add module property to disable recursive PROPFIND
2013-05-08 13:26:59 +02:00
Markus Goetz
927ccf5d08
Use C-style comments instead of modern //
2013-05-08 13:20:42 +02:00
Markus Goetz
52e2775292
Make PROPFIND cache external unit
...
and introduce a csync_owncloud.h
2013-05-08 13:12:01 +02:00
Markus Goetz
980c176073
Recursive PROPFIND cache for ownCloud module
2013-05-08 11:58:17 +02:00
Olivier Goffart
3c87cd71d7
Merge branch 'rename_folders' into dav
...
Conflicts:
modules/csync_owncloud.c
src/csync.c
src/csync.h
src/csync_propagate.c
src/csync_propagate.h
src/csync_statedb.c
src/csync_statedb.h
src/csync_util.c
src/std/c_path.h
2013-05-07 15:24:12 +02:00
Olivier Goffart
247f4d948c
don't ajust the time anymore with the difference from client to server
2013-05-07 11:45:02 +02:00
Klaas Freitag
599e435443
Use the new logging framework for ownCloud module.
2013-05-06 16:58:14 +02:00
Klaas Freitag
36ec7aa5b6
Added set_property method for the ownCloud module.
2013-05-06 16:56:45 +02:00
Klaas Freitag
25948ef708
Add the file level progress callback.
2013-05-06 16:52:08 +02:00
Olivier Goffart
546fdeed6c
Add a way for mirall to access the dav session
2013-05-03 19:23:25 +02:00
Klaas Freitag
ab17e2aa8b
Revert "Don't include csync_version.h from csync.h"
...
This reverts commit 5cda5d523c
.
2013-04-26 10:45:14 +02:00
Klaas Freitag
5cda5d523c
Don't include csync_version.h from csync.h
2013-04-26 10:37:45 +02:00
Klaas Freitag
3b6d1cab91
Test for csync_commit
2013-04-24 14:21:51 +02:00
Klaas Freitag
374d9b0a8c
Merge from feature branch csync_commit.
2013-04-22 15:39:43 +02:00
Klaas Freitag
b91b96922e
Remove frees from module destroy which happend in commit before
2013-04-22 15:17:45 +02:00
Klaas Freitag
4bdabb7f46
Added a module commit function.
2013-04-22 13:51:44 +02:00
Klaas Freitag
35aaddda87
Added check on changes on the source file when uploading.
2013-04-16 16:27:40 +02:00
Klaas Freitag
84febf4b77
Merge branch 'dav_0.70.5' into dav
2013-04-15 15:37:17 +02:00
Klaas Freitag
2a5c403d63
Default timeout to 300 seconds.
2013-04-09 15:18:26 +02:00
Klaas Freitag
6cee3f49bc
More robust error handling in utimes function
2013-04-08 12:27:27 +02:00
Klaas Freitag
a1ebf8556a
Fix for Coverity CID #996827
2013-04-08 09:07:19 +02:00
Klaas Freitag
3de8a78e1c
Added error_string handling, improved error handling.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-04-05 17:40:22 +02:00
Klaas Freitag
c745bf4291
Use correct printf qualifiers.
2013-04-03 16:37:55 +02:00
Klaas Freitag
6de7ddf294
Use httpbf for all transfers.
2013-03-27 18:06:54 +01:00
Andreas Schneider
7d580916a8
modules: Add capabilities to smb module.
2013-03-19 13:46:06 +01:00
Andreas Schneider
029cdd4980
modules: Add capabilities to sftp module.
2013-03-19 13:45:50 +01:00
Klaas Freitag
c263532ba3
Merge remote-tracking branch 'ogoffart/davbf' into dav
2013-03-14 13:36:55 +01:00
Klaas Freitag
dd74b12b48
Merge remote-tracking branch 'ogoffart/davbf' into dav
2013-03-13 17:13:42 +01:00
Olivier Goffart
2205c9a339
Resume chunked upload if conneciton is lost
2013-03-12 11:42:17 +01:00
Klaas Freitag
d7a4a574ab
Add a vio capabilites function to let a module define its capabilities.
...
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2013-03-08 15:54:55 +01:00
Klaas Freitag
f211ee8bf1
Add a command line option to set a http proxy (owncloud only)
2013-03-05 15:33:14 +01:00
Olivier Goffart
2e73ce5605
owncloud: Properly report the error when the connection drop
2013-03-02 15:01:40 +01:00
Olivier Goffart
0906312c02
Merge remote-tracking branch 'freitag/dav' into davbf
2013-03-02 13:43:59 +01:00
Olivier Goffart
ca20703370
httpbf: Fix leak
2013-03-02 13:42:36 +01:00
Klaas Freitag
fed597c840
Only try the PROPFIND again if the error is ERRNO_WRONG_CONTENT.
2013-02-20 17:38:09 +01:00
Andreas Schneider
2d6514b509
owncloud: Fix some problems in the owncloud module.
...
Thanks to Patrick Buergi.
2013-02-19 08:36:46 +01:00
Olivier Goffart
1be65be68e
Fix crash in owncloud_mkdir
...
ne_simple_request destroy the request, we cannot access the error code
after it.
2013-02-13 18:25:28 +01:00
Olivier Goffart
b6a37064e9
Allow to configure the timeout in the config
2013-02-13 18:25:28 +01:00
Olivier Goffart
2e945c07af
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-13 18:25:28 +01:00
Olivier Goffart
b028c64325
In case of error dirring a rename, mark the source as updated
...
That way, the file will be saved in the DB again, and the next try, it
will retry to rename
2013-02-12 15:11:15 +01:00
Olivier Goffart
79bbbe75d7
Report error to the callback in mkdir and rename
2013-02-12 13:36:17 +01:00
Klaas Freitag
75cc77b947
Fixed build on win.
2013-02-10 16:43:38 +01:00
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