Commit graph

143 commits

Author SHA1 Message Date
Klaas Freitag
b75066e299 owncloud: remove not needed win32 code. 2012-07-09 13:24:50 +02:00
Klaas Freitag
b6d908e16f owncloud: win32 use c_tmpname and set _fmode variable for binary mode. 2012-07-09 13:24:15 +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
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
Dominik Schmidt
1fbba4f158 mingw: resolve name clashes in dummy module and link it against libcsync 2012-03-02 17:04:02 +01:00
Dominik Schmidt
11c515f869 mingw: resolve name clashes in sftp module 2012-03-02 17:04:02 +01:00
Dominik Schmidt
f064dbcde4 Make libsmbclient optional 2012-03-02 17:02:59 +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
5ba71bbf79 Change module link statement to link against LIBCSYNC.
For windows building, the whole csync lib instead of the C standards
only is needed. Not a big difference, so changed for all platforms.
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
Klaas Freitag
e4259719ad owncloud: Convert webdav -> http in init function. 2012-02-22 18:23:18 +01:00
Klaas Freitag
931a2823f8 owncloud: Fixes in setting errno correctly in stat. 2012-02-22 18:23:18 +01:00
Klaas Freitag
a25c59be94 owncloud: Use the correct property name for lastmodification time. 2012-02-22 18:23:18 +01:00
Klaas Freitag
56d36ae63e owncloud: Code rearranges and stat call added to stat.
Rearranged function sequence and added stat call to parent dir to
function open if file is written to. That allows a proper ENOENT
return value if directory is not yet existing. Fixed more escaping
glitches.
2012-02-22 18:23:18 +01:00
Klaas Freitag
ac01d3a404 owncloud: More memory management fixes and debug output. 2012-02-22 18:23:18 +01:00
Klaas Freitag
1c0275bfee owncloud: Fixed escaping for url paths, improved error handling.
Fixed escaping for url paths, improved error handling and mem
management
2012-02-22 18:23:17 +01:00
Klaas Freitag
17d0b504fa owncloud: Fixed uri parsing, added escaping, more mem cleanups. 2012-02-22 18:23:17 +01:00
Klaas Freitag
0aed3f57b4 owncloud: Implemented proper auth callback handling. Fixed move request 2012-02-22 18:23:17 +01:00