krsd
10 years agoclose() file after GET
() [Tue, 18 Jun 2013 14:37:16 +0000 (16:37 +0200)]
close() file after GET

10 years agochown() file after checking that it was opened correctly
() [Tue, 18 Jun 2013 14:37:08 +0000 (16:37 +0200)]
chown() file after checking that it was opened correctly

10 years agonull-terminate values retrieved via getxattr correctly
() [Tue, 18 Jun 2013 14:32:29 +0000 (16:32 +0200)]
null-terminate values retrieved via getxattr correctly

10 years agoset SSL dummy callbacks
() [Tue, 18 Jun 2013 13:02:38 +0000 (15:02 +0200)]
set SSL dummy callbacks

10 years agoset a few more SSL settings (defaults don't seem to do the trick)
() [Tue, 18 Jun 2013 12:48:54 +0000 (14:48 +0200)]
set a few more SSL settings (defaults don't seem to do the trick)

10 years agoargh! set RS_AUTH_FILE_PATH correctly again (we should really have a command line...
() [Tue, 18 Jun 2013 12:40:59 +0000 (14:40 +0200)]
argh! set RS_AUTH_FILE_PATH correctly again (we should really have a command line option for this...)

10 years agoadded SSL support
() [Tue, 18 Jun 2013 12:36:28 +0000 (14:36 +0200)]
added SSL support

10 years agoonly install /etc/default/rs-serve if it doesn't exist
() [Tue, 18 Jun 2013 12:10:01 +0000 (14:10 +0200)]
only install /etc/default/rs-serve if it doesn't exist

10 years agoset correct RS_AUTH_FILE_PATH again
() [Tue, 18 Jun 2013 12:06:47 +0000 (14:06 +0200)]
set correct RS_AUTH_FILE_PATH again

10 years agoMerge remote-tracking branch 'origin/master'
() [Tue, 18 Jun 2013 12:06:17 +0000 (14:06 +0200)]
Merge remote-tracking branch 'origin/master'

10 years agoadded --experimental option. HEAD requests only work, when that is set
() [Tue, 18 Jun 2013 12:05:49 +0000 (14:05 +0200)]
added --experimental option. HEAD requests only work, when that is set

10 years agoadded TODO for SSL support
() [Tue, 18 Jun 2013 12:05:28 +0000 (14:05 +0200)]
added TODO for SSL support

10 years agoadd -lpthread
Michiel de Jong [Tue, 18 Jun 2013 11:09:45 +0000 (13:09 +0200)]
add -lpthread

10 years agoadded a few TODOs
() [Tue, 18 Jun 2013 10:18:21 +0000 (12:18 +0200)]
added a few TODOs

10 years agoversion: 0.1
() [Tue, 18 Jun 2013 10:12:57 +0000 (12:12 +0200)]
version: 0.1

10 years agoimplemented If-None-Match handling for GET / HEAD requests
() [Tue, 18 Jun 2013 09:57:14 +0000 (11:57 +0200)]
implemented If-None-Match handling for GET / HEAD requests

10 years agoadded "notes" target to Makefile, to print all TODO: and FIXME: markers.
() [Tue, 18 Jun 2013 09:48:59 +0000 (11:48 +0200)]
added "notes" target to Makefile, to print all TODO: and FIXME: markers.

10 years ago--detach option works again (also removed some useless logging and fflush() after...
() [Tue, 18 Jun 2013 09:48:28 +0000 (11:48 +0200)]
--detach option works again (also removed some useless logging and fflush() after each log line)

10 years agoRevert "removed currently disfunctional --detach option from config"
() [Tue, 18 Jun 2013 09:35:06 +0000 (11:35 +0200)]
Revert "removed currently disfunctional --detach option from config"

This reverts commit 8f877fae61ea689e3bb9341c93498dd62dd38a6d.

10 years agochown() files and directories correctly after creation through PUT
() [Tue, 18 Jun 2013 09:00:48 +0000 (11:00 +0200)]
chown() files and directories correctly after creation through PUT

10 years agoadded --auth-uri option. webfinger is disabled now, when --auth-uri is not given...
() [Mon, 17 Jun 2013 22:20:03 +0000 (00:20 +0200)]
added --auth-uri option. webfinger is disabled now, when --auth-uri is not given (because it wouldn't work right anyway)

10 years agoadded *_config prototypes to config.h (used to be in rs-serve.h)
() [Mon, 17 Jun 2013 21:54:37 +0000 (23:54 +0200)]
added *_config prototypes to config.h (used to be in rs-serve.h)

10 years agoremoved currently disfunctional --detach option from config
() [Mon, 17 Jun 2013 21:53:57 +0000 (23:53 +0200)]
removed currently disfunctional --detach option from config

10 years agoset default port to 80, as documentation says.
() [Mon, 17 Jun 2013 21:51:24 +0000 (23:51 +0200)]
set default port to 80, as documentation says.

10 years agoreorganized some code
() [Mon, 17 Jun 2013 21:50:43 +0000 (23:50 +0200)]
reorganized some code

10 years agoremoved old file
() [Mon, 17 Jun 2013 21:36:23 +0000 (23:36 +0200)]
removed old file

10 years agosome more macros for readability
() [Mon, 17 Jun 2013 21:31:25 +0000 (23:31 +0200)]
some more macros for readability

10 years agoREADME: added note about /public/
() [Mon, 17 Jun 2013 21:19:40 +0000 (23:19 +0200)]
README: added note about /public/

10 years agomem.
() [Mon, 17 Jun 2013 21:15:22 +0000 (23:15 +0200)]
mem.

10 years agorepaired file vs. directory handling (HEADs on directories that were actually files...
() [Mon, 17 Jun 2013 21:13:46 +0000 (23:13 +0200)]
repaired file vs. directory handling (HEADs on directories that were actually files would reply with 500 status, because stat() fails, when it encounters a file, but the path contains a trailing slash)

10 years agofix HEAD requests
() [Mon, 17 Jun 2013 20:59:43 +0000 (22:59 +0200)]
fix HEAD requests

10 years agolots of documentation.
() [Mon, 17 Jun 2013 20:44:02 +0000 (22:44 +0200)]
lots of documentation.

10 years agoadded webfinger handler to Makefile
() [Mon, 17 Jun 2013 20:43:54 +0000 (22:43 +0200)]
added webfinger handler to Makefile

10 years agofixed --help output
() [Mon, 17 Jun 2013 20:43:43 +0000 (22:43 +0200)]
fixed --help output

10 years agoadd cors headers everywhere
() [Mon, 17 Jun 2013 20:43:34 +0000 (22:43 +0200)]
add cors headers everywhere

10 years agoa bit more tidy up in handle_storage() (this also fixes the weird issue that evhtp...
() [Mon, 17 Jun 2013 18:37:33 +0000 (20:37 +0200)]
a bit more tidy up in handle_storage() (this also fixes the weird issue that evhtp used to send HTTP/1.0 replies in certain cases)

10 years agogeneral cleanup, clarify request lifecycle (pretty much all error responses end up...
() [Mon, 17 Jun 2013 18:27:08 +0000 (20:27 +0200)]
general cleanup, clarify request lifecycle (pretty much all error responses end up in handle_storage now - this is required because otherwise evhtp won't tidy up the request correctly and we end up with closed connections & client timeouts)

10 years agoa bit of cleanup, removed unnecessary double-buffering in some places
() [Mon, 17 Jun 2013 18:26:15 +0000 (20:26 +0200)]
a bit of cleanup, removed unnecessary double-buffering in some places

10 years agoadvertise remotestorage-01 support
() [Mon, 17 Jun 2013 18:25:34 +0000 (20:25 +0200)]
advertise remotestorage-01 support

10 years agoimproved JSON generator, added webfinger stuff
() [Mon, 17 Jun 2013 18:25:06 +0000 (20:25 +0200)]
improved JSON generator, added webfinger stuff

10 years agoPUT requests: added support for If-Match and If-None-Match headers
() [Mon, 17 Jun 2013 13:37:33 +0000 (15:37 +0200)]
PUT requests: added support for If-Match and If-None-Match headers

10 years agoseparate assembling of directory listing and json writing
() [Mon, 17 Jun 2013 13:17:51 +0000 (15:17 +0200)]
separate assembling of directory listing and json writing

10 years agominimalistic JSON generator
() [Mon, 17 Jun 2013 13:17:27 +0000 (15:17 +0200)]
minimalistic JSON generator

10 years agomore sane output of tools add-token & remove-token
() [Mon, 17 Jun 2013 12:32:55 +0000 (14:32 +0200)]
more sane output of tools add-token & remove-token

10 years agoREADME: added "libattr" dependency
() [Sun, 16 Jun 2013 21:07:25 +0000 (23:07 +0200)]
README: added "libattr" dependency

10 years agoperror -> log_error
() [Sun, 16 Jun 2013 21:07:11 +0000 (23:07 +0200)]
perror -> log_error

10 years agoadded missing license headers
() [Sun, 16 Jun 2013 20:57:26 +0000 (22:57 +0200)]
added missing license headers

10 years agoremoved obsolete file (how did it get in here again?)
() [Sun, 16 Jun 2013 20:55:22 +0000 (22:55 +0200)]
removed obsolete file (how did it get in here again?)

10 years agoremoved some debug logging
() [Sun, 16 Jun 2013 20:54:50 +0000 (22:54 +0200)]
removed some debug logging

10 years agoDELETE works again as well!
() [Sun, 16 Jun 2013 20:53:17 +0000 (22:53 +0200)]
DELETE works again as well!

10 years agocreate directory where authorizations are stored in "install" task, fixed init-script...
() [Sun, 16 Jun 2013 19:36:44 +0000 (21:36 +0200)]
create directory where authorizations are stored in "install" task, fixed init-script-defaults

10 years agoadded RS_AUTH_FILE_PATH constant instead of hardcoded authorizations.dat
() [Sun, 16 Jun 2013 19:34:14 +0000 (21:34 +0200)]
added RS_AUTH_FILE_PATH constant instead of hardcoded authorizations.dat

10 years agoremoved lots of obsolete stuff
() [Sun, 16 Jun 2013 19:33:42 +0000 (21:33 +0200)]
removed lots of obsolete stuff

10 years agofixed content type handling & charset xattr
() [Sun, 16 Jun 2013 14:17:03 +0000 (16:17 +0200)]
fixed content type handling & charset xattr

10 years agoPUT works again
() [Sun, 16 Jun 2013 14:08:05 +0000 (16:08 +0200)]
PUT works again

10 years agoGET / HEAD on files & dirs works as expected again!
() [Fri, 14 Jun 2013 19:01:30 +0000 (21:01 +0200)]
GET / HEAD on files & dirs works as expected again!

10 years agoone more time: request handling :)
() [Fri, 14 Jun 2013 16:45:21 +0000 (18:45 +0200)]
one more time: request handling :)

10 years agoexperiments in storage process
() [Fri, 14 Jun 2013 16:45:12 +0000 (18:45 +0200)]
experiments in storage process

10 years agoheaders...
() [Fri, 14 Jun 2013 16:45:04 +0000 (18:45 +0200)]
headers...

10 years agostarted converting storage handler to work with evhtp
() [Fri, 14 Jun 2013 16:44:52 +0000 (18:44 +0200)]
started converting storage handler to work with evhtp

10 years agodispatch stuff. probably also not used at the moment, but keeping for future refs.
() [Fri, 14 Jun 2013 16:44:35 +0000 (18:44 +0200)]
dispatch stuff. probably also not used at the moment, but keeping for future refs.

10 years agohandle "/public/" correctly in authorize_request()
() [Fri, 14 Jun 2013 16:44:20 +0000 (18:44 +0200)]
handle "/public/" correctly in authorize_request()

10 years agouse "storage" as default --dir argument, also allow HEAD in cors headers
() [Fri, 14 Jun 2013 16:43:48 +0000 (18:43 +0200)]
use "storage" as default --dir argument, also allow HEAD in cors headers

10 years agotmp stuff, no idea, not used anymore, just so I don't lose it
() [Fri, 14 Jun 2013 16:43:06 +0000 (18:43 +0200)]
tmp stuff, no idea, not used anymore, just so I don't lose it

10 years agoauth token handling
() [Fri, 14 Jun 2013 15:47:33 +0000 (17:47 +0200)]
auth token handling

10 years agolots of stuff, some works - some not.
() [Thu, 13 Jun 2013 13:33:22 +0000 (15:33 +0200)]
lots of stuff, some works - some not.
weird sendmsg() problem also (always receives fd 8, which isn't usable)

10 years agoPUT working again (part of it, huge files with 100-continue expectations don't work...
() [Mon, 10 Jun 2013 11:02:45 +0000 (13:02 +0200)]
PUT working again (part of it, huge files with 100-continue expectations don't work yet)

10 years agorequest->file_event is deprecated
() [Mon, 10 Jun 2013 11:02:06 +0000 (13:02 +0200)]
request->file_event is deprecated

10 years agoETag handling for directories, xattr based MIME types for GET / HEAD
() [Mon, 10 Jun 2013 09:47:48 +0000 (11:47 +0200)]
ETag handling for directories, xattr based MIME types for GET / HEAD

10 years agobreak out early if request is invalid
() [Mon, 10 Jun 2013 09:46:47 +0000 (11:46 +0200)]
break out early if request is invalid

10 years agoadded mtime based ETag headers
() [Mon, 10 Jun 2013 05:43:11 +0000 (07:43 +0200)]
added mtime based ETag headers

10 years agoHEAD requests on files / directories work again as well
() [Sun, 9 Jun 2013 09:42:49 +0000 (11:42 +0200)]
HEAD requests on files / directories work again as well

10 years agoserving files works again! (libmagic spits out some weird errors. will look into...
() [Sun, 9 Jun 2013 09:16:26 +0000 (11:16 +0200)]
serving files works again! (libmagic spits out some weird errors. will look into that later)

10 years agoadded simple request logging
() [Sat, 8 Jun 2013 18:42:26 +0000 (20:42 +0200)]
added simple request logging

10 years agodisabled debug output by default, added --debug option to enable it
() [Sat, 8 Jun 2013 18:42:11 +0000 (20:42 +0200)]
disabled debug output by default, added --debug option to enable it

10 years agofixed --help output for --pid-file
() [Sat, 8 Jun 2013 18:33:37 +0000 (20:33 +0200)]
fixed --help output for --pid-file

10 years agofixed writing pid-file and --stop option
() [Sat, 8 Jun 2013 18:33:11 +0000 (20:33 +0200)]
fixed writing pid-file and --stop option

10 years agoremoved lots of deprecated logging & config stuff
() [Sat, 8 Jun 2013 17:36:24 +0000 (19:36 +0200)]
removed lots of deprecated logging & config stuff

10 years agocleanup makefile a bit
() [Sat, 8 Jun 2013 17:36:15 +0000 (19:36 +0200)]
cleanup makefile a bit

10 years agoupdated leakcheck script
() [Sat, 8 Jun 2013 17:36:11 +0000 (19:36 +0200)]
updated leakcheck script

10 years agopassing initial fd, buf and buflen to storage process, because the passed socket...
() [Sat, 8 Jun 2013 17:05:52 +0000 (19:05 +0200)]
passing initial fd, buf and buflen to storage process, because the passed socket won't close correctly, if it already existed in both scopes.

10 years agolots of moving, lots of tidy up, lots removed - also directory requests work again!
() [Sat, 8 Jun 2013 16:13:26 +0000 (18:13 +0200)]
lots of moving, lots of tidy up, lots removed - also directory requests work again!

10 years agotemporary commit in case I mess something up
() [Thu, 6 Jun 2013 18:56:39 +0000 (20:56 +0200)]
temporary commit in case I mess something up

10 years agoinit script: take vars from /etc/default/rs-serve
() [Tue, 4 Jun 2013 14:24:48 +0000 (16:24 +0200)]
init script: take vars from /etc/default/rs-serve

10 years agoREADME: clarify we need libevent 2.0
() [Tue, 4 Jun 2013 14:18:43 +0000 (16:18 +0200)]
README: clarify we need libevent 2.0

10 years agodon't warn about running as root, when --homes is given (not optimal, but it wouldn...
() [Tue, 4 Jun 2013 14:18:12 +0000 (16:18 +0200)]
don't warn about running as root, when --homes is given (not optimal, but it wouldn't work anyway w/o running as root at the moment)

10 years agoturned log_debug() into a macro, so we can log files & line numbers
() [Tue, 4 Jun 2013 14:17:07 +0000 (16:17 +0200)]
turned log_debug() into a macro, so we can log files & line numbers

10 years agoimplemented webfinger for --homes based on system users
() [Tue, 4 Jun 2013 14:16:46 +0000 (16:16 +0200)]
implemented webfinger for --homes based on system users

10 years agoadded --homes-min-uid option, removed --homes-group option in turn
() [Tue, 4 Jun 2013 14:16:09 +0000 (16:16 +0200)]
added --homes-min-uid option, removed --homes-group option in turn

10 years agoadded init script & install it in "install" target
() [Tue, 4 Jun 2013 14:14:53 +0000 (16:14 +0200)]
added init script & install it in "install" target

10 years agoleakcheck: don't wait for sessions to expire
() [Tue, 4 Jun 2013 10:37:43 +0000 (12:37 +0200)]
leakcheck: don't wait for sessions to expire

10 years agostarted README
() [Tue, 4 Jun 2013 10:37:26 +0000 (12:37 +0200)]
started README

10 years agoreset session store before free()ing RS_EVENT_BASE, so events don't get double-freed
() [Tue, 4 Jun 2013 10:31:53 +0000 (12:31 +0200)]
reset session store before free()ing RS_EVENT_BASE, so events don't get double-freed

10 years agozero out session_data structure before free()ing it
() [Tue, 4 Jun 2013 10:31:23 +0000 (12:31 +0200)]
zero out session_data structure before free()ing it

10 years agoprepared --homes and --homes-group options
() [Tue, 4 Jun 2013 10:30:38 +0000 (12:30 +0200)]
prepared --homes and --homes-group options

10 years agocleanup session timer event
() [Mon, 3 Jun 2013 11:02:14 +0000 (13:02 +0200)]
cleanup session timer event

10 years agomore reasonable session expiry interval
() [Mon, 3 Jun 2013 10:58:06 +0000 (12:58 +0200)]
more reasonable session expiry interval

10 years agocleanup expired sessions automatically
() [Mon, 3 Jun 2013 10:57:40 +0000 (12:57 +0200)]
cleanup expired sessions automatically

10 years agomake event base known outside main.c
() [Mon, 3 Jun 2013 10:56:30 +0000 (12:56 +0200)]
make event base known outside main.c

10 years agoadded --pid-file and --stop options (tame those daemons!)
() [Mon, 3 Jun 2013 10:18:02 +0000 (12:18 +0200)]
added --pid-file and --stop options (tame those daemons!)