Gioacchino Mazzurco
4c0baa1ec3
Fix JSON API event handler registering behavior
...
As a bonus the behaviour is now homogeneous between C++ API and JSON API
Fix a bunch of compiler warning
RsEvents implementation is now safer
mHandlerMaps size is known at compile time, so use an std::array instead
of vector
2020-04-14 12:24:57 +02:00
Gioacchino Mazzurco
ce5f5faa97
Fix Android compilation after rebase on master
2020-04-14 12:24:57 +02:00
Gioacchino Mazzurco
b42c0410f1
Expose pgpIdFromFingerprint to JSON API
...
+ missing explicit in one paramether costructor
2020-04-14 12:17:04 +02:00
Gioacchino Mazzurco
9d325e3d17
Fix mail in rsjsonapi.h copyright header
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
0d1524aa12
Fix crash due to RsChatAvatarItem uninitialized pointer
...
Caught signal 11 (SIGSEGV)
stack trace:
retroshare( 0xbbd2da)[0x558ccf46a2da]
retroshare(CrashStackTrace::abortHandler(int) 0xeb)[0x558ccf471c5c]
/lib64/libc.so.6( 0x38f80)[0x7f6ef6facf80]
/lib64/libc.so.6(realloc 0x54)[0x7f6ef6fffef4]
retroshare(RsTypeSerializer::RawMemoryWrapper::serial_process(RsGenericSerializer::SerializeJob, RsGenericSerializer::SerializeContext&) 0x5d4)[0x558ccfcddad0]
retroshare(std::enable_if<std::is_base_of<RsSerializable, RsTypeSerializer::RawMemoryWrapper>::value, void>::type RsTypeSerializer::serial_process<RsTypeSerializer::RawMemoryWrapper>(RsGenericSerializer::SerializeJob, RsGenericSerializer::SerializeContext&, RsTypeSerializer::RawMemoryWrapper&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) 0x9d)[0x558ccfb3da66]
retroshare(RsChatAvatarItem::serial_process(RsGenericSerializer::SerializeJob, RsGenericSerializer::SerializeContext&) 0x84)[0x558ccff90ba6]
retroshare(RsServiceSerializer::deserialise(void*, unsigned int*) 0x403)[0x558ccfcd96e9]
retroshare(RsSerialiser::deserialise(void*, unsigned int*) 0x38e)[0x558ccfb5a1a8]
retroshare(pqiSSLstore::readPkt(RsItem**) 0x3f9)[0x558ccfad329f]
retroshare(pqiSSLstore::GetItem() 0xbb)[0x558ccfad2d9f]
retroshare(pqiSSLstore::getEncryptedItems(std::__cxx11::list<RsItem*, std::allocator<RsItem*> >&) 0x3e)[0x558ccfad2c26]
retroshare(p3Config::loadAttempt(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::list<RsItem*, std::allocator<RsItem*> >&) 0xf8)[0x558ccfab20d0]
retroshare(p3Config::loadConfig() 0xeb)[0x558ccfab1d69]
retroshare(p3Config::loadConfiguration(t_RsGenericIdType<20u, false, (RsGenericIdType)2>&) 0x1c)[0x558ccfab1c7c]
retroshare(p3ConfigMgr::loadConfig() 0x97)[0x558ccfab17f3]
retroshare(p3ConfigMgr::loadConfiguration() 0x18)[0x558ccfab1758]
retroshare(RsServer::StartupRetroShare() 0x4407)[0x558ccfb02fab]
retroshare(main 0x17e2)[0x558ccf46d291]
/lib64/libc.so.6(__libc_start_main 0xeb)[0x7f6ef6f97e9b]
retroshare(_start 0x2a)[0x558ccf438c9a]
D 1585687209 void RetroDb::closeDb() sqlite3_close return: 0
D 1585687209 void RetroDb::closeDb() sqlite3_close return: 0
Memory still in use at end of program: 24776 bytes.
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
0187bf2f2f
Suppress eccessive VLQ debugging
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
d7f23ce21c
Deprecate unreliable Channels features
...
Fix licensing years
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
198fa7d8bc
RsFiles::parseFilesLink support old link formats
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
8b4fcbe9e0
Remove unused constant from rsfiles.h
2020-04-14 12:17:03 +02:00
Gioacchino Mazzurco
a0da5a3120
Improve debugging
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
cdafb7e27f
Fix a few compiler warnings
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
1fd6e7e97a
Add API call to create links to extra files
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
55aab6c447
Add RsFiles::requestFiles to de API to download whole colletions
...
Fix filetree creation from single file
RsDirUtil::moveFile now works also if parent directories doesn't exists
Backport std::filesystem::create_directories from C++17
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
d666e58403
Fix regression in sequence container FROM_JSON
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
fc5ad40c90
Add C++14 template types helpers that seems missing in TravisCI MacOSX
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
da66719b83
Fix Android compilation
2020-04-14 12:17:02 +02:00
Gioacchino Mazzurco
a509098a79
Enable C++14 support
...
GCC with C++14 support is already shipped in all supported distributions
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
5610cc8600
Fix memory management and deprecated removal from serialization
...
Fix missing RsDiscPgpKeyItem initialization
Fix inconsistent new[]/delete[] usage in RsDiscPgpKeyItem and
PGPHandler::exportPublicKey which now consistently uses malloc/free
Remove deprecated RsGenericSerializer::FORMAT_*
Move from deprecated RsServiceSerializer::SERIALIZATION_FLAG_* to
RsSerializationFlags
Solve a bunch of compiler warnings
Stricter checks in SerializeContext costructor
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
39bde58c29
Many serialization and related stuff improvements
...
Fix bug in array-like containers serialization which could cause almost infinite
loop on malformed input
Implement VLQ integer serialization
Unify sequence containers serialization code
Add support for VLQ serialization also for string size
Use VLQ compression for file links
Add templated function to fix endiannes for all integer types
Use bitset to print flags in binary form
Unify serialization code for integral types
Serialize 64bit integers types to JSON object with both string and integer
representation, so it is posible to have this representation also for
containers types like std::vetor or std::map this breaks retrocompatibility
but is necessary to support clients written in languages which doesn't have
64 bit integers support such as JavaScript or Dart
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
d203f31d0c
Improve files links generation parsing and errors
...
Implement URL safe base64 for file links
Implement sneaking file data into URL fragment
Deprecate Radix65 in favore of RsBase64 which supports also URL safe encoding
2020-04-14 12:17:01 +02:00
Gioacchino Mazzurco
55d466f79b
Initial work on RsFiles links support in libretroshare
2020-04-14 12:17:01 +02:00
csoler
b6c5e2f188
Merge pull request #1847 from csoler/v0.6-GxsDbFix
...
This branch aims at fixing the requests problems in RsGxsDataAccess
2020-04-13 14:13:33 +02:00
csoler
bc748bf152
improved variable name and comment for GxsRequest::ansType
2020-04-13 13:35:35 +02:00
csoler
54f8ef1ffe
fixed small bug causing read/unread and new msgs to not update immediately
2020-04-12 23:07:42 +02:00
csoler
a8f94f9d74
cosmetic changes: std::cerr=>RsErr(), __PRETTY_FUNCTION__, removed debug flags, etc
2020-04-12 14:00:29 +02:00
csoler
f74c65fcc0
created a specific GxsEvent for Group Statistics changes and handle it in the GUI for all friends at once every 2 min at most
2020-04-11 20:52:35 +02:00
csoler
eb14a5ed4c
Merge pull request #1852 from drbob/theWire-ui-improvements
...
Improvements for TheWire UI
2020-04-11 13:25:10 +02:00
drbob
0113aed20f
Disable follow / rate buttons, and fix time filter periods
2020-04-11 16:23:12 +10:00
drbob
7d8323f3e2
Cleanup WireDialog
...
Cleanup WIreDialog UI, removing unused bits
Switch Groups to LHS and Add Simple Time Filter.
2020-04-11 16:07:40 +10:00
drbob
124781c1e0
Fixup PulseAddDialog and underlying datatypes
...
Cleaned up UI, removing unnecessary sidebar.
Added cleanup of Dialog to reset properly
Disabled URL adder, until it is complete
Added ComboBox for reply sentiment
Only enable Post button when length between 1 and 999 characters
Add Icon to WireGroup (future proofing datatype)
2020-04-11 12:55:04 +10:00
csoler
b7363b4d4e
fixed supid bug causing msgs to not be correctly retrieved
2020-04-10 22:23:49 +02:00
csoler
e433a64bb2
implemented new version of selection for only latest messages
2020-04-10 22:09:34 +02:00
drbob
9e0d56f408
TheWire UI Improvements
...
Ensure that PulseAddDialog updates ReplyTo pulse correcly.
PulseDetails actions enabled correctly.
Allow selection of WireGroup by clicking in list.
2020-04-10 21:36:31 +10:00
csoler
37074d81ff
fixed uninitialized memory read
2020-04-09 22:56:59 +02:00
csoler
4e66455ac0
started to re-write the getMsgMeta and Ids in gxsdataaccess for better efficiency. Lastest msgs only net yet functional
2020-04-09 22:55:13 +02:00
csoler
b0e61376f1
removed calls to getServiceStatistics from GxsUserNotify and replaced by info collected by GxsGroupFrameDialog
2020-04-08 21:11:53 +02:00
csoler
b51520bccf
Merge pull request #1846 from G10h4ck/millisec_dbg_message
...
Add millisecond details to debug messages timestamp
2020-04-08 16:39:31 +02:00
G10h4ck
9b33e46ddb
Merge pull request #1850 from G10h4ck/GitlabCI
...
Support for GitlabCI
2020-04-08 12:45:36 +02:00
Gioacchino Mazzurco
ee86f88149
GitlabCI fix typo in test
2020-04-08 12:10:07 +02:00
Gioacchino Mazzurco
4968bb56ab
GitlabCI use better variable to determine source dir
2020-04-08 12:10:07 +02:00
Gioacchino Mazzurco
5f85a897ba
GitlabCI remove unuseful steps and fix variable
2020-04-08 12:10:07 +02:00
Gioacchino Mazzurco
490ac43d02
GitlabCI fix CI_REGISTRY_IMAGE for merge requests
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
ac11ae9a40
GitlabCI install jq in outer docker image where it is executed
...
Export needed variable that is missing in merge requests
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
4890411964
GitlabCI look for jq
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
be28a1cbfb
Add Gitlab CI build status
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
8303f42af0
GitlabCI fix some tests
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
a95b99dcb4
GitlabCI install curl and jq in base image
2020-04-08 12:10:06 +02:00
Gioacchino Mazzurco
463d46a26f
GitlabCI add rules to trigger pipeline on merge requests
2020-04-08 12:10:05 +02:00
Gioacchino Mazzurco
31424cd2f0
GitlabCI remove extra indentation from yaml multiline
2020-04-08 12:10:05 +02:00
Gioacchino Mazzurco
8098eb1225
Initial work on GitlabCI
2020-04-08 12:10:05 +02:00