Commit graph

112 commits

Author SHA1 Message Date
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