Commit graph

165 commits

Author SHA1 Message Date
shortcutme 96ceb253e8
GetTotal size also return optional sum of optional file sizes 2017-10-04 13:19:19 +02:00
shortcutme ca473d6c3b
Allow plugins on ContentManager 2017-10-04 12:51:37 +02:00
shortcutme 36b74e1c6a
ContentManager logging improvements 2017-10-04 12:51:24 +02:00
shortcutme b584c586ec
Fix longer signers_sign signing 2017-09-02 14:26:39 +02:00
shortcutme b88ee9a87a
Only allow to sign content.json files 2017-07-19 16:45:28 +02:00
shortcutme c069d4f67c
Use SafeRe to match user defined patterns in content.json 2017-07-14 10:34:18 +02:00
shortcutme 13157eea1e
Move included content verification to separate function, fix root content.json file path verification 2017-07-13 19:32:54 +02:00
shortcutme dd11f87673
Rev2148, Fix signing typo 2017-07-13 15:03:04 +02:00
shortcutme 096675c87e
Add unit to verification error 2017-07-13 15:00:04 +02:00
shortcutme 7d3beeb9e0
Enforce valid relative paths on verification 2017-07-13 14:59:17 +02:00
shortcutme 96a097e33d
Separate isValidRelativePath function 2017-07-13 14:58:52 +02:00
shortcutme 1bb3140f5b
Move file hashing to separate funcion to allow easier extension 2017-07-13 14:58:16 +02:00
shortcutme b0ee0dae93
Remove old testing code 2017-06-19 15:48:50 +02:00
shortcutme 0224863b1f
Only use positive sizes to calculate size sum of content.json 2017-06-19 15:48:33 +02:00
shortcutme 94c7ce9f42
Sign raise error instead of return False 2017-06-19 15:47:47 +02:00
shortcutme 2a3b8a7692
Verify raise exception instead of return False 2017-06-19 15:47:03 +02:00
ZeroNet 85b2a81568 Merge pull request #869 from MRoci/master
Root content.json "signers"  field as a list
2017-06-15 15:24:00 +02:00
MRoci 9ac5746e3c Changed this assignment to have the "signers" field in root's
content.json as a list and not a dictionary to mantain uniformity with
"includes" "signers" field and for not having a dict with empty values
2017-06-13 18:20:39 +02:00
shortcutme eefe7e1b5a
Don't add obsolete old signature format 2017-06-13 14:20:58 +02:00
Ivanq 67395b5e47 Allow fileRules for root content.json 2017-06-13 11:36:38 +03:00
shortcutme f33f1faeea
Only keep last 10 files opened 2017-04-13 16:27:30 +02:00
shortcutme 4c7ff9bb53
Fix unhandled expcetion on invalid cert 2017-04-12 00:31:37 +02:00
shortcutme c6792b7674
Ignore content if file not found on signing 2017-04-07 18:16:58 +02:00
shortcutme 2473a09f7b
Load content.json content before signing 2017-03-12 13:13:30 +01:00
shortcutme ec513f0b60
Remove archived files from bad files 2017-03-12 13:13:08 +01:00
mishfit 656c818211 rename SiteStorage.list to SiteStorage.walk
also, add SiteStorage.list as non-recursive
directory listing (`os.listdir`)
2017-02-24 21:58:46 -07:00
shortcutme 23dc8e063c
Rev1909, Rebuild content.db on error 2017-02-15 13:35:24 +01:00
shortcutme 8b2920c296
Add relative path to file info 2017-01-27 14:00:28 +01:00
shortcutme 697e177e13
Don't remove missing optional files 2017-01-27 12:02:14 +01:00
shortcutme 60fc5fb4d3
Allow transaction errors 2017-01-11 13:14:02 +01:00
shortcutme 41ac8dc781 Add integer modification dates 2017-01-07 01:07:52 +01:00
shortcutme 3afca90c0e Fix content.json modified float decimals on Android 2017-01-07 01:07:52 +01:00
shortcutme 4514154364 Fix diff error 2017-01-05 02:25:49 +01:00
shortcutme 5e6b41945b Fix sidebar for empty sites 2016-12-04 18:54:22 +01:00
shortcutme c2984ecd47 Update site size after archiving 2016-11-08 15:02:44 +01:00
shortcutme de5eb43da1 Warnings instead of errors 2016-11-07 23:48:34 +01:00
shortcutme cb5b3884cd Change verification errors to warning 2016-11-07 23:44:58 +01:00
shortcutme 9178a3ad6a Handle missing content 2016-11-07 23:44:38 +01:00
shortcutme cc504e93f6 Change contentdb calls to site object 2016-11-07 23:43:42 +01:00
shortcutme 4890c4cb2f Fix big site download 2016-11-07 23:43:08 +01:00
shortcutme 83b3dc8fbe Autodownload optional pattern check to separate function to allow plugins 2016-11-07 23:39:04 +01:00
shortcutme d1ad7e0850 Stats for total optional files and downloaded optional files in a site 2016-11-07 23:36:04 +01:00
shortcutme 7ffd897653 Change contentdb after it modified in db 2016-11-07 23:17:41 +01:00
shortcutme e7c9c2d192 Call ContentDb functions with site object 2016-11-07 23:16:22 +01:00
shortcutme d595373f9f Use insertOrUpdate instead of replace on setcontent 2016-11-07 23:08:13 +01:00
shortcutme 12bf5bb152 Sote site in contentdb after files loaded 2016-11-07 23:02:37 +01:00
shortcutme c35ffccf6c Change to schema based ContentDb to easier extension 2016-11-07 23:01:40 +01:00
shortcutme 0706748d10 Accept plugins to ContentDB 2016-11-07 23:00:59 +01:00
shortcutme b003c8df01 Rev1535, Fix err not defined on content load 2016-10-04 11:36:33 +02:00
shortcutme 2ab04deded Move optional files hashfield adding to workermanager for better performance 2016-10-02 14:18:35 +02:00
shortcutme ca2a30f7ae Ignore not existent files on dbdict items 2016-09-14 10:53:24 +02:00
shortcutme 9fd19bf382 Fix content deletion 2016-09-14 10:52:41 +02:00
shortcutme e3de6da87e Ignore deleted files on contetndb iteritems 2016-09-09 12:24:00 +02:00
shortcutme 25cb7d9ffa Only check optional files if content.json downloaded 2016-09-05 13:53:10 +02:00
shortcutme bc875b396b Multiple content.db support 2016-09-05 13:52:52 +02:00
shortcutme 4dbaab7dd4 List site content.json files without user files 2016-09-04 18:07:09 +02:00
shortcutme 7eab490089 Get optional files size from content.db 2016-09-04 18:06:18 +02:00
shortcutme d6cc40cf3b List modified files using content.db 2016-09-04 17:50:29 +02:00
shortcutme 682fa80a8a Fix site size calculation 2016-09-04 17:44:45 +02:00
shortcutme 1801df32a6 Change getTotalSize to use content.db cache 2016-09-04 17:44:30 +02:00
shortcutme 23e06a09cb Remove deleted files from hashfield 2016-09-04 17:43:57 +02:00
shortcutme 1bd6e2f493 Cache bad_files and optional hashfield in sites.json 2016-09-04 17:43:30 +02:00
shortcutme ecb5885dba Cache file sizes and modification date in sqlite db 2016-09-04 17:41:04 +02:00
shortcutme 2c4f566687 Fix missing cert verification 2016-08-22 03:40:55 +02:00
shortcutme 3c5e4e64ca Fix site size calculation 2016-08-15 13:56:04 +02:00
ZeroNet 48d59e355c Allow content.json without modification date 2016-08-10 12:59:19 +02:00
ZeroNet 7bd76270ba Remove bad status from deleted files 2016-08-10 12:58:54 +02:00
ZeroNet bed66cdcd2 ContentManager.py formatting 2016-08-10 12:58:19 +02:00
ZeroNet f719b89a7a Always apply extended information to content.json if keys missing 2016-08-10 12:57:55 +02:00
ZeroNet 7291ac8c6b No exception on incomplete content.json signing 2016-08-10 12:57:24 +02:00
ZeroNet ec759442ed Support and delete archived users files 2016-08-10 12:55:39 +02:00
HelloZeroNet 59c5ad560b Fix size calculation 2016-04-20 23:41:01 +02:00
HelloZeroNet 3812aa6502 Support verify content.json directly from parsed dict 2016-04-20 23:40:26 +02:00
HelloZeroNet 064341e1a8 Always skin -old and -new postfixed files from signing 2016-04-06 13:54:48 +02:00
HelloZeroNet d527268cbe Calculate diffs from -old and -new postfixed files 2016-04-06 13:54:32 +02:00
HelloZeroNet 695d257be5 Save memory by removing cert_sign and signs from loaded json files 2016-04-06 13:42:15 +02:00
HelloZeroNet 5a34448ba1 Less verbose logging 2016-04-06 13:39:17 +02:00
HelloZeroNet aa1ee33e92 Allow @ and = in filenames 2016-03-30 23:00:07 +02:00
HelloZeroNet 6d222b6ed7 Cleanup empty dirs 2016-03-26 00:22:27 +01:00
Erkan Yilmaz b5d74eec16 typo: definied -> defined 2016-03-21 09:43:53 +01:00
HelloZeroNet af2e2c5011 Faster verify by, skip recaluclate the whole site size 2016-03-18 19:41:25 +01:00
HelloZeroNet cd2aa033b4 Allow the site owner to modify banned users file 2016-03-17 01:56:25 +01:00
HelloZeroNet e891a10e54 Rev957, Sidebar displays onion peers in graph, Sidebar display bad file retry number, Sidebar site Update/Pause/Delete, Ratelimit sidebar update, Encoded typo, Fix onion findHashId, More retry for bad files, Log file path errors, Testcase for self findhashIds, Testcase for Tor findHashId, Better Tor version parse, UiWebsocket callback on update/pause/resume/delete, Skip invalid postMessage messages 2016-03-09 00:48:57 +01:00
HelloZeroNet 1d6f56c676 Rev938, Disable publish on incoming older content update to avoid network spam 2016-03-05 09:57:30 +01:00
HelloZeroNet 1dbc33445f Rev903, FeedQuery command only available for ADMIN sites, Show bad files in sidebar, Log unknown messages, Add and check inner_path and site address on sign/verify, Better peer cleanup limit, Log site load times, Testcase for address and inner_path verification, Re-sign testsite with new fields, Fix unnecessary loading screen display when browsing sub-folder with index.html, Fix safari notification width 2016-02-18 11:22:21 +01:00
HelloZeroNet ee70e2f022 Version 0.3.4, Rev656, CryptMessage plugin for AES and ECIES encryption, Added pyelliptic lib for OpenSSSL based encryption methods, Test CryptMessage plugin, Force reload content.json before signing and after write, Escaped Sql IN queries support, Test Sql parameter escaping, ui_websocket Test fixture, Plugin testing support, Always return websocket errors as dict, Wait for file on weboscket fileGet command if its already in bad_files queue, PushState and ReplaceState url manipulation support in wrapper API, Per auth-address localstorage, Longer timeout for udp tracker query 2015-12-10 21:36:20 +01:00
HelloZeroNet 3d558a4edf Rev597, Dont load content.json if the modified date is same, Big content.json memory optimalzations, Peerhashfield memory optimalzations and typo fix, Give up on file after 10 retry, Fix non-ascii install paths, Stop worker after 10 connection error 2015-11-15 11:13:57 +01:00
HelloZeroNet 3587777ea8 Rev571, Optional file sizes to sidebar, Download all optional files option in sidebar, Optional file number in peer stats, Delete removed or changed optional files, Auto download optional files if autodownloadoptional checked, SiteReload command, Peer use global file server if no site defined, Allow browser cache video files, Allow more keepalive connections, Gevent 1.1 ranged request bugfix, Dont sent optional files details on websocket, Remove files from workermanager tasks if no longer in bad_files, Notify local client about changes on external siteSign 2015-11-09 00:44:03 +01:00
HelloZeroNet 3764f98673 Rev542, Add files to hashfield on sign, Send my hashfield to connected peers on publish, Wait more time to checkModifications arrive, Test added files hashfield on sign 2015-11-02 22:39:19 +01:00
HelloZeroNet b961a3fb0a Rev480, Skip non-ascii files at signing, Fix gevent 1.1alpha compatibility 2015-10-24 13:57:46 +02:00
HelloZeroNet 9400e9f58f Rev470, Keep track downloaded optional files in hashfield, Peer getHashfield command, Check optional files on verifyFiles, Test hashfield, Test hashfield exchange 2015-10-11 02:22:53 +02:00
HelloZeroNet 9d7d4f1552 Rev467, requirements.txt accept newer dependecies, Boost dbschema.json, Move getDirname getFilename to helper, Verify optional files, Includes not allowed in user files, Optional files rules, Peer hashfield functions, Test optional files signing, Test file info, Test verify file, Test helpers 2015-10-01 01:35:13 +02:00
HelloZeroNet a7d8d488da Rev465, Display memory dump only in debug mode, Use sys.exit in trayicon, Optional files hashing, List function in SiteStorage, Test signing content, Test sign optional files, Test site storage 2015-09-28 22:07:26 +02:00
HelloZeroNet 4b403da056 Rev448, Better file download priority method, Some potential programming error fix, Renamed utils to helper, Moved pack and unpackaddress to helper package, Test new privatekey creation, Test site file download order, Spy test helper to log called parameters, Remove unnecessary fat arrows 2015-09-27 02:08:53 +02:00
HelloZeroNet 93312ae129 Rev420, Ignore file delete errors, Schedule download user files later if first content.json failed at first try, Reload content.json content after cloning, Allow modals on owned sites to display coffeescript compile errors, Disable opener checking because its easy to dodge 2015-09-17 02:20:43 +02:00
HelloZeroNet 917393c022 Rev409, Delete files removed from content.json, Start download user files right after content.json downloaded, New API command: fileDelete, Better notification input auto focus 2015-09-16 00:01:23 +02:00
HelloZeroNet 5c72030373 Rev396, Cleanup gevent event after connecting finished, Autofocus on notification input/button, Missing file size info error fix 2015-09-13 12:52:11 +02:00
HelloZeroNet b5ecb62bc6 rev280, The whole project reformatted to PEP8, UiRequest getPosted to query posted variables 2015-07-12 20:36:46 +02:00
HelloZeroNet dc791a31ab rev259, Protection against connection flood, Fix site size limit error dialog, Convert ConnectionServer and ContentManager to PEP8 format 2015-06-25 20:09:41 +02:00
HelloZeroNet f63b711972 rev247, Fix content validation error caused by ContentManager refactor, Refactor unittests make use of testdata and format with PEP8 2015-06-20 15:54:49 +02:00