Niklas Cathor [Sun, 28 Jul 2013 20:42:19 +0000 (22:42 +0200)]
tweak
Niklas Cathor [Sun, 28 Jul 2013 20:42:14 +0000 (22:42 +0200)]
fixed auth handler
Niklas Cathor [Sun, 28 Jul 2013 20:42:00 +0000 (22:42 +0200)]
auth: fixed remove_authorization
Niklas Cathor [Sun, 28 Jul 2013 20:41:52 +0000 (22:41 +0200)]
gitignore
Niklas Cathor [Sun, 28 Jul 2013 20:41:19 +0000 (22:41 +0200)]
Makefile: added 'lookup-token' tool to "install" target
Niklas Cathor [Sun, 28 Jul 2013 15:50:57 +0000 (17:50 +0200)]
added lookup-token tool for testing, ported most of the auth tools to berkeley DB.
So far working:
- add-token
- lookup-token
- list-tokens
Niklas Cathor [Sun, 28 Jul 2013 15:50:02 +0000 (17:50 +0200)]
Makefile:
- simplified tool targets
- added flags to link against bdb
() [Wed, 3 Jul 2013 17:36:53 +0000 (19:36 +0200)]
make GET and HEAD requests return 403 instead of 412, when If-None-Match is present and the conditions fails (refs #1)
() [Tue, 25 Jun 2013 07:48:38 +0000 (09:48 +0200)]
set Access-Control-Expose-Headers
() [Tue, 18 Jun 2013 14:40:42 +0000 (16:40 +0200)]
storage handler: return status code instead of calling evhtp_send_reply() directly
() [Tue, 18 Jun 2013 14:37:16 +0000 (16:37 +0200)]
close() file after GET
() [Tue, 18 Jun 2013 14:37:08 +0000 (16:37 +0200)]
chown() file after checking that it was opened correctly
() [Tue, 18 Jun 2013 14:32:29 +0000 (16:32 +0200)]
null-terminate values retrieved via getxattr correctly
() [Tue, 18 Jun 2013 13:02:38 +0000 (15:02 +0200)]
set SSL dummy callbacks
() [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)
() [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...)
() [Tue, 18 Jun 2013 12:36:28 +0000 (14:36 +0200)]
added SSL support
() [Tue, 18 Jun 2013 12:10:01 +0000 (14:10 +0200)]
only install /etc/default/rs-serve if it doesn't exist
() [Tue, 18 Jun 2013 12:06:47 +0000 (14:06 +0200)]
set correct RS_AUTH_FILE_PATH again
() [Tue, 18 Jun 2013 12:06:17 +0000 (14:06 +0200)]
Merge remote-tracking branch 'origin/master'
() [Tue, 18 Jun 2013 12:05:49 +0000 (14:05 +0200)]
added --experimental option. HEAD requests only work, when that is set
() [Tue, 18 Jun 2013 12:05:28 +0000 (14:05 +0200)]
added TODO for SSL support
Michiel de Jong [Tue, 18 Jun 2013 11:09:45 +0000 (13:09 +0200)]
add -lpthread
() [Tue, 18 Jun 2013 10:18:21 +0000 (12:18 +0200)]
added a few TODOs
() [Tue, 18 Jun 2013 10:12:57 +0000 (12:12 +0200)]
version: 0.1
() [Tue, 18 Jun 2013 09:57:14 +0000 (11:57 +0200)]
implemented If-None-Match handling for GET / HEAD requests
() [Tue, 18 Jun 2013 09:48:59 +0000 (11:48 +0200)]
added "notes" target to Makefile, to print all TODO: and FIXME: markers.
() [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)
() [Tue, 18 Jun 2013 09:35:06 +0000 (11:35 +0200)]
Revert "removed currently disfunctional --detach option from config"
This reverts commit
8f877fae61ea689e3bb9341c93498dd62dd38a6d.
() [Tue, 18 Jun 2013 09:00:48 +0000 (11:00 +0200)]
chown() files and directories correctly after creation through PUT
() [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)
() [Mon, 17 Jun 2013 21:54:37 +0000 (23:54 +0200)]
added *_config prototypes to config.h (used to be in rs-serve.h)
() [Mon, 17 Jun 2013 21:53:57 +0000 (23:53 +0200)]
removed currently disfunctional --detach option from config
() [Mon, 17 Jun 2013 21:51:24 +0000 (23:51 +0200)]
set default port to 80, as documentation says.
() [Mon, 17 Jun 2013 21:50:43 +0000 (23:50 +0200)]
reorganized some code
() [Mon, 17 Jun 2013 21:36:23 +0000 (23:36 +0200)]
removed old file
() [Mon, 17 Jun 2013 21:31:25 +0000 (23:31 +0200)]
some more macros for readability
() [Mon, 17 Jun 2013 21:19:40 +0000 (23:19 +0200)]
README: added note about /public/
() [Mon, 17 Jun 2013 21:15:22 +0000 (23:15 +0200)]
mem.
() [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)
() [Mon, 17 Jun 2013 20:59:43 +0000 (22:59 +0200)]
fix HEAD requests
() [Mon, 17 Jun 2013 20:44:02 +0000 (22:44 +0200)]
lots of documentation.
() [Mon, 17 Jun 2013 20:43:54 +0000 (22:43 +0200)]
added webfinger handler to Makefile
() [Mon, 17 Jun 2013 20:43:43 +0000 (22:43 +0200)]
fixed --help output
() [Mon, 17 Jun 2013 20:43:34 +0000 (22:43 +0200)]
add cors headers everywhere
() [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)
() [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)
() [Mon, 17 Jun 2013 18:26:15 +0000 (20:26 +0200)]
a bit of cleanup, removed unnecessary double-buffering in some places
() [Mon, 17 Jun 2013 18:25:34 +0000 (20:25 +0200)]
advertise remotestorage-01 support
() [Mon, 17 Jun 2013 18:25:06 +0000 (20:25 +0200)]
improved JSON generator, added webfinger stuff
() [Mon, 17 Jun 2013 13:37:33 +0000 (15:37 +0200)]
PUT requests: added support for If-Match and If-None-Match headers
() [Mon, 17 Jun 2013 13:17:51 +0000 (15:17 +0200)]
separate assembling of directory listing and json writing
() [Mon, 17 Jun 2013 13:17:27 +0000 (15:17 +0200)]
minimalistic JSON generator
() [Mon, 17 Jun 2013 12:32:55 +0000 (14:32 +0200)]
more sane output of tools add-token & remove-token
() [Sun, 16 Jun 2013 21:07:25 +0000 (23:07 +0200)]
README: added "libattr" dependency
() [Sun, 16 Jun 2013 21:07:11 +0000 (23:07 +0200)]
perror -> log_error
() [Sun, 16 Jun 2013 20:57:26 +0000 (22:57 +0200)]
added missing license headers
() [Sun, 16 Jun 2013 20:55:22 +0000 (22:55 +0200)]
removed obsolete file (how did it get in here again?)
() [Sun, 16 Jun 2013 20:54:50 +0000 (22:54 +0200)]
removed some debug logging
() [Sun, 16 Jun 2013 20:53:17 +0000 (22:53 +0200)]
DELETE works again as well!
() [Sun, 16 Jun 2013 19:36:44 +0000 (21:36 +0200)]
create directory where authorizations are stored in "install" task, fixed init-script-defaults
() [Sun, 16 Jun 2013 19:34:14 +0000 (21:34 +0200)]
added RS_AUTH_FILE_PATH constant instead of hardcoded authorizations.dat
() [Sun, 16 Jun 2013 19:33:42 +0000 (21:33 +0200)]
removed lots of obsolete stuff
() [Sun, 16 Jun 2013 14:17:03 +0000 (16:17 +0200)]
fixed content type handling & charset xattr
() [Sun, 16 Jun 2013 14:08:05 +0000 (16:08 +0200)]
PUT works again
() [Fri, 14 Jun 2013 19:01:30 +0000 (21:01 +0200)]
GET / HEAD on files & dirs works as expected again!
() [Fri, 14 Jun 2013 16:45:21 +0000 (18:45 +0200)]
one more time: request handling :)
() [Fri, 14 Jun 2013 16:45:12 +0000 (18:45 +0200)]
experiments in storage process
() [Fri, 14 Jun 2013 16:45:04 +0000 (18:45 +0200)]
headers...
() [Fri, 14 Jun 2013 16:44:52 +0000 (18:44 +0200)]
started converting storage handler to work with evhtp
() [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.
() [Fri, 14 Jun 2013 16:44:20 +0000 (18:44 +0200)]
handle "/public/" correctly in authorize_request()
() [Fri, 14 Jun 2013 16:43:48 +0000 (18:43 +0200)]
use "storage" as default --dir argument, also allow HEAD in cors headers
() [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
() [Fri, 14 Jun 2013 15:47:33 +0000 (17:47 +0200)]
auth token handling
() [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)
() [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)
() [Mon, 10 Jun 2013 11:02:06 +0000 (13:02 +0200)]
request->file_event is deprecated
() [Mon, 10 Jun 2013 09:47:48 +0000 (11:47 +0200)]
ETag handling for directories, xattr based MIME types for GET / HEAD
() [Mon, 10 Jun 2013 09:46:47 +0000 (11:46 +0200)]
break out early if request is invalid
() [Mon, 10 Jun 2013 05:43:11 +0000 (07:43 +0200)]
added mtime based ETag headers
() [Sun, 9 Jun 2013 09:42:49 +0000 (11:42 +0200)]
HEAD requests on files / directories work again as well
() [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)
() [Sat, 8 Jun 2013 18:42:26 +0000 (20:42 +0200)]
added simple request logging
() [Sat, 8 Jun 2013 18:42:11 +0000 (20:42 +0200)]
disabled debug output by default, added --debug option to enable it
() [Sat, 8 Jun 2013 18:33:37 +0000 (20:33 +0200)]
fixed --help output for --pid-file
() [Sat, 8 Jun 2013 18:33:11 +0000 (20:33 +0200)]
fixed writing pid-file and --stop option
() [Sat, 8 Jun 2013 17:36:24 +0000 (19:36 +0200)]
removed lots of deprecated logging & config stuff
() [Sat, 8 Jun 2013 17:36:15 +0000 (19:36 +0200)]
cleanup makefile a bit
() [Sat, 8 Jun 2013 17:36:11 +0000 (19:36 +0200)]
updated leakcheck script
() [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.
() [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!
() [Thu, 6 Jun 2013 18:56:39 +0000 (20:56 +0200)]
temporary commit in case I mess something up
() [Tue, 4 Jun 2013 14:24:48 +0000 (16:24 +0200)]
init script: take vars from /etc/default/rs-serve
() [Tue, 4 Jun 2013 14:18:43 +0000 (16:18 +0200)]
README: clarify we need libevent 2.0
() [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)
() [Tue, 4 Jun 2013 14:17:07 +0000 (16:17 +0200)]
turned log_debug() into a macro, so we can log files & line numbers
() [Tue, 4 Jun 2013 14:16:46 +0000 (16:16 +0200)]
implemented webfinger for --homes based on system users
() [Tue, 4 Jun 2013 14:16:09 +0000 (16:16 +0200)]
added --homes-min-uid option, removed --homes-group option in turn
() [Tue, 4 Jun 2013 14:14:53 +0000 (16:14 +0200)]
added init script & install it in "install" target