Commit Graph

3056 Commits

Author SHA1 Message Date
ZeroNet dd9ccfa3d2
Merge pull request #1947 from radfish/PR-py3--cryptmsg-base64-type
CryptMessage: base64 arg type byte-array; File: set error message before use
2019-04-01 01:15:59 +02:00
ZeroNet 24b6780c1f
Merge pull request #1946 from tangdou1/patch-5
Update README.md
2019-04-01 01:15:20 +02:00
redfish 941571f71f file: set error message before using it
Fixes this exception:

Unhandled exception: [(<class 'UnboundLocalError'>,
UnboundLocalError("local variable 'err' referenced before assignm>
 Traceback (most recent call last):
   File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
   File "/opt/zeronet/src/util/RateLimit.py", line 57, in <lambda>
     thread = gevent.spawn_later(time_left, lambda: callQueue(event))  # Call this function later
   File "/opt/zeronet/src/util/RateLimit.py", line 42, in callQueue
     return func(*args, **kwargs)
   File "/opt/zeronet/src/File/FileRequest.py", line 185, in actionUpdate
     self.response({"error": "File invalid: %s" % err})
UnboundLocalError: local variable 'err' referenced before assignment
2019-03-31 16:25:26 -04:00
redfish 65be9f438b CryptMessage: pass byte-array type to base64
Fixes this error upon sending a message in ZeroMail:
WebSocket handleRequest error: TypeError: a bytes-like object is
required, not 'str' in UiWebsocket.py line 83 > UiWebsocket.py line 269
> CryptMessage/CryptMessagePlugin.py line 80 >
CryptMessage/CryptMessagePlugin.py line 80 > base64.py line 58
2019-03-31 14:05:15 -04:00
tangdou1 15d13ac9f6
Update README.md 2019-03-31 13:47:47 +08:00
ZeroNet 6df3acaf1e
Merge pull request #1943 from radfish/PR-py3--req
requirements: pyelliptic any version, websocket_client
2019-03-31 00:24:15 +01:00
redfish b6ee24dcd5 readme: mention distro packages; also formatting 2019-03-30 09:50:10 -04:00
redfish 1a3e5b7893 requirements: main websocket package
'websocket' doesn't look like the right one.
2019-03-30 09:50:10 -04:00
shortcutme 5df8e10b95
Rev4033 2019-03-29 02:31:46 +01:00
shortcutme bddf2d6537
Fix fileGet command 2019-03-29 02:31:14 +01:00
shortcutme 3d05bdcb63
Log file command errors 2019-03-29 02:31:05 +01:00
shortcutme 52e28eefce
Use lowercase filename for content type guess 2019-03-29 02:30:43 +01:00
shortcutme b5b0626251
Add name for websocket event on site deletion 2019-03-29 02:30:26 +01:00
shortcutme 4a4f311cf8
Better logging of cert generation 2019-03-29 02:29:55 +01:00
shortcutme bad4d14cf6
Save OpenSSL rand file in data directory to avoid error message on Windows 2019-03-29 02:29:32 +01:00
shortcutme b814a633c6
Don't reset broken ssl client list on cleanup 2019-03-29 02:28:46 +01:00
shortcutme 73524d70dc
Switch back to default log file naming because of broken rotate file deleting 2019-03-29 02:28:03 +01:00
shortcutme 9fad83e46c
More detailed logging on archive open error 2019-03-29 02:27:26 +01:00
shortcutme 9fbf4771f2
Fix directory commands on packed files 2019-03-29 02:26:50 +01:00
shortcutme 41cd7da5bd
Rev4026 2019-03-27 03:13:14 +01:00
shortcutme 3d975fd767
Fix libeay32.dll location 2019-03-27 03:12:21 +01:00
shortcutme f8f857c820
Fix atomicWrite non existing tmpold removal 2019-03-27 03:12:02 +01:00
shortcutme 9546ed0bb6
Try to connect to tor before starting own one under windows 2019-03-27 03:11:38 +01:00
shortcutme a3f957427f
Make sure the test went without unnecessary reconnects 2019-03-27 03:10:58 +01:00
shortcutme 9b36c55422
Fix pytest warning 2019-03-27 03:10:29 +01:00
shortcutme b6286372fb
Better cleanup after tests 2019-03-27 03:10:21 +01:00
shortcutme 74e71a1971
Fix http tracker announce compatibility 2019-03-27 03:09:47 +01:00
shortcutme 9050f1a039
Show crypto cipher on peerPing command 2019-03-27 03:09:28 +01:00
shortcutme de303bf453
Modern crypto ciphers 2019-03-27 03:09:09 +01:00
shortcutme 3d8d3a9237
Randomize SSL subject (merged ValdikSS's commit) 2019-03-27 03:08:37 +01:00
shortcutme cf354d59fb
Fix incoming connection implicit crypt 2019-03-27 03:06:46 +01:00
shortcutme 706852d9a7
Fix Stats page rendering in non-debug mode, reduce source code size 2019-03-27 03:06:22 +01:00
shortcutme 63e405c27e
Rev4022 2019-03-23 03:42:26 +01:00
shortcutme 33e8c6fb73
Fix ipv6 port checker 2019-03-23 03:41:52 +01:00
shortcutme faba28dd94
Proper handle of sigterm signal, log reason of shutdown 2019-03-23 03:41:42 +01:00
shortcutme 16f36824e6
Fix benchmark on Python 3.5 2019-03-23 03:40:42 +01:00
shortcutme 5c1ec0b141
Ecies encrypted string length can be different in rare cases 2019-03-23 03:38:30 +01: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 1da6c8c84e
Fix Python 3.7 test 2019-03-20 01:07:18 +01:00
shortcutme 32329c1817
Rev4015 2019-03-20 01:06:56 +01:00
shortcutme 4aee7a6c61
Make openLocked always return BlockingIOError on fail 2019-03-20 01:05:52 +01:00
shortcutme e6c2937c1b
Rev4014 2019-03-20 00:50:44 +01:00
shortcutme 1bbf9b62ad
Test on multiple python versions 2019-03-20 00:50:32 +01:00
shortcutme fa9e024b42
Base58 package is required for libsecp256k verify 2019-03-20 00:50:18 +01:00
shortcutme 8c52038671
Switch to WAL mode as it's faster on older sqlite 2019-03-20 00:49:51 +01:00
shortcutme 7aff97b6ff
Fix loading json files to db on Python 3.5 2019-03-20 00:49:27 +01:00
shortcutme 77530f13ee
Fix content.json update and verify on Python 3.5 2019-03-20 00:48:51 +01:00
shortcutme 0a1c22530a
More clear paramter name for verify 2019-03-20 00:48:09 +01:00