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
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
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
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
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
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
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
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