Jeremy Lakeman
4aac9e768e
Fix clang error due to copy paste
2014-07-14 16:01:10 +09:30
Jeremy Lakeman
d275a34802
Don't just straight to LIST_END when there's an end time in the future
2014-07-14 15:28:30 +09:30
Jeremy Lakeman
eaf069e1c3
Dont treat database lock errors the same as missing records
2014-07-14 15:26:50 +09:30
Jeremy Lakeman
bc87f8c7c0
Add timestamps to meshms messages and acks
2014-07-14 13:43:37 +09:30
Andrew Bettison
89623015fc
MeshMS Java API: list messages new since token
2014-07-14 06:06:21 +09:30
Andrew Bettison
4c6612a61e
Rhizome Java API: list bundles new since token
2014-07-12 22:49:00 +09:30
Andrew Bettison
606f087dd5
Merge latest Rhizome Java API into development
2014-07-11 12:29:24 +09:30
Andrew Bettison
2757a08b87
Rhizome Java API: insert inconsistent bundle
2014-07-11 11:15:08 +09:30
Andrew Bettison
8842f32b19
Rhizome Java API: insert journal is not implemented
...
Change the HTTP response code for unimplemented operations from 403 to
501
2014-07-10 22:23:11 +09:30
Andrew Bettison
e35bf77938
Rhizome Java API: insert/update empty bundle
2014-07-10 22:06:46 +09:30
Andrew Bettison
a87133d4d3
Rhizome Java API: insert anonymous bundle
2014-07-10 21:19:15 +09:30
Andrew Bettison
04b2a20e54
Rhizome Java API: improved form-data headers
...
Change manifest Content-Type from rhizome-manifest/text to
rhizome/manifest; format="text+binarysig"
Add "Content-Transfer-Encoding" form-part headers to Java API
sent form parts, although not currently checked by Rhizome
RESTful interface
2014-07-10 21:12:40 +09:30
Andrew Bettison
07dfc42f8f
Fixes #42 - VoMP session ID allocation
2014-07-10 13:04:56 +09:30
Andrew Bettison
e2d8ca1e66
Issue #11 : remove unnecessary long long
2014-07-10 12:42:32 +09:30
Andrew Bettison
57cce64b6c
Rhizome Java API: narrower exceptions
2014-07-10 06:43:24 +09:30
Andrew Bettison
a81d05b4f6
Rhizome Java API: insert bundle
2014-07-10 06:43:17 +09:30
Andrew Bettison
3715c5bf0b
Rhizome Java API: negative fetch tests
2014-07-10 06:30:50 +09:30
Andrew Bettison
2aec8f31a4
Rhizome Java API: get decrypted payload
2014-07-10 06:30:50 +09:30
Andrew Bettison
d16be8f42d
Improve MeshMS HTTP RESTful interface
...
Provide "meshms_status_message" in returned JSON status content
2014-07-10 06:30:50 +09:30
Andrew Bettison
cf43635789
Improve Rhizome HTTP RESTful interface
...
Add RHIZOME_BUNDLE_STATUS_READONLY enum value
Tighten up switch statements on bundle and payload status enums (no
default labels)
Rename some recently added enum entries
Return bundle status and payload status in HTTP responses
Add test for failing to decrypt a foreign encrypted bundle payload,
fix bug that caused an assertion failure
Add tests for fetching a non-existent manifest and fetching bundles
whose payload blob is not in the store
2014-07-10 06:29:51 +09:30
Andrew Bettison
34b6ff48bf
Rhizome Java API: get raw payload
...
Added more "Serval-Rhizome-Bundle-xxx" headers to /restful/rhizome/
responses, so that a more complete manifest can be constructed from
them
2014-07-10 06:29:09 +09:30
Andrew Bettison
93e67ede63
Rhizome Java API: get manifest
...
Fixes assertion violation in GET /restful/rhizome/<BID>.rhm when <BID>
not found
2014-07-10 06:29:09 +09:30
Andrew Bettison
db8ee79a4e
Rhizome Java API: list bundles
2014-07-10 06:29:09 +09:30
Andrew Bettison
61023287b1
Refactor Rhizome manifest validation
...
New function returns text describing the failed validation
2014-07-10 06:29:09 +09:30
Andrew Bettison
1ac67de0e9
Fix bug in HTTP server's form-data parsing
...
Did not handle a non-empty preamble properly
2014-07-10 06:29:09 +09:30
Jeremy Lakeman
51540a3017
Implement read and write pointer using memcpy, might fix #78
2014-07-07 16:28:20 +09:30
Jeremy Lakeman
20d6bdf317
Add Java API getter for servald binary path
2014-07-07 15:08:21 +09:30
Jeremy Lakeman
63226143ac
Don't log an error when MDP fetch fails due to missing bundle
2014-07-07 11:31:09 +09:30
Jeremy Lakeman
096c9670ca
Remember when we last verified each payload
2014-07-04 14:25:28 +09:30
Jeremy Lakeman
9395120b05
Fix off by one error in packet acknowledgment
2014-07-04 12:23:18 +09:30
Andrew Bettison
838f971850
Fix Makefile.in for OpenWRT build
...
Was not passing $(CFLAGS) $(DEFS) to compile servald_version.c, which
provoked a "cc1: note: someone does not honour COPTS correctly, passed 0
times" warning
Also was not doing "mkdir -p opts" before the compile, which produced an
"opts/version.o: No such file or directory: error
2014-07-02 10:09:13 +09:30
Jeremy Lakeman
c8b317b328
Fix sqlite compiler warnings, when building with gcc
2014-07-01 18:31:31 +09:30
Jeremy Lakeman
6f5160bf54
Don't return from server() as we can't guarentee that everything is cleaned up.
2014-06-30 22:37:55 +09:30
Andrew Bettison
a9ec5dcf69
Refactor Rhizome test script ready for re-use
...
Move add_bundles() function from 'rhizomerestful' test script into
testdefs_rhizome.sh, rename to rhizome_add_bundles() and add a new
SID argument
2014-06-30 11:11:01 +09:30
Andrew Bettison
c5d3069d82
'make all' now makes libserval.so
2014-06-30 11:11:01 +09:30
Andrew Bettison
188a67d3c1
Improve test framework: tfw_shopt, tfs_shopt_restore
2014-06-30 11:11:01 +09:30
Andrew Bettison
067340bbba
Change HTTP Authorization realm to "Serval RESTful API"
...
Was "Serval Rhizome", which is not accurate
2014-06-30 11:11:01 +09:30
Andrew Bettison
11e9d38299
Rename config 'rhizome.api.restful' to 'api.restful'
2014-06-30 11:11:01 +09:30
Jeremy Lakeman
8f3acce75f
Remove dead code
2014-06-30 10:32:24 +09:30
Jeremy Lakeman
bdac56cdb4
Omit more features of sqlite, and fix warnings
2014-06-30 10:14:12 +09:30
Jeremy Lakeman
20af8a9477
Squelch info message that is occuring while fetching a journal bundle
2014-06-30 08:40:48 +09:30
Jeremy Lakeman
31dbfa4e58
Improve debug info for rhizome sync
2014-06-28 20:27:29 +09:30
Jeremy Lakeman
75d488b339
Add new debug flag to show what payloads are being included in network packets
2014-06-28 20:17:26 +09:30
Jeremy Lakeman
e862b42074
Fix is_interesting(bar) test
2014-06-28 20:11:43 +09:30
Jeremy Lakeman
58ea5a1c8b
Simplify fetch decisions when manifest arrives
2014-06-28 17:41:05 +09:30
Jeremy Lakeman
588b95ab20
Ensure temporary id is unique
2014-06-28 17:36:06 +09:30
Jeremy Lakeman
b5bafe3c50
Sort timing details by duration then call count
2014-06-27 15:08:25 +09:30
Jeremy Lakeman
804cc93be6
Fix HTTP transfers of large payloads
2014-06-27 15:07:26 +09:30
Jeremy Lakeman
186b6cbc2f
Allow more servald's to be running during tests
2014-06-27 12:46:29 +09:30
Jeremy Lakeman
537a09812c
Ignore some types of sendto errors
2014-06-27 12:45:53 +09:30