Commit Graph

819 Commits (f9fb9e4f070c6f2cf471f89f5133c467fd1c78f3)

Author SHA1 Message Date
Zlatin Balevsky 7285c12b97 clear cached cardinality on cancelling 2020-03-16 23:18:07 +00:00
Zlatin Balevsky aac259c0fe cache the cardinality to speed up UI sorting 2020-03-16 22:45:16 +00:00
Zlatin Balevsky e3f58f8f5a catch general exceptions because otherwise they get lost in the executor thread 2020-03-15 01:21:20 +00:00
Zlatin Balevsky fca8870283 fix default feed update interval 2020-03-13 07:32:08 +00:00
Zlatin Balevsky 369779ab6a swallow an exception that happens in plugin mostly 2020-03-13 02:42:46 +00:00
Zlatin Balevsky 54abf82a91 wip on server side of feeds for plugin 2020-03-12 22:28:11 +00:00
Zlatin Balevsky 14546737fd release 0.6.11 2020-03-10 22:31:33 +00:00
Zlatin Balevsky f202fa34f3 auto-publish shared files functionality 2020-03-10 19:12:49 +00:00
Zlatin Balevsky 2bb07ff7b5 do not trim feed items if setting is negative 2020-03-10 17:53:17 +00:00
Zlatin Balevsky fc393619d8 options for feeds 2020-03-10 17:47:08 +00:00
Zlatin Balevsky a272a45928 persist the right number of feed items 2020-03-10 16:41:31 +00:00
Zlatin Balevsky c3d0dce281 store last update attempt and do not retry active feeds 2020-03-10 16:05:32 +00:00
Zlatin Balevsky 8f710e68c2 download feed item action 2020-03-10 15:06:42 +00:00
Zlatin Balevsky 15430d6c03 manual update and unsubscribe actions 2020-03-10 13:51:07 +00:00
Zlatin Balevsky 166b71f128 fix NPE when logging is enabled 2020-03-10 13:47:31 +00:00
Zlatin Balevsky d724986ec6 proper method name 2020-03-10 13:34:33 +00:00
Zlatin Balevsky 198c5b5538 fix json parsing 2020-03-10 13:06:47 +00:00
Zlatin Balevsky bb7385688c it always points to the innermost closure 2020-03-10 12:55:09 +00:00
Zlatin Balevsky e70bec3a51 hook up feed subscription 2020-03-10 12:44:25 +00:00
Zlatin Balevsky ed04c40420 return an empty set if no items are found 2020-03-10 12:43:49 +00:00
Zlatin Balevsky fd75d8229b fix feed checkbox for local results 2020-03-10 12:15:52 +00:00
Zlatin Balevsky a07f01b641 utility method to check if an infohash is shared 2020-03-10 11:50:09 +00:00
Zlatin Balevsky fcb5c573f9 wip on feeds table 2020-03-10 10:39:18 +00:00
Zlatin Balevsky e2a9db8056 add an IDLE status to feeds for display purposes 2020-03-10 07:32:45 +00:00
Zlatin Balevsky f2bf921d4c parse feed flag in results 2020-03-10 06:06:57 +00:00
Zlatin Balevsky aa0fcfb7de fix capitalization in event name 2020-03-10 05:50:54 +00:00
Zlatin Balevsky 17cd60afe3 deleting of feeds 2020-03-10 00:58:43 +00:00
Zlatin Balevsky c10c1118e8 feed client 2020-03-09 19:28:42 +00:00
Zlatin Balevsky 28425e93dc persist only as many items as configured to keep 2020-03-09 18:53:43 +00:00
Zlatin Balevsky 032338bb48 Persist feed metadata and items on successful fetch. Register feed manager for various events 2020-03-09 18:31:10 +00:00
Zlatin Balevsky 12e56b1c9a events associated with updating a feed 2020-03-09 17:37:17 +00:00
Zlatin Balevsky 57c75978b6 wip on feed manager deserialization 2020-03-08 20:19:37 +00:00
Zlatin Balevsky bfe198e1a6 represenation of a feed 2020-03-08 19:38:48 +00:00
Zlatin Balevsky 8e274f940e Feed item representation and serialization 2020-03-08 19:30:04 +00:00
Zlatin Balevsky 9f3942c1c7 settings to disable or not advertise file feed 2020-03-08 17:15:00 +00:00
Zlatin Balevsky d60d57ee43 wip on server side feed handling 2020-03-08 17:04:11 +00:00
Zlatin Balevsky 8e3a433afb persist shared file on publish/unpublish 2020-03-08 16:06:28 +00:00
Zlatin Balevsky 49cf56fabb UI Publish & Unpublish events 2020-03-08 16:01:50 +00:00
Zlatin Balevsky 2b6565d107 unpublish method 2020-03-08 16:01:23 +00:00
Zlatin Balevsky 366a2ef841 published flag and timestamp in shared files 2020-03-08 15:46:36 +00:00
Zlatin Balevsky c7d1f0c23c Connect to i2p router after creating the Core object, should help with plugin init issues #39 2020-02-23 18:29:09 +00:00
Zlatin Balevsky 853b9f67fc Release 0.6.10 2020-02-23 15:42:03 +00:00
Zlatin Balevsky a505a2449a persist SharedFile on change of comments #35 2020-02-18 02:14:32 +00:00
Zlatin Balevsky c11d81c6c3 Release 0.6.9 2020-02-16 16:33:33 +00:00
Zlatin Balevsky bdad8d9309 make extended signatures mandatory 2020-02-14 15:34:21 +00:00
Zlatin Balevsky 16ed5dd346 chase down some usages of deprecated getInfoHash method #35 2020-02-14 01:32:38 +00:00
Zlatin Balevsky 7b55fc9ed8 working uploads #35 2020-02-14 01:15:10 +00:00
Zlatin Balevsky d5c8050572 wip on separate hashlist storage #35 2020-02-14 00:37:07 +00:00
LoveIsGrief a891c83518
Only persist downloaded files if sharing thereof is enabled
Otherwise we might inadvertently share downloads
2020-01-25 15:25:48 +01:00
LoveIsGrief aa56cc23c0
Cache base 64 path hash
Can't do it in constructor without an ugly try/catch
 therefore this is done on demand
2020-01-25 15:20:38 +01:00
LoveIsGrief a2b37ef567
Persist downloaded files 2020-01-25 15:06:12 +01:00
LoveIsGrief 4bc04ae631
Revert "Reduce log levels in Connection"
This reverts commit dcd233b7
2020-01-25 15:01:21 +01:00
LoveIsGrief 56da9a16b0
Set FileLoadedEvent::source in the subclass
Setting it in the super class means we don't set the right value for every case
2020-01-25 15:00:48 +01:00
LoveIsGrief 2935ee1a1d
Remove unnecessary executor
It was doing nothing but starting and stopping
2020-01-25 14:49:59 +01:00
LoveIsGrief 855183397b
Remove TODO
There's already an issue open https://github.com/zlatinb/muwire/issues/35
2020-01-22 21:35:54 +01:00
LoveIsGrief e27704c1af
Make sure migration from PersisterService works
this.getClass() and this.class kept resolving to Class.
Using a string is much simpler

mkdirs() is also necessary because the directory structure doesn't exist
 when persistFile is called the first time
2020-01-22 20:59:05 +01:00
LoveIsGrief 5c18b4a141
Add more logs PersisterFolderService 2020-01-22 15:12:22 +01:00
LoveIsGrief dcd233b7ad
Reduce log levels in Connection
Too verbose
2020-01-22 15:12:01 +01:00
LoveIsGrief 7cee8a28ba
FileLoadedEvent should include class when coming from old persister
Otherwise the new PersisterFolderService won't migrate
2020-01-22 15:07:00 +01:00
LoveIsGrief 7446fc949a
Remove UIPersistFilesEvent
Hashing is done per file now and those are triggered by individual events
2020-01-22 13:00:55 +01:00
LoveIsGrief 598ab90f63
Clear up the event path when starting up the old and new persisters
The new persister won't load anything until the old one has finished
2020-01-22 12:36:34 +01:00
LoveIsGrief 043028c296
Introduce PersisterFolderService to replace PersisterService
An attempt at automatically migrate from PersisterService was made, but the events aren't triggered in the right order.
We need to make sure that we don't trigger the "AllFilesLoadedEvent" before the migration is done
2020-01-21 23:34:33 +01:00
LoveIsGrief 9d4b365e63
Log the time it take to persist files and hashes 2020-01-19 21:43:03 +01:00
LoveIsGrief 03e20e21aa
Remove unnecessary quotes from properties files
There doesn't seem to be a special treatment of them
 in properties files

#32 - Docker image
2020-01-14 18:42:51 +01:00
LoveIsGrief 8a08955675
Remove quotes from i2cp.tcp.port setting
For some reason it really doesn't like that and
 subsequently can't connect to the host

#32 - Docker image
2020-01-14 17:52:52 +01:00
LoveIsGrief 65e073b1b9
Use defaults for the i2p.properties
This will help writing custom properties
 as not everthing will have to be specified in them

#32 - Docker image
2020-01-14 12:29:05 +01:00
Zlatin Balevsky 8f9b1e5a8b supress exceptions if client is stopped 2019-12-24 17:05:36 +00:00
Zlatin Balevsky e6d59a2438 stop host persister on shutdown 2019-12-24 05:53:02 +00:00
Zlatin Balevsky ba5425c958 extra check for stopped cache client 2019-12-21 15:56:09 +00:00
Zlatin Balevsky 9df1d043e4 do not initialize the update client if running as a plugin 2019-12-19 18:35:44 +00:00
Zlatin Balevsky 6ea1a15641 do not initialize the update client if running as a plugin 2019-12-19 18:30:07 +00:00
Zlatin Balevsky e21d482393 Release 0.6.8 2019-12-19 06:04:18 +00:00
Zlatin Balevsky b08333c5ea download details view 2019-12-15 11:34:04 +00:00
Zlatin Balevsky fce879be5d hook up configuration page, under construction 2019-12-14 19:02:15 +00:00
Zlatin Balevsky c169a7613f wip on importing certificates 2019-12-10 14:59:30 +00:00
Zlatin Balevsky 813e211200 send certified status to the UI 2019-12-09 17:22:30 +00:00
Zlatin Balevsky 1adb130fba ability to certify directories 2019-12-09 17:04:11 +00:00
Zlatin Balevsky 42c48a8e37 certificate backend 2019-12-09 14:26:39 +00:00
Zlatin Balevsky 662b065116 wip on trust subscriptions 2019-12-09 07:37:04 +00:00
Zlatin Balevsky 086e27876d shut down more services explicitly 2019-12-09 05:38:41 +00:00
Zlatin Balevsky 5c6917a7e6 wip on trust views 2019-12-08 14:57:21 +00:00
Zlatin Balevsky 844bd8fd6e comments in shared files are encoded 2019-12-08 00:26:17 +00:00
Zlatin Balevsky 7d9ebb5b0b server side of browse host 2019-12-07 23:35:16 +00:00
Zlatin Balevsky 13af6cce22 stray println 2019-12-07 20:37:24 +00:00
Zlatin Balevsky 5c17536683 unsharing of directories 2019-12-07 12:14:49 +00:00
Zlatin Balevsky a6e0834722 add a single-level list traversal of the tree 2019-12-06 12:47:08 +00:00
Zlatin Balevsky 9b2669a8b8 update to new api 2019-12-06 10:51:35 +00:00
Zlatin Balevsky a0f70f7677 add traversal of the file tree 2019-12-06 10:51:07 +00:00
Zlatin Balevsky 23b2c912e2 genericize file tree 2019-12-06 10:08:27 +00:00
Zlatin Balevsky ecfd4180c0 update test 2019-12-06 10:07:32 +00:00
Zlatin Balevsky 95dd5c4a7c downloads display, starting and stopping 2019-11-30 23:34:59 +00:00
Zlatin Balevsky 2b8bd8144f basic display of how many senders and results have arrived 2019-11-30 19:09:55 +00:00
Zlatin Balevsky ff0a4661fd offload start to a thread, display wait page while the tunnel is opening 2019-11-30 14:56:04 +00:00
Zlatin Balevsky 9151df6816 kill i2p session on shutdown 2019-11-30 14:27:40 +00:00
Zlatin Balevsky 61baa53076 _logManager cannot be set on RouterContexts (i.e. when running as plugin) 2019-11-30 13:26:20 +00:00
Zlatin Balevsky 562d9a0f4a move i2p core dependency one level down, exclude core dependencies from plugin 2019-11-30 03:44:57 +00:00
Zlatin Balevsky cf396b739e ability to chat from browse window 2019-11-29 03:41:59 +00:00
Zlatin Balevsky 4c038ad932 set the geoip.dir property to load geoip 2019-11-27 16:00:56 +00:00
Zlatin Balevsky 8fedc0c605 Release 0.6.7 2019-11-26 09:55:10 +00:00
Zlatin Balevsky f4cd1c30cd Do not remove connection on distrust so that disconnect can be processed correctly 2019-11-26 05:00:55 +00:00