Commit Graph

69 Commits

Author SHA1 Message Date
shortcutme 6776dabdb3
Fix piecemap downlad error when invalid piecemap got downloaded 2020-06-30 17:02:39 +02:00
Andrew Morgan a657afcd47 Add missing seekable() class method to BigFile plugin 2020-05-01 18:24:47 +01:00
Ivanq 17f65a5179 Avoid code duplication 2020-02-24 19:19:35 +03:00
Ivanq f8e2cbe429
Allow uploading files via websocket (#2437)
* Allow uploading files via websocket

* Fix
2020-02-24 13:46:01 +01:00
shortcutme 3e08eabc86
Proper error when piecemap download fails 2020-01-22 16:31:35 +01:00
shortcutme 224093b3dd
Rev4397, Fix big file invalid path errors 2020-01-09 16:35:05 +01:00
shortcutme 3d73599deb
Don't retry bad files also in big file tests 2019-12-21 03:21:38 +01:00
shortcutme 2a402a0674
Use thread-safe mode to create directories 2019-12-17 14:18:54 +01:00
Krzysztof Otręba baa5df1d01 fixed KeyError: 'piece_size' when try to download non-optional file using '|all' 2019-08-30 18:59:19 +02:00
shortcutme d166a16a24
Use function flagging in plugins 2019-08-26 03:20:07 +02:00
shortcutme eb2627721e
Fix pytest 5.x compatibility 2019-07-03 18:36:41 +02:00
shortcutme ff32f822ba
Raise exception instead of using assert 2019-07-03 18:35:55 +02:00
ZeroNet eae0d1b2a6
Merge pull request #1959 from tangdou1/patch-1
Change default value to 10MB
2019-07-01 17:45:37 +02:00
shortcutme 8f26c0aeae
Test null byte file download bug fix 2019-06-06 02:27:09 +02:00
shortcutme 350ee13d66
Fix serving binary files with zero characters in it. 2019-06-04 16:18:52 +02:00
shortcutme 4c9d3ee3a6
Test big file renames 2019-04-23 02:00:11 +02:00
shortcutme 4016e7c217
Test Bigfile plugin using tostring where it possible 2019-04-23 01:55:05 +02:00
shortcutme 4671f47222
Fix bigfile piecefield standalone run test 2019-04-18 12:21:33 +02:00
radfish ec6fd48b86 Bigfile: fix piece field bitmask to be used as bytearray consistently (#1982)
* Bigfile: make Piecefield array a bytearray

We want an array of characters. Py2 strings made sense to
use as an array of characters, but Py3 strings are different
and no longer a good choice.

* Bigfile: store bits as binary instead of char

* BigFile: rename to/from string -> to/from bytes

Since the type was changed to bytearray.
2019-04-16 15:14:19 +02:00
shortcutme b82f57e7a2
Fix small file upload using bigfile plugin 2019-04-15 15:07:31 +02:00
shortcutme 998ec3eb4f
Disable all site serving using a global offline argument 2019-04-15 15:06:25 +02:00
shortcutme 87abdb92e9
Fix bigfile upload 2019-04-08 18:11:46 +02:00
tangdou1 4c358b9f08
Big File is bigger than 10MB
Big File is an optional file which is bigger than 10MB, so the default value should be at least 10MB.
2019-04-06 11:57:58 +08:00
shortcutme e24d1016a5
Fix bigfile upload post request return value 2019-03-23 03:38:04 +01:00
shortcutme a82ee338ef
Rev4017, Fix Bigfile test, Python 3.4 compatibility 2019-03-21 02:48:21 +01:00
shortcutme 60405bf222
Rev4016, Add ad test Python 3.4 compatibility 2019-03-21 02:22:22 +01:00
shortcutme 242b3edbc4
Fix BigFilePiecefiled typo 2019-03-16 03:44:13 +01:00
shortcutme a46d8fe7f3
Hash id of the hashmap changed because of use_bin_type msgpack packing 2019-03-16 02:15:37 +01:00
shortcutme dd70d27a0e
Use new Msgpack modue for testing Bigfile plugin 2019-03-16 02:14:43 +01:00
shortcutme b46ee0c495
Use Msgpack module in Bigfile plugin 2019-03-16 02:14:08 +01:00
shortcutme 28ffb3fd18
Ignore sha3 warning of merkletools module 2019-03-16 02:13:17 +01:00
shortcutme d1456850d1
Py3 compatibility in Bigfile piecefield 2019-03-16 02:12:45 +01:00
shortcutme b0b9a4d33c
Change to Python3 coding style 2019-03-15 21:06:59 +01:00
shortcutme fbf430fac9
Ipv6 compatible bigfile test 2019-01-20 19:10:52 +01:00
shortcutme 56221ebc95
Support limiting maximum bigfile size 2018-10-30 04:38:18 +01:00
shortcutme 0deea7133d
Stop downloading bigfile piece if file removed 2018-10-15 13:03:36 +02:00
shortcutme 5854beebc6
Fix Bigfile tell 2018-08-16 16:20:21 +02:00
shortcutme 879eb6295d
BigFile lock seek and read until previous request finished, fix seek relative to bigfile end 2018-08-16 16:20:11 +02:00
rllola 8e1c0a7fa4 Fix rev 3535 big javascript file 2018-07-16 17:32:18 +02:00
shortcutme e9c7d6a0cc
Add bigfile test for dynamic file allocation 2018-07-16 01:55:58 +02:00
shortcutme 2f57e9cbee
Bigfile test formatting fix 2018-07-16 01:55:41 +02:00
shortcutme dae1197ce4
Pass the real file size on bigfile request as the size on the disk can be smaller 2018-07-16 01:34:48 +02:00
shortcutme 1296ab9b60
Only pre-allocate up to 5MB from big files 2018-07-16 01:34:21 +02:00
shortcutme 9afc39d5f1
Add signing parameters to sitePublish 2018-06-25 14:22:24 +02:00
shortcutme abc481604f
Rev3404, Fix bigfile upload 2018-04-04 12:39:46 +02:00
shortcutme c703458e00
Rev3403, Fix uploading small files with bigfile plugin 2018-04-04 10:24:38 +02:00
shortcutme b8d83c7ec4
Mark site with has_bigfile if new bigfile found 2018-03-29 03:16:47 +02:00
shortcutme 5c644d1b36
Make Bigfile plugin compatible with optionalDownloaded changes 2018-03-29 03:15:49 +02:00
shortcutme d61cd96d8f
VerifyFiles call returns more detailed statistics 2018-03-29 02:49:06 +02:00
shortcutme 9d3913ed70
Also delete piecemap on bigfile deletion 2018-03-20 21:58:51 +01:00