shortcutme
612a3f4401
Fix parsing config file for lines that has no values
2019-07-01 16:19:32 +02:00
Ivanq
8eee9caa01
Fix siteCloning subdirectory with -default files
2019-07-01 09:49:03 +03:00
Ivanq
d278a30d19
Allow sites to lock pointer ( #2059 )
...
Add `allow-pointer-lock` to iframe sandbox
2019-06-30 16:39:17 +02:00
Lola Dam
753396ac0c
Try and catch block for dbRebuild ( #2047 )
...
* Try and catch block for dbRebuild
* Use self.log.error and not logging
* Use self.log.error and not logging in SiteStorage also
* Check if the rebuild is working
2019-06-23 14:21:50 +02:00
shortcutme
9a267ffcaf
Rev4016, Fix updater
2019-06-12 02:57:18 +02:00
ZeroNet
6254143fc6
Fix noparallel ignoreclass test
2019-06-11 18:24:44 +02:00
shortcutme
862e19a263
Rev4104, Don't start blocking Noparallel calls in separate greenlet to be able to catch exceptions.
2019-06-11 17:04:37 +02:00
shortcutme
eeef6fe65f
Rev4102, Fix fileGet test
2019-06-06 03:17:42 +02:00
shortcutme
63d7e73cff
Rev4101
2019-06-06 02:49:11 +02:00
shortcutme
8cb629fb55
Return True on rebuildDb success
2019-06-06 02:27:59 +02:00
shortcutme
d596f28f46
Log non-file read errors on fileGet
2019-06-06 02:27:35 +02:00
shortcutme
45fea827af
Rev4100
2019-06-04 16:18:59 +02:00
shortcutme
bb7af2e8ed
Fix closing progress notification at 100%
2019-06-04 16:18:02 +02:00
Lola Dam
9cda561091
Show error message when db failed to rebuild ( #2043 )
...
* Show error message when db failed to rebuild; fix #1908 ;
* Forgot file
2019-06-04 13:54:35 +02:00
shortcutme
d38846f126
Rev4099, Fix ZipStream for older Python versions
2019-05-31 15:08:30 +02:00
shortcutme
3b764439af
Rev4098
2019-05-30 04:29:57 +02:00
shortcutme
6c4440c2d1
Less verbose Tor controller logging
2019-05-30 04:28:57 +02:00
shortcutme
8e2a7c2b2d
Respect optionalHelp when checking files
2019-05-30 04:28:41 +02:00
shortcutme
fce30baa12
Check files in offline mode on update
2019-05-30 04:28:09 +02:00
shortcutme
4222c31b3e
Don't push body of content.json with updates if larger than 10kb
2019-05-30 04:26:41 +02:00
shortcutme
e5d3b0e7b8
Use openssl from tools directory on Windows
2019-05-30 04:24:58 +02:00
shortcutme
1bba253156
Rev4094
2019-05-29 16:03:32 +02:00
shortcutme
a2d29a4531
Only display sign error if there is no stored privatekey
2019-05-29 16:03:10 +02:00
shortcutme
589869c5ed
Move progress display to separate function
2019-05-29 16:02:34 +02:00
Lola Dam
7262fbfb4e
Added optional redirect value for siteClone ( #2032 )
...
* Added optional redirect value; see #1891
* Return address of the newly cloned site
2019-05-28 18:05:52 +02:00
Lola Dam
9c0e8ee833
Better error message if private key not stored when assigning ( #2033 )
...
* Return a more instructive message in case the privatekey is not found when attempting to sign
* Fix typo
2019-05-28 18:04:49 +02:00
Ivanq
9119d72b9b
Fix calling start.py to reopen browser ( #2029 )
...
* Fix calling start.py to reopen browser
* Move below
2019-05-24 16:36:29 +02:00
shortcutme
891aac4713
Rev4093
2019-05-21 15:57:49 +02:00
shortcutme
2fa006d74e
Fix loading json files with utf8 content
2019-05-21 15:54:36 +02:00
shortcutme
a6c97a304f
Remove empty exception from config.py
2019-05-21 15:53:53 +02:00
shortcutme
cfa4f8fa63
Fix log_dir exception on startup fail
2019-05-21 15:53:32 +02:00
ZeroNet
25d6eea906
Merge pull request #2026 from imachug/js-modules
...
ECMAScript modules
2019-05-20 17:06:17 +02:00
ZeroNet
4e819ac035
Merge pull request #2025 from imachug/fileneed-timeout
...
Handle fileNeed timeout
2019-05-20 17:05:23 +02:00
Ivanq
ed85981409
Fix JS modules
2019-05-19 15:45:34 +03:00
Ivanq
5d920ff7df
Handle gevent.Timeout error
2019-05-19 15:42:11 +03:00
cclauss
8962c16670
Declare 'err' because Python 3 has stricter scoping rules
...
I Python 3, __err__ will go out of scope after the __try / except__ block. This change preserves the value after the end of the __try / except__ block.
2019-05-17 12:33:10 +02:00
shortcutme
20371895c9
Rev4090, Remove fs paths from error responses
2019-05-02 18:02:56 +02:00
shortcutme
617027eb52
Rev4089, Support compressed addresses in libsecp256k1 sign verification
2019-05-02 17:38:36 +02:00
shortcutme
6b9106b178
Test verify of compressed and uncompressed address signature
2019-05-02 17:18:31 +02:00
shortcutme
6207ccd559
Fix pex result parsing when there is no connection
2019-05-02 17:17:57 +02:00
shortcutme
043ac5a510
Log renaming
2019-05-02 17:17:00 +02:00
shortcutme
f318f76994
Add missing function
2019-04-29 17:18:02 +02:00
shortcutme
fd085d2d37
Rev4086, Fix verify content.json files without files_optional
2019-04-29 16:54:07 +02:00
shortcutme
327f580218
Rev4085
2019-04-29 16:44:19 +02:00
shortcutme
7bef78e10f
Fix newsfeed sql query with many parameters
2019-04-29 16:44:13 +02:00
ZeroNet
c2ab102c0e
Merge pull request #1999 from filips123/py3
...
Support for detection of system's theme
2019-04-29 16:35:55 +02:00
Ivanq
4f09a5111b
Build wrapper all.js to support web notifications
2019-04-27 18:19:16 +03:00
Filip Š
baf820bcdb
Support for detection of system's theme
2019-04-26 18:23:25 +02:00
ZeroNet
2b9f1257be
Merge pull request #1993 from imachug/notifications
...
Support web notifications
2019-04-26 12:58:18 +02:00
Ivanq
6e58e8d50f
Don't require WebNotifications permission
2019-04-26 12:55:33 +03:00
shortcutme
021b822c4f
Rev4080
2019-04-23 02:01:40 +02:00
shortcutme
4ac54845fc
Fix double logging when testing
2019-04-23 02:00:59 +02:00
shortcutme
e688671972
Fix rename error variable problem in site storage
2019-04-23 01:59:59 +02:00
shortcutme
6bd63ff42a
Test file renames
2019-04-23 01:59:12 +02:00
shortcutme
4ca0e6b781
Support file renames in content.json if the sha512 hash is the same
2019-04-23 01:56:11 +02:00
shortcutme
4bfd4bd714
Rev4074, Fix Ecdsa functions in cryptmessage plugin
2019-04-20 09:48:56 +02:00
Ivanq
9ddb984004
Rename Push notifications to Web notifications
2019-04-19 22:19:25 +03:00
Ivanq
e618c0e9ef
Add closePushNotification
2019-04-19 22:19:25 +03:00
Ivanq
b55d2b53df
Support Notification API
2019-04-19 22:19:25 +03:00
shortcutme
afbacdfc96
Rev4073
2019-04-18 12:23:55 +02:00
shortcutme
5842441062
Remove unused function
2019-04-18 12:22:57 +02:00
shortcutme
f083301b4c
Allow larger packets
2019-04-18 12:22:38 +02:00
shortcutme
8edbecce3c
Fix diffing
2019-04-18 12:21:59 +02:00
shortcutme
b114c52c0d
Allow pluginned classes in memory on reload
2019-04-18 12:21:50 +02:00
redfish
7e57a8f71e
Ui,Translate: remove bytearray format string
...
Py 3.4 does not support bytearray format strings
for % operator: b"%s" % s
2019-04-16 20:54:55 -04:00
shortcutme
5ff2f792e6
Rev4070, Fix Multiuser plugin import order, Run coverage before optional plugins
2019-04-15 22:54:17 +02:00
shortcutme
8246505289
Rev4069
2019-04-15 22:48:55 +02:00
shortcutme
f970815645
Run tests in debug mode
2019-04-15 22:48:16 +02:00
shortcutme
f83c77e7ea
Fix plugin error message
2019-04-15 22:48:09 +02:00
shortcutme
654cce92cd
Rev4068
2019-04-15 22:24:00 +02:00
shortcutme
bc39e52f56
Rev4066
2019-04-15 22:20:16 +02:00
shortcutme
a822238735
Use 1544 port for tor in tests
2019-04-15 22:19:38 +02:00
shortcutme
b168772d7f
Create user for tests if necessary
2019-04-15 22:19:16 +02:00
shortcutme
034e104c06
Log fileserver startup error for tests
2019-04-15 22:19:00 +02:00
shortcutme
0c0f117bc3
Don't parse config file for tests
2019-04-15 22:18:40 +02:00
shortcutme
1d4ab8833b
Test and enforce proper import plugin order in debug mode
2019-04-15 22:18:18 +02:00
shortcutme
446641c31c
Always commit before Db VACUUM
2019-04-15 22:11:44 +02:00
shortcutme
572d55752c
Avoid random websocket test fails
2019-04-15 16:54:49 +02:00
shortcutme
04394d8ced
Rev4064
2019-04-15 16:29:01 +02:00
shortcutme
c7ea66bfef
Fix shutdown before file_server started
2019-04-15 16:07:18 +02:00
shortcutme
bfc5e2dce6
Support live changing offline mode
2019-04-15 15:49:53 +02:00
shortcutme
a7e8293d1a
Add offline mode info to server info
2019-04-15 15:49:34 +02:00
shortcutme
698f0cc230
Fix isServing check in site info formatting
2019-04-15 15:49:04 +02:00
shortcutme
f414f0746c
Don't update site in offline mode
2019-04-15 15:48:16 +02:00
shortcutme
235b8f359c
Don't create new connections in offline mode
2019-04-15 15:47:17 +02:00
shortcutme
2326cf3de8
Ignore incoming connections in offline mode
2019-04-15 15:47:05 +02:00
shortcutme
b8879853d5
Support closing all current connection in ConnectionServer
2019-04-15 15:46:53 +02:00
shortcutme
498fd4bf01
Don't listen ConnectionServer if not started
2019-04-15 15:46:37 +02:00
shortcutme
996f326c74
Store if UiServer is running
2019-04-15 15:45:07 +02:00
shortcutme
43b68faf73
Merge Ui all.js
2019-04-15 15:44:04 +02:00
shortcutme
8429ad7db7
Use global ZeroNet-Internal url to access Websocket
2019-04-15 15:42:24 +02:00
shortcutme
879b522914
Disable portcheck in offline mode
2019-04-15 15:16:38 +02:00
shortcutme
be584aa3d1
Change offline mode in /Config page
2019-04-15 15:12:08 +02:00
shortcutme
998ec3eb4f
Disable all site serving using a global offline argument
2019-04-15 15:06:25 +02:00
radfish
f6e3a74567
[setuptools packaging] access modules via imports ( #1969 )
2019-04-15 12:31:33 +02:00
shortcutme
0260b30335
Rev4059
2019-04-12 15:03:58 +02:00
shortcutme
0f72085c2a
Also return ws error to websocket connection
2019-04-12 15:03:43 +02:00
shortcutme
6ad8a10f37
Fix invalid ws request response value
2019-04-12 15:03:19 +02:00
shortcutme
8a38983dfc
Better logging of ws connection for siteCmd CLI action
2019-04-12 15:02:04 +02:00
shortcutme
9f5600b7f7
Rev4057, Log invalid result from websocket
2019-04-11 16:33:36 +02:00
shortcutme
a7632889a2
Rev4056
2019-04-11 01:30:04 +02:00
shortcutme
58a4bf479c
Only send env details if in debug mode
2019-04-11 01:29:56 +02:00
shortcutme
1ce4f99b80
Send noscript header to error messages and OPTIONS request
2019-04-11 01:29:32 +02:00
shortcutme
f94ecb3ec5
Fix error 404 on uimedia route
2019-04-11 01:28:00 +02:00
shortcutme
a5c7e59601
Rev4054, Escape error detail to avoid XSS (reported by krzotr)
2019-04-11 00:37:55 +02:00
shortcutme
ec81965393
Rev4053
2019-04-10 19:59:56 +02:00
shortcutme
21536b8948
More clear logging when pinging unencrypted connections
2019-04-10 19:59:37 +02:00
shortcutme
100c2c8741
Set serial by command line to avoid .srl file creation
2019-04-10 19:59:02 +02:00
shortcutme
d47e4a3e0e
More detailed error logging on ssl handshake fail
2019-04-10 19:58:37 +02:00
shortcutme
0c9ea8f580
Merge branch 'py3' of https://github.com/HelloZeroNet/ZeroNet into py3
2019-04-10 14:57:32 +02:00
shortcutme
2320eb8723
Rev4052
2019-04-10 14:57:24 +02:00
shortcutme
17bbeefeca
Fix getWebsocket
2019-04-10 14:57:06 +02:00
shortcutme
31372e269d
Give notification to all connected clients about ZeroNet update
2019-04-10 14:56:47 +02:00
shortcutme
ac799a60da
Stop fs watcher with UiServer
2019-04-10 14:56:10 +02:00
radfish
6a1d716ba1
test: refer to test data path via variable ( #1964 )
2019-04-10 11:30:35 +02:00
ZeroNet
8370ac8426
Merge pull request #1970 from radfish/PR-py3--import-plugins
...
[setuptools packaging] PluginManager: get plugins path via import
2019-04-09 17:51:05 +02:00
shortcutme
a20ff59572
Rev4050
2019-04-09 16:21:46 +02:00
shortcutme
c7078be407
Always verify client update
2019-04-09 15:07:56 +02:00
shortcutme
718a00974b
Merge js
2019-04-09 15:06:33 +02:00
shortcutme
d612676a80
Log closing websocket when updating event
2019-04-09 15:06:27 +02:00
shortcutme
d7bcfb415b
Fix js merging white space stripping
2019-04-09 15:06:09 +02:00
shortcutme
6928a17e61
Rev4048
2019-04-08 18:15:23 +02:00
shortcutme
d097092e8e
Merge js
2019-04-08 18:15:02 +02:00
shortcutme
79eb6573be
Support listing bad files with API
2019-04-08 18:14:45 +02:00
shortcutme
ffed8c9181
Add updatesite, dist_type, verify lib to serverinfo for admin sites
2019-04-08 18:14:31 +02:00
shortcutme
ff8573635d
Limit max width of notification
2019-04-08 18:13:58 +02:00
shortcutme
643244ffd1
Less visible changed files notification number
2019-04-08 18:13:18 +02:00
shortcutme
9fd059aef8
Give admin permission to updater site
2019-04-08 18:12:58 +02:00
shortcutme
6764a7ad2f
Fix js merging
2019-04-08 18:12:43 +02:00
shortcutme
5642d0aae6
Also ignore db -wal and -shm temp db files when signing
2019-04-08 18:12:29 +02:00
redfish
73814550e5
PluginManager: get plugins path via import
...
* skip __pycache__ when loading
2019-04-07 18:50:23 -04:00
ZeroNet
edf3cf3b65
Merge pull request #1966 from radfish/PR-py3--ui-pathlib
...
[setuptools packaging] Ui: extend actionFile to accept pathlib.Path
2019-04-07 12:01:07 +02:00
redfish
1e1f967292
Ui: extend actionFile to accept pathlib.Path
2019-04-06 22:22:34 -04:00
redfish
6f5d4fdc51
config: path.expanduser returns py3 strings
...
And strings have no decode method.
2019-04-06 22:16:37 -04:00
shortcutme
7b1594c69c
Rev4044
2019-04-04 13:29:36 +02:00
shortcutme
6d27feba97
New updater site for Python3 version
2019-04-04 13:29:26 +02:00
shortcutme
4363dcbbc1
Distribtion type config value for future support in the updater script
2019-04-04 13:29:11 +02:00
shortcutme
380c32dee2
Worker stats on stop
2019-04-04 13:27:46 +02:00
shortcutme
bfc7e7c33f
Only start worker if there is valid task for it
2019-04-04 13:27:21 +02:00
shortcutme
8594e4ce4a
Add reason for startWorkers
2019-04-04 13:27:06 +02:00
shortcutme
752dabe554
Openssl dll find patch to libeay32
2019-04-04 13:25:10 +02:00
tangdou1
42de962cbf
ipv6 compatibility
2019-04-03 19:56:14 +08: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
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