Commit Graph

142 Commits

Author SHA1 Message Date
shortcutme 259c5199d6
siteListModifiedFiles admin command 2019-02-02 00:11:47 +01:00
D14na f163abb4a5
Add support for tilde `~` in filenames.
(source: https://webpack.js.org/guides/code-splitting)

It appears that webpack (bundled w/ the VueJS CLI) will concatenate `chunk` names using the `~` to create one long "bundled" filename. This creates a problem when executing `isValidRelativePath` which DOES NOT allow `~`.

__An example error when signing:__
`Site:1... - [ERROR] Invalid filename: js/about~privacy~search.3c7ce85b.js`

A fix is to use the same name for each file/chunk, but then that breaks the optimizations of code splitting. Is there any reason NOT to permit tilde `~` as a valid filename character? _(NOTE: this may only be an issue if using vue-router)_
2019-01-24 08:41:27 -05:00
shortcutme 8e4873cf2a
Do a quick content.db check on startup 2018-12-15 18:39:39 +01:00
shortcutme d0f9d4de02
Fix invalid user auth address matching 2018-11-08 01:36:12 +01:00
shortcutme 6bc1ac1156
Support pattern based cert signers 2018-11-08 01:35:15 +01:00
shortcutme 171e5d3766
Fix typo on optional file deletion 2018-10-15 13:15:11 +02:00
shortcutme 46535cc7a8
File deletion based on type 2018-10-15 13:14:43 +02:00
shortcutme c12454a8e9
Don't delete pinned file if it removed by owner 2018-10-15 13:09:43 +02:00
shortcutme d124e2ed15
Support deletion of of all user submitted content that is older than specified date 2018-09-17 15:30:02 +02:00
shortcutme 00c9c14efb
Support listmodified before and after argument 2018-09-17 15:28:53 +02:00
shortcutme add83c4c7a
Missing content.json is a debug message 2018-04-28 21:45:28 +02:00
shortcutme 42b9ec819b
More verbose dbdict json loading logging 2018-04-28 21:45:13 +02:00
shortcutme af7c7da735
Optional file downloaded checking by separate function 2018-03-29 02:59:11 +02:00
shortcutme 508d2472e9
Only verify content after valid signiture 2018-03-29 02:55:53 +02:00
shortcutme f162987a4f
Rename optionalRemove to optionalRemoved and accept hash only by id 2018-03-29 02:54:52 +02:00
shortcutme adf39b6f6a
Avoid loading user content.json file on isArchived check 2018-03-18 21:26:20 +01:00
shortcutme c7d067ea3c
Rev3176, Skip listing ignored directories on signing 2017-12-20 23:25:25 +01:00
shortcutme 2b611ae798
Rev3148, Fix big site size calculation 2017-11-28 18:16:37 +01:00
shortcutme 972bef4f7d
Add invalid content.json to bad files 2017-11-19 18:19:45 +01:00
shortcutme e8f049a765
Strip / from content.json location of file_info 2017-10-26 10:43:10 +02:00
shortcutme 9d511ba165
Rev3122, Auto ignore database file 2017-10-22 11:13:09 +02:00
shortcutme 4efcfa8bf4
Rev3112, Allow user rules based on auth address 2017-10-16 20:26:41 +02:00
shortcutme c40f0c6919
Fix uploading bigfile to non-user directory 2017-10-16 15:11:19 +02:00
shortcutme f7ce401564
Function to remove invalid characters from file path 2017-10-04 13:25:07 +02:00
shortcutme 5dbaf02e33
Add content.json location to getFileInfo 2017-10-04 13:24:44 +02:00
shortcutme 2ef537ee6c
Fox user_address detection for sub-directories in user directory 2017-10-04 13:24:22 +02:00
shortcutme 74048ce53f
Update site size on startup and file archival 2017-10-04 13:20:39 +02:00
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