Commit graph

145 commits

Author SHA1 Message Date
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
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
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
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
12bf5bb152 Sote site in contentdb after files loaded 2016-11-07 23:02:37 +01:00
shortcutme
2ab04deded Move optional files hashfield adding to workermanager for better performance 2016-10-02 14:18:35 +02:00
shortcutme
9fd19bf382 Fix content deletion 2016-09-14 10:52:41 +02:00
shortcutme
25cb7d9ffa Only check optional files if content.json downloaded 2016-09-05 13:53:10 +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
Matthew Bell
371c74498d inherit from object 2015-06-17 23:08:45 +01:00
Matthew Bell
b6cb1062ce partial cleanup of ContentManager.py 2015-06-17 22:49:47 +01:00
HelloZeroNet
b2e2453e58 rev242, Implicit SSL support for the future, Exist typo fix 2015-06-17 00:49:46 +02:00
HelloZeroNet
7e4f6bd38e version 0.3.0, rev187, Trusted authorization sites support, --publish option on signing, cryptSign command line option, OpenSSL enabled on OSX, Crypto verify allows list of valid addresses, Option for version 2 json DB tables, DbCursor SELECT parameters bugfix, Add peer to site on ListModified, Download blind includes when new site added, Publish command better messages, Multi-threaded announce, New http Torrent trackers, Wait for dbschema.json on query, Handle json import errors, More compact writeJson storage command, Testcase for signing and verifying, Workaround to make non target=_top links work, More clean UiWebsocket command route, Send cert_user_id on siteinfo, Notify other local clients on local file modify, Option to wait for file download before sql query, File rules websocket API command, Cert add and select, set websocket API command, Put focus on innerframe, innerloaded wrapper api command to add hashtag, Allow more file error on big sites, Keep worker running after stuked on done task, New more stable openSSL layer that works on OSX, Noparallel parameter bugfix, RateLimit allowed again interval bugfix, Updater skips non-writeable files, Try to close openssl dll before update 2015-05-25 01:26:33 +02:00
HelloZeroNet
eddf3eb8fc rev134, Removed ZeroMQ dependency and support, GC after every stat page, GC call stat command, Streaming files directly to socket without msgpack overhead, Use listModified to query changed content.json files, Fix urllib memory leak onolder pythons, Fix security tests, Sitemanager testsuite, Announce on site resume, Site publish serves files max 60s 2015-05-03 13:06:43 +02:00
HelloZeroNet
099fe575a0 rev125, Class statistics, OpenSSL disabled on OSX by default because of possible segfault, --disable_openssl command line parameter, Save memory on Connection, Peer and FileRequest objects using slots, Dont store modification time from the far future, Able to query modified files from peer, Allow reannounce in 30secs, Use with command in SiteStorage, Always create dir before write file, PeerCmd shell command to query specific command from peer 2015-04-29 23:12:45 +02:00
HelloZeroNet
f576527986 rev116, Fix websocket error when writing invalid files on not-owned sites, Fix for stucked notification icon after shutdown 2015-04-21 00:35:34 +02:00
HelloZeroNet
4f7e048413 socks proxy support, disable udp connections support, http bittorrent tracker support, port opened, external ip to stats, only need zeroname site if dont have, dont try to download file that not in content.json, store external ip even if port closed, recreate uirequest class to avoid unfinished requests in some cases 2015-04-12 23:59:22 +02:00
HelloZeroNet
67783bd494 total object stat, proper zeronet updater timeout catch, connection using connectionserver logger, trigger sitestorage onupdated when signing new file, named once events, only publish once same updated files, retry bad files every 20 min, trigger connection error on failed connection 2015-04-08 01:57:55 +02:00
HelloZeroNet
9c5176a8cb site connection stats, msgpack unpacker stats, make sure we dont skip any namecoin blocks, no more sha1 hash to content.json, keep 5 open connection in passive mode, publish got content to 5 peers, upnp retry 3 times, keep connection loggers 2015-04-03 02:47:51 +02:00
HelloZeroNet
3b8d49207e version 0.2.6, database support, dbrebuild and dbquery startup commands, connection firstchar error bugfix, log python gevent msgpack lib versions, sitestorage class for site file operations, dbquery websocket api command 2015-03-19 21:19:14 +01:00
HelloZeroNet
b35d21d643 more detailed stats, memory optimalizations, connection pinging and timeout, request timeout, validate content after signing, only recompile changed coffeescripts, remove unnecessary js logs 2015-03-06 02:31:51 +01:00
HelloZeroNet
31d4609a3b version 0.2.4, peerPing and peerGetFile commands, old content update bugfix, new network code and protocol, connection share between sites, connection reuse, dont retry bad file more than 3 times in 20 min, multi threaded include file download, shuffle peers before publish, simple internal stats page, dont retry on failed peers, more than 10 peers publish bugfix 2015-02-23 23:33:31 +01:00
HelloZeroNet
fa7164a0f0 version 0.2.1, better browser open, site size limit, save number of peers to sites.json to faster warmup, silent wsgihandler error, siteSetLimit API comment, grant ADMIN permissions to wrapper, display site changetime from includes too, loading screen warning support 2015-02-14 14:05:00 +01:00
HelloZeroNet
639b9f4961 version 0.2.0, new lib for bitcoin ecc, dont display or track notify errors, dont reload again within 1 sec, null peer ip fix, signingmoved to ContentManager, content.json include support, content.json multisig ready, content.json proper bitcoincore compatible signing, content.json include permissions, multithreaded publish, publish timeout 60s, no exception on invalid bitcoin address, testcase for new lib, bip32 based persite privatekey generation, multiuser ready, simple json database query command, websocket api fileGet, wrapper loading title stuck bugfix 2015-02-09 02:09:02 +01:00