Olivier Goffart
ca20703370
httpbf: Fix leak
2013-03-02 13:42:36 +01:00
Olivier Goffart
259b6050bf
Progress database:
...
Remember about errors, and don't retry if there is more than 3 errors
2013-03-01 12:31:20 +01:00
Olivier Goffart
355a807775
Fix removing of folder when the folder is locked on windows.
...
When the folder is locked on windows, rmdir fails and the folmder is not
removed. But on the next sync, one should try to remove that folder again, and
not upload it to the server as we did before.
There was two problems:
1- The removed folder is still in the DB, so when csync_update read from
DB, for the remote, it still finds it. Fix that by storing an empty MD5
for directories that should have been deleted.
2- The folder is likely to be modified since its contents are gone.
Which means next sync will try to sync it back to the server.
Fix that by refreshing the mtime in the tree
2013-02-25 11:32:32 +01:00
Klaas Freitag
b216b9f546
Push version to 0.70.4
2013-02-20 17:39:16 +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
Klaas Freitag
3d4b426137
Removed some useless logging.
2013-02-19 09:40:14 +01:00
Olivier Goffart
ca34c4fd5f
Fix removing of folder when the folder is locked on windows.
...
When the folder is locked on windows, rmdir fails and the folmder is not
removed. But on the next sync, one should try to remove that folder again, and
not upload it to the server as we did before.
There was two problems:
1- The removed folder is still in the DB, so when csync_update read from
DB, for the remote, it still finds it. Fix that by storing an empty MD5
for directories that should have been deleted.
2- The folder is likely to be modified since its contents are gone.
Which means next sync will try to sync it back to the server.
Fix that by refreshing the mtime in the tree
2013-02-13 19:20:26 +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
Klaas Freitag
7d1d880a9b
Return a proper error code in case the file is locked on win32.
2013-02-13 12:38:50 +02: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
8646246e75
Also report the error for the other node in case of error
2013-02-08 21:51:03 +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
Daniel Molkentin
2b8925c210
FindNeon: Work on non-xbuilds as well
2013-02-08 16:08:29 +03:00
Daniel Molkentin
79159ae32c
Remove debug line
2013-02-08 15:56:26 +03:00
Olivier Goffart
7edc31048a
owncloud: Retry when a download fails because of a timeout
2013-02-08 13:46:53 +01:00
Daniel Molkentin
a6f63aea94
Safely detect neon-config in cross builds
2013-02-08 15:46:42 +03:00
Klaas Freitag
a79c380707
Remove strange _tcslen define and fixed some potential leaks.
2013-02-07 14:45:12 +02:00
Olivier Goffart
2615205adc
Fix renaming folder when a file was modified by another client
2013-02-06 18:40:03 +01:00
Olivier Goffart
170e5389b3
Do not issue a rename when the file was modified localy
2013-02-06 18:40:03 +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
77a25eafbb
remove wrong comments
2013-02-06 18:40:02 +01:00
Olivier Goffart
fe756799d2
Make it work when renaming a directory and a subdirectory at the same
...
time
2013-02-06 18:40:02 +01:00
Olivier Goffart
0c874f0c3c
fix some issues while moving. Now it works in simple cases
2013-02-06 18:40:02 +01:00
Olivier Goffart
3793d725a7
avoid double free
2013-02-06 18:40:02 +01:00
Olivier Goffart
77d77ff056
Compile the header with a C++ compiler
...
template is a keyword in C++
2013-02-06 18:40:02 +01:00
Olivier Goffart
d88c58deae
WIP: rename folders
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
53b1edd1dc
httpbf: Make sure to use unsigned number as the id
...
Else, we can have filename like foo-chunking--1234-4-0 and the double
dash make the serverside regexp fail
2013-01-29 16:23:55 +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
e134c85ae7
Initial checkin of the http-big-file handling.
2013-01-28 21:17:23 +01:00
Klaas Freitag
52f33de902
Set version to 0.70.3 plus ChangeLog
2013-01-24 10:39:42 +01:00
Klaas Freitag
4ca84c80c6
Do not limit Cookie detection to PHPSESSID only (mirall#260)
2013-01-24 10:06:42 +01:00
Klaas Freitag
0d6b32ed0a
Updated Changelog
2013-01-23 16:03:34 +01:00
Klaas Freitag
460947a3ac
Set version to 0.70.2 for release
2013-01-23 14:05:58 +01:00
Klaas Freitag
96f9c09e35
Fix a crash for the case that csync_init fails.
2013-01-22 16:48:36 +01:00
Klaas Freitag
1db825a733
Set path shortcuts for win32 as well.
2013-01-21 13:38:33 +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
82a3e49d82
Bump version to 0.70.1 for oCC 1.2.0 beta2
2013-01-16 16:37:09 +01:00