Matthew Wild [Tue, 8 Mar 2016 17:49:33 +0000 (17:49 +0000)]
prosodyctl: Fix typo'd variable name [luacheck]
Kim Alvefur [Mon, 7 Mar 2016 11:15:39 +0000 (12:15 +0100)]
prosodyctl: Use already sorted array of module names [luacheck]
Kim Alvefur [Mon, 7 Mar 2016 11:13:22 +0000 (12:13 +0100)]
prosodyctl: Include libevent version in "about" output if luaevent is available
Kim Alvefur [Sun, 6 Mar 2016 17:51:11 +0000 (18:51 +0100)]
storagemanager: Fix saving data in map shim when no prior data exists
Matthew Wild [Sat, 5 Mar 2016 23:42:01 +0000 (23:42 +0000)]
tests: Add basic tests for util.xml and util.xmppstream
Matthew Wild [Sat, 5 Mar 2016 20:48:20 +0000 (20:48 +0000)]
tests: Add extra tests for util.json
Matthew Wild [Fri, 4 Mar 2016 22:27:04 +0000 (22:27 +0000)]
util.json: Fix encoding of json.null (bug introduced in
bf1f09a5bcf7)
Matthew Wild [Fri, 4 Mar 2016 22:17:38 +0000 (22:17 +0000)]
Makefile: Reduce verbosity of 'make test' so it only shows test failures
Matthew Wild [Fri, 4 Mar 2016 22:17:16 +0000 (22:17 +0000)]
Add tests for util.json
Kim Alvefur [Thu, 3 Mar 2016 15:05:34 +0000 (16:05 +0100)]
Merge 0.9->0.10
Kim Alvefur [Thu, 3 Mar 2016 14:31:46 +0000 (15:31 +0100)]
mod_http_files: Preserve a trailing / in paths (fixes #639)
Kim Alvefur [Thu, 3 Mar 2016 14:30:00 +0000 (15:30 +0100)]
mod_http_files: Don't prepend / to path twice, sanitize path does this already
Kim Alvefur [Thu, 3 Mar 2016 14:28:07 +0000 (15:28 +0100)]
mod_http_files: Fix traceback when serving a non-wildcard path (fixes #611)
Kim Alvefur [Wed, 2 Mar 2016 15:43:42 +0000 (16:43 +0100)]
mod_welcome: Pass default text to config API as default value
Kim Alvefur [Wed, 2 Mar 2016 15:42:59 +0000 (16:42 +0100)]
mod_welcome: Use type-specific config API
Kim Alvefur [Wed, 2 Mar 2016 15:32:37 +0000 (16:32 +0100)]
Merge 0.9->0.10
Kim Alvefur [Wed, 2 Mar 2016 15:30:46 +0000 (16:30 +0100)]
net.server_event: Return true from conn:resume() to indicate success
Kim Alvefur [Wed, 2 Mar 2016 15:30:05 +0000 (16:30 +0100)]
net.server_event: Prevent resuming connections without readcallback, eg closed connections (fixes #590)
Kim Alvefur [Wed, 2 Mar 2016 15:28:11 +0000 (16:28 +0100)]
mod_c2s: Remove connection object from session object when connection disconnected to prevent accidental use (see #590)
Kim Alvefur [Sun, 28 Feb 2016 19:01:13 +0000 (20:01 +0100)]
util.sasl.scram: Rename variable in places missed in
65e36b81d56a (thanks mt)
Kim Alvefur [Sun, 28 Feb 2016 18:26:45 +0000 (19:26 +0100)]
util.sasl.scram: Remove unused initial value [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 18:26:14 +0000 (19:26 +0100)]
util.sasl.scram: Rename variable to avoid name clash [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 18:25:39 +0000 (19:25 +0100)]
util.sasl.anonymous: Remove unused locals [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 17:47:11 +0000 (18:47 +0100)]
prosodyctl: One month is 31 days, no 13 (thanks av6)
Kim Alvefur [Sun, 28 Feb 2016 17:45:27 +0000 (18:45 +0100)]
prosodyctl: Fix typo (thanks av6)
Kim Alvefur [Sun, 28 Feb 2016 17:24:12 +0000 (18:24 +0100)]
prosodyctl: check certs: Warn about certificate expiry in the near future
Kim Alvefur [Sun, 28 Feb 2016 17:23:24 +0000 (18:23 +0100)]
prosodyctl: check certs: Update messages to account for 'ssl' option maybe not existing
Kim Alvefur [Sun, 28 Feb 2016 17:22:23 +0000 (18:22 +0100)]
prosodyctl: check certs: Use certmanager to get the final ssl config in order to support the new certificate(s) config option
Kim Alvefur [Sun, 28 Feb 2016 14:03:16 +0000 (15:03 +0100)]
util.termcolours: Rename loop variable [luacheck]
Kim Alvefur [Sun, 28 Feb 2016 14:03:01 +0000 (15:03 +0100)]
util.termcolours: Validate color codes, fixes traceback
Kim Alvefur [Sat, 27 Feb 2016 15:56:34 +0000 (16:56 +0100)]
util.termcolours: Add some CSS color names
Kim Alvefur [Sat, 27 Feb 2016 15:47:12 +0000 (16:47 +0100)]
util.termcolours: Add 256 color support
Kim Alvefur [Sat, 27 Feb 2016 14:29:56 +0000 (15:29 +0100)]
util.datamanager: Explicit handling of each error condition (see #632)
Kim Alvefur [Thu, 25 Feb 2016 21:37:41 +0000 (22:37 +0100)]
Merge 0.9->0.10
Kim Alvefur [Thu, 25 Feb 2016 21:36:42 +0000 (22:36 +0100)]
util.datamanager: Unreference file handle after closing it to prevent trying to close it again (fixes #632)
Kim Alvefur [Thu, 25 Feb 2016 21:33:58 +0000 (22:33 +0100)]
util.termcolours: Remove argument from noop function [luacheck]
Kim Alvefur [Thu, 25 Feb 2016 21:33:40 +0000 (22:33 +0100)]
util.termcolours: Silence luacheck warning
Kim Alvefur [Thu, 25 Feb 2016 21:32:13 +0000 (22:32 +0100)]
util.template: Use separate variables for source and compiled function [luacheck]
Kim Alvefur [Thu, 25 Feb 2016 21:31:13 +0000 (22:31 +0100)]
util.template: Silence luacheck warnings about unused loop vars
Kim Alvefur [Thu, 25 Feb 2016 14:36:12 +0000 (15:36 +0100)]
certs/Makefile: Add target for generating DH params
Kim Alvefur [Thu, 25 Feb 2016 14:35:44 +0000 (15:35 +0100)]
prosodyctl: Allow a DN path to be given to 'cert generate' command (fixes #349)
Kim Alvefur [Thu, 25 Feb 2016 14:34:38 +0000 (15:34 +0100)]
util.openssl: Allow order of distinguished name fields to be included in config
Kim Alvefur [Wed, 24 Feb 2016 10:15:27 +0000 (11:15 +0100)]
prosodyctl: Create host.sessions table, (needed by
1295e14614f4) (thanks goffi)
Kim Alvefur [Mon, 22 Feb 2016 21:56:05 +0000 (22:56 +0100)]
util.crand: Include stdlib.h instead of malloc.h for portability (thanks Tobias)
Kim Alvefur [Mon, 22 Feb 2016 17:44:43 +0000 (18:44 +0100)]
util.crand: C binding to one of OpenSSL, Linux getrandom() or OpenBSD arc4random() CSPRNG
Kim Alvefur [Mon, 22 Feb 2016 16:43:40 +0000 (17:43 +0100)]
util.iterators: Use table.pack() on Lua 5.2
Kim Alvefur [Mon, 22 Feb 2016 16:40:42 +0000 (17:40 +0100)]
util.multitable: Localize unpack() in Lua 5.2 compatible way
Kim Alvefur [Mon, 22 Feb 2016 16:38:46 +0000 (17:38 +0100)]
util.iterators: Localize unpack() in Lua 5.2 compatible way
Kim Alvefur [Mon, 22 Feb 2016 16:37:55 +0000 (17:37 +0100)]
util.import: Localize unpack() in Lua 5.2 compatible way
Kim Alvefur [Mon, 22 Feb 2016 16:34:42 +0000 (17:34 +0100)]
util.debug: Silence luacheck warning about modifying 'debug' lib
Kim Alvefur [Mon, 22 Feb 2016 16:32:11 +0000 (17:32 +0100)]
util.session: Fix luacheck warnings
Kim Alvefur [Mon, 22 Feb 2016 16:30:12 +0000 (17:30 +0100)]
util.sql: Localize unpack() in Lua 5.2 compatible way
Kim Alvefur [Mon, 22 Feb 2016 14:23:27 +0000 (15:23 +0100)]
mod_storage_sql: Treat non-existent archive IDs as beyound the end of the archive (fixes #624) (tested on sqlite3 only)
Kim Alvefur [Sun, 21 Feb 2016 18:30:45 +0000 (19:30 +0100)]
usermanager: Shortcircuit user existence check if they have existing sessions
Kim Alvefur [Sun, 21 Feb 2016 18:29:31 +0000 (19:29 +0100)]
mod_debug_sql: Small plugin that enables raw SQL query logging (for debugging)
Kim Alvefur [Sun, 21 Feb 2016 18:29:00 +0000 (19:29 +0100)]
mod_storage_sql: Remove debug logging of archive queries
Kim Alvefur [Sun, 21 Feb 2016 18:25:01 +0000 (19:25 +0100)]
util.sql: Raw query debug logging (needs to be explicitly enabled by a plugin)
Kim Alvefur [Sun, 21 Feb 2016 18:01:26 +0000 (19:01 +0100)]
mod_storage_sql: Lower message about new engine creation to debug level
Kim Alvefur [Sun, 21 Feb 2016 17:05:54 +0000 (18:05 +0100)]
tests: Add minimal test for util.random that checks that it returns the number of bytes requested
Kim Alvefur [Sun, 21 Feb 2016 13:53:19 +0000 (14:53 +0100)]
mod_storage_sql: Share SQL connections with same parameters across VirtualHosts (fixes #576)
Kim Alvefur [Fri, 19 Feb 2016 18:22:18 +0000 (19:22 +0100)]
mod_storage_sql: Fix setting value to false in map store
Matthew Wild [Fri, 19 Feb 2016 12:15:02 +0000 (12:15 +0000)]
rostermanager: Require storagemanager at the top, fixes traceback on Lua 5.2
Kim Alvefur [Thu, 18 Feb 2016 18:08:01 +0000 (19:08 +0100)]
Makefile: Use runtime set by configure (fixes #629)
Kim Alvefur [Thu, 18 Feb 2016 13:57:51 +0000 (14:57 +0100)]
loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck]
Kim Alvefur [Thu, 18 Feb 2016 13:57:04 +0000 (14:57 +0100)]
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
Matthew Wild [Thu, 18 Feb 2016 13:48:45 +0000 (13:48 +0000)]
certmanager: Localize tonumber
Matthew Wild [Thu, 18 Feb 2016 13:21:12 +0000 (13:21 +0000)]
loggingmanager: Import select() to fix global access
Kim Alvefur [Tue, 9 Feb 2016 16:24:04 +0000 (17:24 +0100)]
mod_storage_sql: Silence some harmless luacheck warnings
Kim Alvefur [Tue, 9 Feb 2016 16:09:01 +0000 (17:09 +0100)]
rostermanager: Use map stores when only one contact is changed
Kim Alvefur [Tue, 9 Feb 2016 16:01:04 +0000 (17:01 +0100)]
rostermanager: Use storagemanager
Kim Alvefur [Tue, 9 Feb 2016 15:56:27 +0000 (16:56 +0100)]
mod_storage_sql: Implement map:set_keys, allowing multiple keys to be set in the same transaction
Kim Alvefur [Tue, 9 Feb 2016 15:54:56 +0000 (16:54 +0100)]
storagemanager: Add set_keys method to map store shim
Matthew Wild [Wed, 27 Jan 2016 13:05:58 +0000 (13:05 +0000)]
Added tag 0.9.10 for changeset
352270bc0439
Kim Alvefur [Tue, 26 Jan 2016 23:06:30 +0000 (00:06 +0100)]
Merge
Kim Alvefur [Mon, 25 Jan 2016 23:28:07 +0000 (00:28 +0100)]
mod_c2s, mod_s2s: Lower priority of session shutdown to negative, so that plugins hooking at the default priority run first (fixes #601)
Kim Alvefur [Fri, 22 Jan 2016 01:00:43 +0000 (02:00 +0100)]
server_select: Add logging of when servers are paused and resumed
Kim Alvefur [Fri, 22 Jan 2016 01:00:27 +0000 (02:00 +0100)]
server_select: Pause and mark server as full if accepting a client fails (fixes #597)
Kim Alvefur [Fri, 22 Jan 2016 00:59:25 +0000 (01:59 +0100)]
server_select: Retry accepting clients from full servers after 10s (matches libevent behaviour)
Kim Alvefur [Fri, 22 Jan 2016 00:58:39 +0000 (01:58 +0100)]
server_select: Keep track of which server listeners are full
Kim Alvefur [Thu, 21 Jan 2016 21:26:46 +0000 (22:26 +0100)]
net.dns: Remember query only after it was sent, in case it was not (fixes #598)
Kim Alvefur [Thu, 21 Jan 2016 21:21:19 +0000 (22:21 +0100)]
Backout
63f5870f9afe, no longer needed since Windows is currently unsupported
Kim Alvefur [Tue, 19 Jan 2016 20:31:02 +0000 (21:31 +0100)]
mod_dialback: Follow XEP-0185 and use HMAC
Kim Alvefur [Sun, 10 Jan 2016 22:25:00 +0000 (23:25 +0100)]
core: Increase default read size to "all of it", in practice 8K (size of LuaSockets buffer)
Kim Alvefur [Sun, 10 Jan 2016 22:21:34 +0000 (23:21 +0100)]
util.uuid: Open /dev/urandom read-only, make seed() a noop
Matthew Wild [Fri, 8 Jan 2016 13:01:32 +0000 (13:01 +0000)]
Added tag 0.9.9 for changeset
7ec52755622f
Matthew Wild [Fri, 8 Jan 2016 13:01:27 +0000 (13:01 +0000)]
Backout
88d54bec26b7 prior to release, as it certainly requires more testing
Matthew Wild [Thu, 7 Jan 2016 15:37:47 +0000 (15:37 +0000)]
mod_http_files: Santize the path relative to our base URL before translating it to a filesystem path, fixes a relative path traversal vulnerability
Kim Alvefur [Wed, 6 Jan 2016 01:46:47 +0000 (02:46 +0100)]
util.uuid: Use /dev/urandom
Kim Alvefur [Mon, 4 Jan 2016 14:46:06 +0000 (15:46 +0100)]
net.dns: Allow a zone id in resolv.conf (eg like %eth0)
Kim Alvefur [Mon, 4 Jan 2016 16:47:40 +0000 (17:47 +0100)]
util.ip: Support zone id syntax in IPv6 addresses
Kim Alvefur [Fri, 8 Aug 2014 10:38:35 +0000 (12:38 +0200)]
storagemanager: Fix map store shim if store is empty
daurnimator [Thu, 7 Aug 2014 16:15:15 +0000 (12:15 -0400)]
storagemanager: When map store isn't available, fallback to keyval store [backported from trunk]
Kim Alvefur [Mon, 8 Feb 2016 19:23:12 +0000 (20:23 +0100)]
mod_storage_sql: Support non-string keys in map store
Kim Alvefur [Fri, 5 Feb 2016 15:12:01 +0000 (16:12 +0100)]
certmanager: Try filename.key if certificate is set to a full filename ending with .crt
Kim Alvefur [Fri, 5 Feb 2016 14:03:39 +0000 (15:03 +0100)]
certmanager: Apply global ssl config later so certificate/key is not overwritten by magic
Matthew Wild [Fri, 5 Feb 2016 00:03:41 +0000 (00:03 +0000)]
certmanager: Support new certificate configuration for non-XMPP services too (fixes #614)
Kim Alvefur [Thu, 4 Feb 2016 19:45:37 +0000 (20:45 +0100)]
loggingmanager: Stringify all arguments to format so we can finally see the *real* error messages
Kim Alvefur [Thu, 4 Feb 2016 17:40:24 +0000 (18:40 +0100)]
loggingmanager: Remove Windows hack, buffer_mode should fix this
Kim Alvefur [Thu, 4 Feb 2016 16:57:12 +0000 (17:57 +0100)]
loggingmanager: Write out timestamps in same write() call as everything else
Kim Alvefur [Thu, 4 Feb 2016 16:51:39 +0000 (17:51 +0100)]
loggingmanager: Make initial value for width of log name configurable