Commit Graph

3775 Commits

Author SHA1 Message Date
Jeremy Lakeman
7c4c242577 Add placeholder for blocked feeds 2017-04-24 14:52:25 +09:30
Jeremy Lakeman
a244c23a51 Delay meshmb flush until http resume 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
fb2322d45f Add Java Date for timestamps 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
f060e4dc59 Add Java api for meshmb restful activity 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
4b98def664 Add newsince request for incoming activity 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
be9c138559 Add restful API for feed activity 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
bfbd2ddccd Abbreviate the bundle id in feed ack's 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
1973df13b3 cli interface for reading threaded feed activity 2017-04-19 14:46:37 +09:30
Jeremy Lakeman
b7b77e81ee Add helpers for parsing ply records 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
940b8c2d4b Ack incoming feeds for threading 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
ecc77b4088 Refactor ply append to open/write/close semantics 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
5ccff053c2 Add bundle author to feed metadata 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
a0dbe115aa Add Java API for managing subscriptions 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
d2dfe71f26 Restful meshmb list subscribed feeds 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
e7ca268dbc Add restful API's for follow and ignore 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
a8c29bbb15 Add MeshMB cli commands to follow and ignore feeds 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
2f60b8417f Test and fix rhizome clean verify 2017-04-19 14:46:36 +09:30
Jeremy Lakeman
f06d9bb574 Always include sys/mman.h for android builds 2017-04-10 15:01:12 +09:30
Jeremy Lakeman
1e70c8fe53 Assert if attempting to pipe a journal bundle after deriving a crypto key 2017-03-28 14:36:50 +10:30
Jeremy Lakeman
88d70fc386 Don't assert if a query parameter is empty 2017-03-22 13:04:58 +10:30
Jeremy Lakeman
cb0b2caa69 Add casts to fix compile warning on android 2017-03-22 13:04:58 +10:30
Jeremy Lakeman
650db68a69 Set service of private bundles 2017-03-21 13:09:47 +10:30
Jeremy Lakeman
77198dd163 Read earlier journal payload out of store 2017-03-08 13:37:26 +10:30
Jeremy Lakeman
d213247927 One more fix for transfers with DB locking 2017-03-07 10:07:42 +10:30
Jeremy Lakeman
585e573ecf Refactor rhizome storage methods to return database busy status, and pause rhizome sync 2017-03-06 16:12:55 +10:30
Jeremy Lakeman
2540c9e633 Cause rhizome add to poke the daemon and trigger all bundle add notifications 2017-03-06 16:12:55 +10:30
Jeremy Lakeman
c739555e8c Ensure we call rhizome_fail_write when the store was busy 2017-03-01 12:44:47 +10:30
Jeremy Lakeman
39fbcc475e Track call stats of mdp port handlers 2017-02-28 14:32:08 +10:30
Jeremy Lakeman
9ec46f2279 Deal with some database locking during transfers with the rhizome sync keys process.
Push back messages to re-process later
Queue and retry both the start and end of the transfer process
2017-02-28 13:13:31 +10:30
Jeremy Lakeman
4c538a7686 Return payload busy if write fails to flush, treat as an error in most cases 2017-02-28 13:13:09 +10:30
Jeremy Lakeman
f60704b3e1 Tweak caching edge case of reading message ply's backwards 2017-02-14 14:56:40 +10:30
Jeremy Lakeman
8571de4848 Avoid recompiling java class if they have not changed 2017-02-14 14:56:40 +10:30
Jeremy Lakeman
c05775a320 Generalise deterministic key generation 2016-11-21 11:09:27 +10:30
Jeremy Lakeman
3726fe2f73 Move vomp console feature to test binary 2016-11-21 11:09:27 +10:30
Jeremy Lakeman
1e70bcaac6 Clean up some more warnings 2016-11-21 10:34:12 +10:30
Jeremy Lakeman
d11fef3226 Add casts to fix warnings on some versions of gcc 2016-11-19 10:58:57 +10:30
Andrew Bettison
2690a5795b Add SERVAL_ENABLE_DEBUG macro 2016-11-14 11:40:22 +10:30
Andrew Bettison
e769af0067 Compile Java during make, not during tests
Re-organised all Java source code under the java-api subdirectory, which
also contains a Makefile.in that performs the Java compilation.  This
makefile is only invoked if ./configure finds a working Java compiler.
2016-11-14 11:28:08 +10:30
Andrew Bettison
a8867df1b0 Fix Makefile.in for out-of-tree build
Improves support for running make from a current working directory that
is not the repo root.  Only the files that reside in the repo root are
prefixed with $(SOURCE_PREFIX); the files that are created by
./configure are in the current working directory.
2016-11-14 11:28:08 +10:30
Andrew Bettison
ccacd19dfa Add global keyring assertions
Many functions require that the global 'keyring' pointer is set,
but there were no assertions to document this precondition.
2016-11-14 11:28:08 +10:30
Andrew Bettison
6d2eb268ed Add 'cmd_cleanup' trigger
The new 'cmd_cleanup' trigger replaces the old command_cleanup()
function, which was causing linking problems on OS X and inverted strict
dependency.  The keyring cmd_cleanup calls keyring_free(global_keyring),
instead of merely asserting keyring == NULL, so the error exit cases of
many CLI functions have been simplified.
2016-11-14 11:28:03 +10:30
Andrew Bettison
931f25a9e7 Fix strlcpy.c compile error on OS X 2016-11-09 19:03:45 +10:30
Jeremy Lakeman
bd9083d57d Fix tests with clean work folder, renamed libservald to libservaldaemon 2016-11-07 14:23:45 +10:30
Andrew Bettison
a8e394d299 Add "keyring remove" command
Adds a CLI and RESTful API operation for "keyring remove", with simple
test cases.  Added the corresponding Java API operation.  Updated the
API documentation.

API change: for consistency with RESTful API design, the GET
/restful/keyring/add operation now returns "201 Created" not "200 OK" if
successful.
2016-11-07 13:07:49 +10:30
Andrew Bettison
e47d0ce1c7 Fix the RESTful keyring add/set http_status_message
For successful requests (200), was being returned as "application/json",
but should be "OK".
2016-11-07 11:38:20 +10:30
Andrew Bettison
24266b5f3b Add 'api.restful.authorization' config option 2016-11-07 11:38:20 +10:30
Jeremy Lakeman
5b75221c91 Fix compiler warnings when building with android ndk 13b 2016-11-07 10:38:23 +10:30
Jeremy Lakeman
159188d08c Don't overflow the stack if logging config causes more logging due to using memory diagnostics 2016-10-31 15:23:06 +10:30
Jeremy Lakeman
f4210e06d8 Make sure all restful newsince responses can be sorted by the front end 2016-10-31 10:56:10 +10:30
Jeremy Lakeman
84caa24d0f Pass identity name as meshmb manifest name 2016-10-26 13:09:35 +10:30