Commit Graph

6357 Commits

Author SHA1 Message Date
csoler
7db8400233 disable limit of forward time checking for validating signatures 2020-11-15 21:22:25 +01:00
csoler
f9bb886c27 fixed bug in circles causing missing identities to block circle interaction in UI and data send/recv 2020-11-14 23:40:03 +01:00
csoler
f8721ad60f Merge remote-tracking branch 'upstream/master' into v0.6-BugFixing_2 2020-11-12 23:17:55 +01:00
csoler
3d958a7592 moved event to the right place for detecting change in local address 2020-11-11 22:43:07 +01:00
csoler
9a2749dbe5 added flags to invite system to unify the different variables and made sure the HomePage contains at least current IP (not fully tested) 2020-11-09 22:42:28 +01:00
thunder2
76b22ada5c Added new config "libretroshare_shared" to build libretroshare as shared library (default off) based on changes from ET. Activated for Windows build with plugins to fix the link error (ld.exe: Error: export ordinal too large) due to too many exported symbols. 2020-11-09 20:00:50 +01:00
thunder2
1895abfb24 Changed updating submodules for Windows build. Use "cd /D" to change directory. 2020-11-09 16:16:29 +01:00
csoler
d2bd947252 fixed bug due to passing shared_ptr to RsThread::async() without making an explicit copy before 2020-11-08 18:25:20 +01:00
csoler
d472053960 fixed missing call to update comments in GxsChannelPostsModel 2020-11-08 14:57:17 +01:00
csoler
08e2987154 added icon over posts with comments in channels 2020-11-07 20:52:50 +01:00
Phenom
b1129df077 Change Chat History Dialog to no modal.
It will be updated when new message comes.
2020-11-07 18:09:50 +01:00
csoler
3cac0c030d added NEW_COMMENT and NEW_VOTE to rsEvents types in Posted and Channels 2020-11-07 16:55:15 +01:00
csoler
dc90d6f6dc renamed SSGXSChannelGroup to GxsChannelGroupInfo, mCount in RsGxsChannelPost to mAttachmentCount and added a mCommentCount member. Also added some missing override in p3gxschannels.cc 2020-11-06 23:08:18 +01:00
csoler
1dd54317c7 fixed pinned post immediate update by adding the proper rsEvent notification when updating own group data. Should also help in circles 2020-11-04 22:30:30 +01:00
Gioacchino Mazzurco
079180c790
Fix compilation with libupnp 1.14.0
Based of sehraf patch https://github.com/RetroShare/RetroShare/issues/2072#issuecomment-703299870
2020-11-03 17:53:52 +01:00
csoler
b5cfa46073 fixed missed notification in Messages when new/draft msg happens by switching to new event system 2020-10-28 21:26:07 +01:00
csoler
74edefcc43 added infrastructure to track oingoing distant GXS group requests 2020-10-25 22:47:48 +01:00
csoler
c30107c248 added up-to-date info about sync period in group data details (channels, boards, forums) and warning when the sync period is too small w.r.t. the date of last post 2020-10-24 21:17:34 +02:00
hunbernd
a7cda5167d Fix: additional / when combining file paths 2020-10-23 22:28:35 +02:00
csoler
4199b1a02f switched to 0.6.6 2020-10-15 20:41:36 +02:00
csoler
ce6fb603c7
Merge pull request #2026 from csoler/v0.6-BoardsGUI
V0.6 boards gui
2020-10-12 20:07:42 +02:00
csoler
1170f0bc7b Merge remote-tracking branch 'upstream/master' into v0.6-BoardsGUI 2020-10-10 23:12:58 +02:00
csoler
74660b916a Merge remote-tracking branch 'upstream/master' into v0.6-TorV3 2020-10-10 23:12:27 +02:00
Gioacchino Mazzurco
eca11d0885
retroshare-gui: fix missing include in jsonapipage
Fix compile error, warnings and typo
2020-10-07 10:58:52 +02:00
csoler
3912c6562e fixed bugs causing short invites to not generate/parse hidden nodes with correct options to keep hidden address 2020-10-06 23:02:00 +02:00
sehraf
26d0443ff9
fixed Cyrils remarks 2020-10-04 20:41:34 +02:00
sehraf
26fdd79b50
Merge remote-tracking branch 'RetroShare/master' into pr_rsconfig 2020-10-04 20:25:06 +02:00
csoler
5dfa481f2f added code to change posts read status 2020-09-22 23:32:10 +02:00
csoler
0e4d438066 fixed model update when new vote is posted by user 2020-09-17 21:08:07 +02:00
csoler
5915c27b9f merged upstream 2020-09-11 22:37:26 +02:00
csoler
6e3f42381e
Merge pull request #2060 from csoler/v0.6-BugFixing_2
UI Bug fixing
2020-09-11 21:21:47 +02:00
csoler
a4d3848547 Hidden nodes always drop IP information from normal nodes. 2020-09-05 10:29:12 +02:00
csoler
05daa0387b added some debug info in p3gxschannels.cc 2020-09-03 20:53:57 +02:00
csoler
97762093ce added missing initialization of write-only pointer that causes error in RsTypeSerializer 2020-09-01 22:34:56 +02:00
csoler
e2a04c1baa
Merge pull request #2059 from G10h4ck/stubborn_post
Forum add API to mark a post to be kept forever
2020-09-01 22:28:10 +02:00
csoler
4e923bd8ad
Merge pull request #2057 from G10h4ck/rm_deadcode
Remove a bunch of deadcode
2020-09-01 22:25:29 +02:00
Gioacchino Mazzurco
06d8476120
Forum add API to mark a post to be kept forever
This way the post never get deleted even when older then  parent group
  maximum storage time
2020-09-01 16:15:49 +02:00
Gioacchino Mazzurco
4a81f7f5db
Remove documentation for param which doesn't exists anymore 2020-09-01 15:36:47 +02:00
Gioacchino Mazzurco
162028abd0
Remove a bunch of deadcode 2020-09-01 12:01:38 +02:00
csoler
fa72af4d0c merged upstream/master 2020-08-25 11:52:06 +02:00
csoler
bb6706e996 added missing destructor in MsgMetaCache 2020-08-15 18:54:00 +02:00
csoler
20346fc30e fixed voting in Boards 2020-08-12 12:02:28 +02:00
csoler
347b3ac9aa added mechanism for voting. Not working yet 2020-08-11 22:10:22 +02:00
thunder2
0df86aa416 Fixed update of submodule supportlibs/udp-discovery-cpp and supportlibs/restbed with mingw32-make compile 2020-08-11 13:19:08 +02:00
thunder2
4c4648e3e2 Fixed compile of jsonapi with MinGW 2020-08-11 00:37:56 +02:00
thunder2
1760f819c8 Added git update of submodule supportlibs/udp-discovery-cpp for MinGW compile 2020-08-11 00:37:45 +02:00
drbob
9a90ef694e [TheWire] update GroupPtrs
Ensure all possible GroupPtrs are filled in on Pulse Data Requests.
 * Expand Id collection to include all the additonal RefGroupIds.
 * Perform intersection(available IDs, pulse GroupIds) before retrieving
 * Iterate over pulse tree and update GroupPtr references.
 * Enable GROUP_IDS gxs data fetches.
2020-08-07 18:12:06 +10:00
csoler
035010af76
Merge pull request #1970 from drbob/TheWire-rework-ui
TheWire rework UI, and update Data Messages.
2020-08-03 14:57:03 +02:00
drbob
660be58cf2 make image count more robust 2020-08-03 20:48:44 +10:00
thunder2
2eb7fecd42 Fixed Windows build of udp-discovery-cpp without MSYS2 2020-08-01 22:31:31 +02:00
Gioacchino Mazzurco
794fb13660
Fix description in copyright header 2020-08-01 18:28:20 +02:00
Gioacchino Mazzurco
3a6648f706
Fix build error on big endian architectures 2020-08-01 18:23:35 +02:00
G10h4ck
9587cfd4d9
Merge pull request #2009 from hunbernd/feature/msys2enhancements
Reworked msys2 build scripts
2020-08-01 18:00:19 +02:00
G10h4ck
97a0ba72f6
Merge pull request #2032 from G10h4ck/forums_get_child_posts
Add API method to retrieve forum child posts
2020-08-01 17:11:10 +02:00
drbob
8c869f0bbf Merge remote-tracking branch 'origin/master' into TheWire-rework-ui 2020-07-31 09:58:00 +10:00
drbob
b0245920aa Fix Gxs data requests with LATEST flag.
This was broken during a re-write earlier this year.
Currently the code incorrectly checks mParentId,
this has been fixed to check mOrigMsgId.
2020-07-30 23:02:17 +10:00
drbob
0522c7907a Merge branch 'master' into TheWire-rework-ui 2020-07-30 21:45:59 +10:00
csoler
ed0e0f1da1
removed more debug info 2020-07-23 22:05:45 +02:00
csoler
7d21390d03
increased GxsId size to 15000 2020-07-23 21:59:35 +02:00
csoler
120eb02638
disabled debug output 2020-07-17 21:56:57 +02:00
csoler
e4d9194073
fixed bug causing to not request identities correctly to friends 2020-07-17 00:27:09 +02:00
csoler
016e6445a3
fixed bug causing dataservice to return a non null group when the DB doesnt contain the requested group, causing rsgxsnetservice to still sync new groups in no mGrpAutoSync mode, causing identities to spread like hell 2020-07-17 00:26:14 +02:00
csoler
6f636fd816
fixed compilation and re-enabled sync grp broadcast because it is necessary for grp updates 2020-07-16 21:51:37 +02:00
csoler
1a2e25da71
disabled syncWithPeers group sync broadcast when mGrpAutoSync is false 2020-07-16 21:41:01 +02:00
csoler
6e52804547
fixed bug causing banned GXS id to be still added to sync list 2020-07-16 21:33:26 +02:00
Gioacchino Mazzurco
c01d797386
Add API method to retrieve forum child posts
RsGxsDataAccess::getMsgRelatedInfo print errors also when not debugging
RsGxsForums::getChildPosts get child posts from parent id
p3gxsforums.cc remove a bit of deadcode
2020-07-16 10:31:02 +02:00
csoler
b3ab99bd49
added last minute check to avoid re-requesting IDs that have been loaded in cache after they where foundmissing 2020-07-15 22:07:31 +02:00
csoler
94918dc1a3
fixed error in parsing identity service string. 2020-07-15 21:22:02 +02:00
csoler
6d665868e8
fixed usage info statistics in identities 2020-07-08 12:56:40 +02:00
csoler
57a1c4bf5d
attempt to improve the info about GXS id usage 2020-07-07 23:01:20 +02:00
csoler
8fba3ba937
Merge pull request #2015 from csoler/v0.6-BugFixing
Fixing distant channel search
2020-07-03 22:45:55 +02:00
csoler
d805b18578
Merge pull request #2024 from csoler/v0.6-GXS-Optim
added anti-clogging strategy in GXS. To be tested.
2020-07-03 21:20:05 +02:00
Gioacchino Mazzurco
6510af7ab6
Enable JSON API for channel turtle search
Add event subtype to RsGxsChannelSearchResultEvent so its type can be
  recognized from JSON API
Remove unused member remnant of the past from RsGxsChannelEvent
2020-07-03 18:07:07 +02:00
Gioacchino Mazzurco
0c173587e2
Merge branch 'v0.6-BugFixing' of https://github.com/csoler/RetroShare into csoler-v0.6-channe_distant_search 2020-07-03 16:03:43 +02:00
csoler
9133adbde8
added anti-clogging strategy in GXS. To be tested. 2020-06-29 21:03:17 +02:00
Gioacchino Mazzurco
2d01eadd56
Fix missing include in i2p common 2020-06-29 15:45:53 +02:00
csoler
ba486a0029
multiple improvements in distant channel search and general display of distant search results 2020-06-25 21:15:37 +02:00
csoler
500f572b98
merged with master 2020-06-25 16:53:18 +02:00
csoler
69b51fecb7
Merge pull request #1994 from csoler/v0.6-ChannelsGUI
Abstract item model for channels
2020-06-24 23:22:44 +02:00
hunbernd
6863f4cc70 Fix hidden node crashing at the startup, caused by calling uninitialized objects. 2020-06-21 21:55:52 +02:00
csoler
d0a373c14f
print more debug info and added missing emit to display the channel tab name after loading 2020-06-21 21:43:10 +02:00
hunbernd
a5d23d0b3f Merge remote-tracking branch 'remotes/retroshare/master' into feature/msys2enhancements 2020-06-19 22:48:43 +02:00
csoler
9f5e7f2081
removed debug info 2020-06-16 21:29:13 +02:00
csoler
33da5c06b8
removed multi-callback based distant search result handling, and use rsEvents instead 2020-06-16 21:13:55 +02:00
G10h4ck
891d7e7c9a
Merge pull request #1971 from sehraf/pr_i2p_refactoring
i2p refactoring
2020-06-16 18:26:08 +02:00
csoler
8e2c670716
fixed the logic with distant search. 2020-06-16 00:00:22 +02:00
csoler
61437cd0b4
added some debug info in rsgxsnetservice distant search result handling and fixed a bug causing so some search result to not show up 2020-06-15 21:11:58 +02:00
Gioacchino Mazzurco
f13b429f1c
Document what chars are return RsRandom::alphaNumeric
As requested by Cyril
2020-06-13 14:58:30 +02:00
sehraf
f18d49db48
use RsRandom::alphaNumeric 2020-06-13 11:07:07 +02:00
sehraf
8323b94a6a
use modern c++ 2020-06-13 10:58:44 +02:00
sehraf
ba23b9ad51
fix typo 2020-06-13 10:57:08 +02:00
Gioacchino Mazzurco
5ff5a32df7
Proper naming for RsRandom string functions 2020-06-12 20:06:43 +02:00
sehraf
f88527dbd7
i2pbob: remove sockaddr_storage_tostring 2020-06-12 17:28:08 +02:00
sehraf
ebc5a116b2
remove unnecessary std::replace 2020-06-11 11:18:52 +02:00
sehraf
591d2ad864
autoproxy: use new RS_DBG 2020-06-11 11:16:31 +02:00
sehraf
3d784e8871
remove unnecessary std::replace 2020-06-11 11:14:01 +02:00
sehraf
86c30a01dd
next attampt to use RS_DBG correctly 2020-06-11 10:55:09 +02:00
sehraf
7207e6a2c1
use RS_DBG 2020-06-10 22:06:12 +02:00
sehraf
008a4b87b3
replace std::map with std::array 2020-06-10 22:06:12 +02:00
sehraf
d0c5dc4e24
i2p: bob: convert to RS_DBG 2020-06-10 22:06:09 +02:00
sehraf
a5a2b49d99
i2p: bob: add option to disable bob CONFIG+=no_rs_bob 2020-06-10 20:05:00 +02:00
sehraf
9a5504bb47
autoproxy: make async really async 2020-06-10 20:05:00 +02:00
sehraf
b6a550b8f5
autoproxy: make use of rsdebug.h 2020-06-10 20:05:00 +02:00
sehraf
f4f08f0379
i2p: bob: rework recv() to check for new line character as EOL indicator 2020-06-10 20:05:00 +02:00
sehraf
1da3d262d9
i2p: bob: removed function name within debug output (replaced by __PRETTY_FUNCTION__) 2020-06-10 20:05:00 +02:00
sehraf
a41e10b178
i2p: bob: remove unused variables 2020-06-10 20:04:59 +02:00
sehraf
c20d92f04c
i2p: bob: convert to RsDbg 2020-06-10 20:04:59 +02:00
sehraf
6136416b56
i2p: bob: convert bobSettings to i2p::settings 2020-06-10 20:04:59 +02:00
sehraf
4b6e12ca45
i2p: bob: use common i2p::keyToBase32Addr() 2020-06-10 20:04:59 +02:00
sehraf
462f52585b
add helper for i2p related functions 2020-06-10 20:04:54 +02:00
G10h4ck
b49dfaead0
Merge pull request #2011 from G10h4ck/createLocationV2
Improve API to create locations
2020-06-10 10:49:32 +02:00
G10h4ck
1d8510069e
Merge pull request #1934 from PhenomRetroShare/Fix_AutoLogin
Fix AutoLogin
2020-06-10 10:19:55 +02:00
Gioacchino Mazzurco
4a34cfaf11
Improve API to create locations
Improve on top of sehraf work, add documentation for API token params
Deprecate old version and disable it once RS 0.6.6 is released
New method take relevant paramethers explicitely instead of having them
  incapsualted inside a RsLoginHelper::Location struct
New method return a proper error_condition instead of boolean + string
RsLoginHelper::attemptLogin doesn't need manual wrapper anymore
2020-06-09 20:13:22 +02:00
Gioacchino Mazzurco
275bdba132
Unify common error category message into a function 2020-06-09 20:08:23 +02:00
Gioacchino Mazzurco
4f0e18cbfd
Fix Android armv7 compilation due to narrowing 2020-06-09 20:02:40 +02:00
G10h4ck
f456389580
Merge pull request #2006 from sehraf/pr_remove_rs_pw_as_token
remove retroshare password from json tokens
2020-06-09 16:19:11 +02:00
Gioacchino Mazzurco
f99a8a0fc6
Improve homogeneity of rsdebug
Offer variadic style macros also for RsInfo...RsFatal
2020-06-09 16:10:07 +02:00
G10h4ck
680d9cde85
Merge pull request #1906 from sehraf/pr_fix_unix_fcntl_nonblock
Fix unix_fcntl_nonblock() to not overwrite any existing flags.
2020-06-07 12:36:18 +02:00
sehraf
878111d224
remove password from json tokens 2020-06-06 22:28:54 +02:00
G10h4ck
6603accf8f
Merge pull request #1992 from G10h4ck/debug_strip
Multiple improvements in debugging helpers
2020-06-06 18:26:30 +02:00
csoler
a18009413d
Merge pull request #1979 from csoler/v0.6-GxsGroup
[WIP] implementing a cache for MsgMeta
2020-06-06 15:54:35 +02:00
csoler
44324fbc98
Merge pull request #1914 from jolavillette/pqihandlerOptim
Pqihandler optim
2020-06-06 15:48:44 +02:00
csoler
f75a6424b5
fixed long-term bug due to sending an empty list of destkeys for GXSSecurity to encrypt an item 2020-06-04 13:38:57 +02:00
jolavillette
752c997f24 Merge remote-tracking branch 'upstream/master' into pqihandlerOptim 2020-06-04 07:39:59 +02:00
drbob
bcaef29d49 Merge branch 'master' into TheWire-rework-ui 2020-06-02 22:33:33 +10:00
Gioacchino Mazzurco
aef87fb1f8
Multiple improvements in debugging helpers
Add variadic style macro helpers that make debugging code disappear completely
  (also the paramethers evaluation) when debugging level is lower
Chained style << is now atomic like variadic style, still can't benefit
  of paramethers eveluation stripping
Reduced to minimum the difference between Android and other platform
  debugging code
Port debugging code to new helpers, expecially a few corner cases to
  test it, and as examples of how to use it.
2020-06-01 00:53:58 +02:00
Gioacchino Mazzurco
295ecf368e
ExtraFileHash check for integer overflow
When passing large periods 2038 problems was silently triggered due to
  time being stored as int in FileInfo::age, thus causing erratic
  behaviour in extra files timeout. Now period is checked and if too
  large an error is reported.
Deprecate FileDetails which is confusing dummy wrapper of FileInfo
Remove ftExtraList::cleanupEntry deadcode
2020-05-31 15:19:00 +02:00
Gioacchino Mazzurco
0c1785b0d3
Merge branch 'atomic_variadic_log' 2020-05-30 22:11:04 +02:00
Phenom
d256595aa7 Fix Message Sent keeps Tags 2020-05-30 18:20:17 +02:00
hunbernd
cd751f12d4 Clang support 2020-05-30 02:16:59 +02:00
G10h4ck
97a60865b4
Merge pull request #1981 from G10h4ck/RsMemoryWrapper_JSON_fixup
Change raw memory JSON representation
2020-05-29 19:16:00 +02:00
Gioacchino Mazzurco
43f7b6c0ba
RsFiles::alreadyHaveFile look into extra list too 2020-05-29 11:03:57 +02:00
csoler
d1e95f94a8
added method to print cache size 2020-05-29 09:49:07 +02:00
Gioacchino Mazzurco
2ae21ca800
rsdebug supports variadic style for atomic log 2020-05-29 01:09:10 +02:00
csoler
1dbc0c1fcf
fixed long-term bug due to sending an empty list of destkeys for GXSSecurity to encrypt an item 2020-05-28 23:58:07 +02:00
Gioacchino Mazzurco
c1c303218c
Change raw memory JSON representation
Fix bug reported by b1rdG
The new way permits to add more formats in the future without breaking
  retro-compatibility again.
Add support for RsJson in rsdebug for Android
2020-05-28 23:01:04 +02:00
G10h4ck
968f234bfd
Merge pull request #1959 from G10h4ck/rsbase64_fixup
RsBase64 handle correcly 0 lenght buffer encoding and padding
2020-05-28 18:45:04 +02:00
Gioacchino Mazzurco
d76f397358
RsBase64 calculate size properly and avoid FP math 2020-05-28 17:57:42 +02:00
csoler
31e6e02a91
removed MsgMeta delete that was left 2020-05-28 17:07:33 +02:00
csoler
1a362f1cc0
moved a debug output to the right place 2020-05-28 16:06:31 +02:00
csoler
a17f5a21f8
re-enabled resultCOunt 2020-05-28 15:55:49 +02:00
csoler
eb6af15b1a
enabled MsgMetaData cache in rsgxsdataaccess.cc and witched metas to const, and removed deletion of retrieved metas since now the cache handles it 2020-05-28 15:11:14 +02:00
csoler
ebf32bf955
moved parts of the GrpMeta cache into a template to also handle MsgMeta 2020-05-27 22:27:30 +02:00
Gioacchino Mazzurco
3332c32a84
RsBase64 handle correcly 0 lenght buffer encoding 2020-05-26 19:56:17 +02:00
drbob
589bb65324 Update display of WireGroup 2020-05-26 18:31:55 +10:00
csoler
b294a34d11
Revert "Revert "bandwidth control improvement"" 2020-05-25 20:28:50 +02:00
csoler
301def6018
Revert "bandwidth control improvement" 2020-05-24 23:40:26 +02:00
defnax
d1d4b47877
Merge pull request #1974 from hunbernd/feature/msys2enhancements
[WIP] Improved msys2 build scripts
2020-05-24 22:36:21 +02:00
csoler
42a10d59b2
Merge pull request #1942 from jolavillette/UpdateRates
bandwidth control improvement
2020-05-24 21:57:31 +02:00
jolavillette
735a123a02 restore 1.1 factor in ft/fttransfermodule 2020-05-24 00:32:24 +02:00
jolavillette
ea827b180a restore 1.1 factor in ft/fttransfermodule 2020-05-23 22:20:49 +02:00
hunbernd
a11dc09790 Build webui 2020-05-23 22:05:44 +02:00
Phenom
e5e468b083 Fix AutoLogin 2020-05-23 12:54:17 +02:00
csoler
eeca7c6d3a
Merge pull request #1963 from csoler/v0.6-GxsGroup
fixed compilaiton of photoshare due to changes in GxsChange class
2020-05-22 18:21:33 +02:00
Gioacchino Mazzurco
77f818f0b3
Fix JSON API compilation error introduces in f6260a95ae 2020-05-22 17:52:05 +02:00
jolavillette
998e1a5de3 Merge remote-tracking branch 'upstream/master' into pqihandlerOptim 2020-05-22 08:12:16 +02:00
csoler
82690561b6
fixed compilaiton of photoshare due to changes in GxsChange class 2020-05-21 22:45:49 +02:00
csoler
2a5adddc3b
Merge pull request #1881 from PhenomRetroShare/Add_VotesOn_getPostData
Add Votes when calling getPostData.
2020-05-21 22:38:06 +02:00
drbob
f4457b1331 Fixup how REF message are displayed
Ensure RefImageCount is correct.
Update docs on m(Ref)GroupPtr points to
fill-in GroupPtrs on Ref Msgs.
Remove mRefAuthorName as not so useful.
Add images into Response Msgs.
Display Headshot / Images on Ref Msgs - if possible.
2020-05-19 19:40:12 +10:00
sehraf
f186422833
fix RawMemoryWrapper serialisation to json, reported by b1rdG 2020-05-17 23:43:03 +02:00
csoler
d52d9c909b
Merge pull request #1875 from csoler/v0.6-GxsGroup
Add group change notifications (e.g. circle invites, forum moderation, etc)
2020-05-17 22:37:03 +02:00
csoler
c90b72152f
Merge pull request #1945 from b1rdG/fix-createChatLobby-checks
Create chat lobby checks
2020-05-17 22:00:30 +02:00
b1rdG
dafd975b51 Verify before lock the mutex 2020-05-17 14:06:07 -05:00
b1rdG
089ea76a6e Add lobby_identity check 2020-05-17 09:18:12 -05:00
drbob
8df5a886db Move createOriginalPulse / createReplyPulse to libretroshare
message creation logic moved to libretroshare
GUI classes cleaned up.
2020-05-16 22:35:32 +10:00
csoler
dc03f8ff49
imprved readability of the logic in rstlvidset serialization 2020-05-16 13:13:48 +02:00
csoler
6008599f02
fixed wrong call to std::set::erase(iterator,iterator) where the iterator comes from another set, causing inconsistencies 2020-05-16 13:12:37 +02:00
drbob
ccf849159a update libretroshare interface for TheWire
expanded groups and msgs with additional data and images.
new interfaces for improved ui display of message
start moving fetch logic to libretroshare with blocking APIs.
2020-05-15 12:58:27 +10:00
jolavillette
51ba879bb7 bandwidth control improvement 2020-05-14 23:28:20 +02:00
jolavillette
1f547aaefe bandwidth control improvement 2020-05-14 23:13:36 +02:00
Phenom
f6260a95ae Add Votes when calling getPostData. 2020-05-13 00:36:14 +02:00
csoler
e6edae27be
Merge pull request #1922 from PhenomRetroShare/Fix_SomeWarnings
Fix some warnings
2020-05-12 23:05:34 +02:00
csoler
cb1fe154f3
removed debug info 2020-05-10 18:40:31 +02:00
csoler
766da8117a
added missing update of membership status flags when an id is removed from the invitee list 2020-05-10 18:37:03 +02:00
csoler
3ae173f104
removed debug info in circles 2020-05-10 13:47:53 +02:00
csoler
6f6e0de5f1
merged with upstreamm/master 2020-05-09 22:33:27 +02:00
csoler
e09bf7c261
added a check to prevent SEGV when sending a notification about a group we updated 2020-05-09 21:30:51 +02:00
csoler
df2899bae9
added warning about keys tht are out of range when checking a msg signature 2020-05-09 21:30:07 +02:00
jolavillette
7c2efbc630 reduce cpu load by increasing sleep before ticking pqi and core 2020-05-09 20:35:20 +02:00
csoler
0c3b8641af
fixing some bugs in circles backend 2020-05-09 18:07:56 +02:00
Phenom
b40ca53f13 Fix warning: ‘n’ may be used uninitialized in this function
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc: In member
function ‘virtual void
RsMsgTags::serial_process(RsGenericSerializer::SerializeJob,
RsGenericSerializer::SerializeContext&)’:
../../../trunk/libretroshare/src/rsitems/rsmsgitems.cc:93:22: warning:
‘n’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   93 |             uint32_t n ;
      |                      ^
2020-05-09 14:32:48 +02:00
defnax
38af9244a6 added spam box 2020-05-08 23:21:38 +02:00
csoler
bc69e8c1ac
forgot to update file in previous commit 2020-05-08 16:06:23 +02:00
csoler
8e52f07621
changed NO_DATA enum to NO_DATA_YET. Seems that this is an existing define on windows 2020-05-08 14:49:25 +02:00
csoler
59df44535a
put enum outside class in RsGxsCircleCache 2020-05-08 11:24:49 +02:00
csoler
5f5c2be64b
fixed a few bugs in the new circle cache system 2020-05-07 20:35:02 +02:00
csoler
11a4b6540f
cleaned-up circles cache. Needs testing. 2020-05-07 17:31:58 +02:00
jolavillette
4ead639e8c remove unneeded pqithreadstreamer and pqissl mutex locks 2020-05-06 21:29:46 +02:00
jolavillette
2c1238db2c remove unneeded lock of p3ServiceServer mutex 2020-05-06 12:11:54 +02:00
jolavillette
7634d121de Merge remote-tracking branch 'upstream/master' into mutexDivorce
Update mutexDivorce
2020-05-06 11:33:43 +02:00
jolavillette
7113d1935f finish removing pqistreamer locks, clean rates methods 2020-05-04 22:42:18 +02:00
csoler
65fa29e789
fixed notifications on circle not working due to cache reload failure. That circle cache code needs a real cleanup 2020-05-04 20:54:08 +02:00
sehraf
757e922c4f
Fix unix_fcntl_nonblock() to not overwrite any existing flags. 2020-05-04 15:13:39 +02:00
jolavillette
28458bf10a tick_send: remove unneeded lock around mBio->cansend 2020-05-04 08:11:57 +02:00
csoler
ce6abe5d66
made GxsNotify for messages with more granularity. Removed RsGxsCircleMsg class that was not used. 2020-05-03 23:20:13 +02:00
sehraf
638648cf64
fix json api markup 2020-05-03 20:57:48 +02:00
jolavillette
d847086911 finish emoving unneeded pqistreamer locks in recv part 2020-05-03 20:32:17 +02:00
sehraf
53b76732a9
pqisslistener: document accept() process 2020-05-03 14:58:19 +02:00
csoler
48960d548d
Merge pull request #1880 from jolavillette/threadTick
clean rewrite of RsServer::threadTick
2020-05-03 13:28:43 +02:00
jolavillette
7db8cbca97 remove debug flag 2020-05-02 21:21:42 +02:00
csoler
efb26ce9c0
added warnign when notified CircleMsg cannot be retrieved from DB 2020-05-02 15:48:38 +02:00
csoler
32baccae97
finished cleaning GxsCircle Notifications 2020-05-02 15:09:32 +02:00
jolavillette
d35dd76ca5 try to isolate pqistreamer mutex from pqissl mutex, step 1: pqistreamer::tick_recv() 2020-05-02 09:47:24 +02:00
csoler
26dd716967
added documentation on circle membership at UI and circles API level. Internals need to be implemented accordingly 2020-05-01 22:59:39 +02:00
csoler
d32daaa111
made group notifications separate so that they can be treated more easily and added group item to new_group notifications, to allow more GUI notifications 2020-05-01 00:00:13 +02:00
Phenom
e8b8119174 Fix Channel Post Comments Number 2020-04-29 00:52:19 +02:00
csoler
767440afc5
added circle invite notifications 2020-04-28 21:39:38 +02:00
sehraf
04dc163d30
pqissl: document statemachine and function hierarchy 2020-04-28 19:17:35 +02:00
Olivier Marty
b0613ef653 Correct design flaw in slow process control, improve indentation, set up debug #ifdef 2020-04-28 09:48:12 +02:00
csoler
59b7f042e1
Merge pull request #1879 from G10h4ck/item_uninitialized_ptr
RawMemoryWrapper::serial_process report error
2020-04-27 23:24:09 +02:00
csoler
f5af7dfeb3
fixed up top bar tooltips to display what the numbers actually mean 2020-04-27 21:56:43 +02:00
csoler
0f1a3879d0
quick fix for debug flag that was left in the code 2020-04-27 20:28:34 +02:00
Gioacchino Mazzurco
6fc89c2d37
RawMemoryWrapper DESERIALIZE warn if got non null ptr 2020-04-27 20:22:50 +02:00
csoler
28a6b43357
added missing file 2020-04-27 17:11:06 +02:00
Olivier Marty
9a9eb56a3a clean rewrite of RsServer::threadTick 2020-04-27 16:08:20 +02:00
csoler
f7199f1f1c
moved GxsNotify classes to rsgxsnotify.h internal to gxs (not visible in API) since it is unused in GUI. Added event item in forum to handle moderator list changes 2020-04-26 23:35:37 +02:00
csoler
4b568f3068
fixed the same error in turtle generic search result 2020-04-26 15:34:28 +02:00
csoler
76e9387467
fixed deserialiser for rawWrapper causing crashes when wrapper memory is not initialized properly by the client 2020-04-26 14:19:44 +02:00
csoler
86897b60de
fixed uninitialized memory causing a crash in turtle items 2020-04-26 14:19:02 +02:00
csoler
ae54e53bc1
updated RsGenExchange::performUpdateValidation to simplify the logic and save (oldGrp,newGrp) in a specific RsGxsGroupUpdate subclass of GxsNotify so as to be able to handle group data notifications in services 2020-04-26 00:18:01 +02:00
csoler
9b0abe16dd
small fix to indent in authssl.cc 2020-04-25 18:07:04 +02:00
csoler
b2e36fbd9c
fixed version incompatibility in merge PR 1869 2020-04-24 23:06:29 +02:00
csoler
ad4939e64c
Merge pull request #1872 from b1rdG/patch-2
Improve documentation
2020-04-24 21:56:41 +02:00
csoler
e323bc8573
Merge pull request #1869 from PhenomRetroShare/Fix_OpenSSL1_CreatCertFail
Fix OpenSSL fail to create Cert.
2020-04-24 21:55:01 +02:00
b1rdG
36bab55d8c Use tabs instead of spaces 2020-04-23 15:15:03 -05:00
b1rdG
7290caa1a5
Improve documentation 2020-04-23 20:07:18 +00:00
b1rdG
b55d37efa4 Add RsGxsId checks 2020-04-23 14:56:53 -05:00
csoler
f9b731c92e
fixed free()/delete[] mismatch reported by valgrind 2020-04-22 20:32:16 +02:00
Phenom
866b564f90 Fix OpenSSL fail to create Cert. 2020-04-22 17:28:41 +02:00
csoler
5120f693be
Merge pull request #1859 from csoler/v0.6-ImprovedGUI_4
Making channels faster to load
2020-04-21 19:30:49 +02:00
Gioacchino Mazzurco
2f0b0f48bf
Better atomicity (not perfect) for RsDdg() and companions 2020-04-21 18:10:58 +02:00
csoler
1cfbfdaf63
Merge pull request #1866 from PhenomRetroShare/Fix_SIGSEGV_OnRsThreadStart
Fix SIGSEGV on RsThread::start
2020-04-21 13:11:35 +02:00
G10h4ck
2b44492cb6
Merge pull request #1829 from G10h4ck/rsfiles_links
RsFiles links support in libretroshare + a bunch of fixes
2020-04-20 17:12:04 +02:00
Gioacchino Mazzurco
3f38d04680
Clarify pointer ownership decorators documentation
Use old char* in PGP functionas asked by Cyril
2020-04-20 15:52:29 +02:00
Gioacchino Mazzurco
e406a1fb8b
Fix JSON API compilation after rebasing on master 2020-04-20 15:52:20 +02:00
csoler
38e89d4055
fixed merge with upstream/master 2020-04-19 21:53:02 +02:00
csoler
5b761c72ba
removed debug info 2020-04-19 21:07:53 +02:00
csoler
096cdd6dd2
Merge pull request #1863 from sehraf/pr_handle_deprecated_packets
Fix log spam by handling deprecated packet gracefully
2020-04-19 18:57:11 +02:00
Phenom
c0ce5c7088 Fix SIGSEGV on RsThread::start
mTid could be null while pError is null too.

This happens to me always with "gxs integrity".
2020-04-19 11:24:57 +02:00
sehraf
f19d933ff1
Partially revert bea6769a4e.
Currently the log is flooded with messages about "unkown" packets which are actually just deprecated ones. Add back the code to gracefully handle them (= delete them).
2020-04-18 11:45:35 +02:00
b1rdG
d100e53470
Improve parameter description 2020-04-17 22:09:40 +00:00
b1rdG
d265e61b06
Expose JSON API closeDistantChatConnexion and initiateDistantChatConnexion 2020-04-17 21:56:58 +00:00
csoler
fa8968797c
added some tests to insertGroupData() to avoid inconsistent calls 2020-04-16 21:35:57 +02:00
csoler
915e197223
Merge pull request #1857 from csoler/v0.6-GxsDbFix
Quick fix to allow plugin loading
2020-04-15 11:09:05 +02:00
csoler
59508d4c7e
fixed plugin loading 2020-04-14 21:38:52 +02:00
Gioacchino Mazzurco
f54fb046e4
Use a a loop instead of std::trasform as suggested by Cyril 2020-04-14 12:26:21 +02:00
Gioacchino Mazzurco
7d388c3090
Solve non compatible 32/64bit file handle API 2020-04-14 12:26:21 +02:00
Gioacchino Mazzurco
2a369cb785
Fix noisy compiler warning 2020-04-14 12:26:21 +02:00
Gioacchino Mazzurco
a4950aca66
Safer checks in type serializer 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
0c3fd6f27c
Explicit type as requested by Cyril 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
b701ca8da3
Keep 10 extra unassigned slots for event types
Proper error reporting + cruft removal
2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
76d492b4aa
Add forgot authorship in rsbase64* 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
05f65e9211
Fix missing paramether direction in Doxygen doc 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
13e0179812
Readd struct disappeared in rebase + fix warning 2020-04-14 12:24:58 +02:00
Gioacchino Mazzurco
612d47908d
Fix JSON API breakage introduced in cf7a77e512 2020-04-14 12:24:57 +02:00
Gioacchino Mazzurco
8cb46e5937
Fix compilation on Android arm64 2020-04-14 12:24:57 +02:00
Gioacchino Mazzurco
7d1efa7ed9
Fix compiler warnings 2020-04-14 12:24:57 +02:00
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
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
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
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
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
Gioacchino Mazzurco
8303f42af0
GitlabCI fix some tests 2020-04-08 12:10:06 +02:00
csoler
c60f1d1331
fixed merge with upstream/master 2020-04-08 10:41:47 +02:00
csoler
e0462b8411
Merge pull request #1845 from csoler/v0.6-FT4
Removed TokenQueue from GxsTransportStatistics
2020-04-08 10:25:41 +02:00
csoler
ebee69df96
fixed up display of GroupStatisticsReq and moved priorities to RsTokReqOptions 2020-04-07 22:42:01 +02:00
csoler
7c77e82b1e
added output to GxsRequest for debug purposes 2020-04-07 16:56:28 +02:00
csoler
5c71a46c52
fixed up the update of message count using a flag to only update when necessary, which limits drastically the calls to getGroupsStatistics() 2020-04-06 21:55:07 +02:00
csoler
65af73f8eb
fixed up new version of GxsDataAccess 2020-04-06 18:34:57 +02:00
Gioacchino Mazzurco
50adf00804
Add millisecond details to debug messages timestamp 2020-04-05 23:02:53 +02:00
csoler
2d23a9f251
experimental implementation of TokenQueue priority. not fully functional yet 2020-04-05 22:59:58 +02:00
csoler
9a1d589134
added a temporary copy of mRequests in RsGxsDataAccess::processRequests() to avoid interactions with storeRequest() mofying the queue 2020-04-05 16:41:44 +02:00
csoler
25467dda9f
Merge pull request #1831 from drbob/thewire_fix_message_display
TheWire fixup up display of messages
2020-04-05 11:33:27 +02:00
drbob
1c20d75a03 Update photo/wire/wiki interfaces to support Blocking Group API.
Add blocking API Group Interfaces for photo,wire and wiki services.
Add service blocking API calls for createGroup/updateGroup/getGroupData.
Update GUI classes to match new GxsGroupDialog Interfaces.
2020-04-05 15:04:39 +10:00
csoler
28a21392ca
removed TokenQueue from UserNotify 2020-04-04 22:54:54 +02:00