prosody.git
9 years agoMerge with merge merge merge
Matthew Wild [Fri, 27 Mar 2015 22:19:44 +0000 (22:19 +0000)]
Merge with merge merge merge

9 years agoMerge 0.9->0.10 (third time lucky)
Matthew Wild [Fri, 27 Mar 2015 22:11:58 +0000 (22:11 +0000)]
Merge 0.9->0.10 (third time lucky)

9 years agoMerge with merge
Kim Alvefur [Thu, 26 Mar 2015 23:28:16 +0000 (00:28 +0100)]
Merge with merge

9 years agoMerge 0.9->0.10 again
Kim Alvefur [Thu, 26 Mar 2015 23:27:29 +0000 (00:27 +0100)]
Merge 0.9->0.10 again

9 years agoMerge 0.9->0.10
Matthew Wild [Thu, 26 Mar 2015 16:48:39 +0000 (16:48 +0000)]
Merge 0.9->0.10

9 years agoTagging 0.9.8
Matthew Wild [Tue, 24 Mar 2015 19:12:04 +0000 (19:12 +0000)]
Tagging 0.9.8

9 years agomod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when...
Matthew Wild [Tue, 24 Mar 2015 16:03:37 +0000 (16:03 +0000)]
mod_s2s: to/from attributes are required on s2s stream headers. Set them to '' when not available. Fixes #468.

9 years agosessionmanager: Return 'not-allowed' error instead of the non-existent 'already-bound...
Matthew Wild [Tue, 24 Mar 2015 15:57:46 +0000 (15:57 +0000)]
sessionmanager: Return 'not-allowed' error instead of the non-existent 'already-bound' error when client tries to bind a resource twice on the same stream (thanks Flow) fixes issue #484.

9 years agomod_http: Return a static string from module:http_url() when no ports are enabled...
Kim Alvefur [Mon, 23 Mar 2015 17:45:02 +0000 (18:45 +0100)]
mod_http: Return a static string from module:http_url() when no ports are enabled and log a warning

9 years agomod_http: Log a debug message when adding new http apps and warn if no http ports...
Kim Alvefur [Mon, 23 Mar 2015 17:44:12 +0000 (18:44 +0100)]
mod_http: Log a debug message when adding new http apps and warn if no http ports are enabled

9 years agoBackout 7726b627c3ea
Kim Alvefur [Mon, 23 Mar 2015 17:40:12 +0000 (18:40 +0100)]
Backout 7726b627c3ea

9 years agoutf8_sequences.txt: Oops
Matthew Wild [Mon, 23 Mar 2015 17:23:11 +0000 (17:23 +0000)]
utf8_sequences.txt: Oops

9 years agotests: Add UTF-8 validity tests
Matthew Wild [Mon, 23 Mar 2015 17:16:54 +0000 (17:16 +0000)]
tests: Add UTF-8 validity tests

9 years agoMerge with Zash
Matthew Wild [Mon, 23 Mar 2015 14:05:55 +0000 (14:05 +0000)]
Merge with Zash

9 years agoutil.encodings: Expose UTF-8 validation and length checking functions
Kim Alvefur [Mon, 23 Mar 2015 13:27:30 +0000 (14:27 +0100)]
util.encodings: Expose UTF-8 validation and length checking functions

9 years agoutil.encodings: Perform validation of UTF-8 strings before passing to libidn (Based...
Kim Alvefur [Mon, 23 Mar 2015 13:26:34 +0000 (14:26 +0100)]
util.encodings: Perform validation of UTF-8 strings before passing to libidn (Based on code from the utf8 library in Lua 5.3)

9 years agomod_http: Log event name when adding a HTTP app's hooks
Matthew Wild [Sat, 14 Mar 2015 22:39:23 +0000 (22:39 +0000)]
mod_http: Log event name when adding a HTTP app's hooks

9 years agonet.http.server: Log event name when firing a request event
Matthew Wild [Sat, 14 Mar 2015 22:39:03 +0000 (22:39 +0000)]
net.http.server: Log event name when firing a request event

9 years agoconfigure: Fix for commit cd0088c73daf - update LIBDIR if --prefix is set and --libdi...
Matthew Wild [Tue, 24 Feb 2015 15:19:20 +0000 (15:19 +0000)]
configure: Fix for commit cd0088c73daf - update LIBDIR if --prefix is set and --libdir isn't (thanks Medics)

9 years agomod_admin_telnet: Require util.pposix (fixes #471)
Matthew Wild [Fri, 20 Feb 2015 22:53:12 +0000 (22:53 +0000)]
mod_admin_telnet: Require util.pposix (fixes #471)

9 years agoutil.datamanager: Check that the global 'prosody' exists before using it (fixes nil...
Kim Alvefur [Fri, 20 Feb 2015 18:00:01 +0000 (19:00 +0100)]
util.datamanager: Check that the global 'prosody' exists before using it (fixes nil indexing in use outside of prosody)

9 years agoconfigure, Makefile: Add --libdir option to ./configure, allowing you to override...
Matthew Wild [Fri, 20 Feb 2015 15:51:05 +0000 (15:51 +0000)]
configure, Makefile: Add --libdir option to ./configure, allowing you to override the $PREFIX/lib/ default. Fixes #470.

9 years agoprosodyctl: Expand plugin paths and attempt to identify prosody-modules checkouts
Kim Alvefur [Wed, 21 Jan 2015 01:55:27 +0000 (02:55 +0100)]
prosodyctl: Expand plugin paths and attempt to identify prosody-modules checkouts

9 years agoprosodyctl: Use util.mercurial to identify hg repository and revision
Kim Alvefur [Wed, 21 Jan 2015 01:55:23 +0000 (02:55 +0100)]
prosodyctl: Use util.mercurial to identify hg repository and revision

9 years agoutil.mercurial: Utility functions for Mercurial repositories
Kim Alvefur [Wed, 21 Jan 2015 01:55:18 +0000 (02:55 +0100)]
util.mercurial: Utility functions for Mercurial repositories

9 years agostanza_router: Fix routing of 'error' IQs with multiple childs (thanks Pawel)
Kim Alvefur [Tue, 6 Jan 2015 16:39:47 +0000 (17:39 +0100)]
stanza_router: Fix routing of 'error' IQs with multiple childs (thanks Pawel)

9 years agonet.http.parser: Fix whitespace/indentation
Matthew Wild [Tue, 18 Nov 2014 17:40:37 +0000 (17:40 +0000)]
net.http.parser: Fix whitespace/indentation

9 years agonet.http.parser: Fix chunked encoding parsing across packet boundaries.
daurnimator [Mon, 10 Nov 2014 19:47:33 +0000 (14:47 -0500)]
net.http.parser: Fix chunked encoding parsing across packet boundaries.

9 years agonet.dns: Try next server if peer name can not be set (thanks wirehack7)
Kim Alvefur [Thu, 30 Oct 2014 11:28:07 +0000 (12:28 +0100)]
net.dns: Try next server if peer name can not be set (thanks wirehack7)

9 years agonet.dns: Return new socket from servfail
Kim Alvefur [Thu, 30 Oct 2014 11:10:15 +0000 (12:10 +0100)]
net.dns: Return new socket from servfail

9 years agonet.adns: Log peername recorded from wrapped setpeername instead of calling sock...
Kim Alvefur [Thu, 30 Oct 2014 11:08:05 +0000 (12:08 +0100)]
net.adns: Log peername recorded from wrapped setpeername instead of calling sock:getpeername, it exists and throws an error on unconnected sockets (thanks wirehack7)

9 years agonet.adns: Preserve error from setpeername
Kim Alvefur [Thu, 30 Oct 2014 11:05:24 +0000 (12:05 +0100)]
net.adns: Preserve error from setpeername

9 years agoTagging 0.9.7
Matthew Wild [Fri, 24 Oct 2014 22:23:02 +0000 (23:23 +0100)]
Tagging 0.9.7

9 years agoBackout changeset 6e67c73f730c: not a major fix and it breaks interop with at least...
Matthew Wild [Fri, 24 Oct 2014 22:20:06 +0000 (23:20 +0100)]
Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either.

9 years agoprosodyctl: Fix nil global access traceback in `prosodyctl about` (luarocks 2.2.0...
Waqas Hussain [Sun, 19 Oct 2014 07:05:49 +0000 (03:05 -0400)]
prosodyctl: Fix nil global access traceback in `prosodyctl about` (luarocks 2.2.0 no longer uses module())

9 years agoTagging 0.9.6
Matthew Wild [Tue, 14 Oct 2014 23:39:37 +0000 (00:39 +0100)]
Tagging 0.9.6

9 years agocertmanager, net.http: Disable SSLv3 by default
Matthew Wild [Tue, 14 Oct 2014 17:55:08 +0000 (18:55 +0100)]
certmanager, net.http: Disable SSLv3 by default

9 years agomod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth')
Matthew Wild [Tue, 14 Oct 2014 09:58:11 +0000 (10:58 +0100)]
mod_pubsub: Fix error type of 'forbidden' (change from 'cancel' to 'auth')

9 years agomod_s2s: Capitalize log message
Kim Alvefur [Thu, 9 Oct 2014 22:56:53 +0000 (00:56 +0200)]
mod_s2s: Capitalize log message

9 years agoutil/dataforms: Make sure we iterate over field tags
daurnimator [Tue, 7 Oct 2014 16:08:23 +0000 (12:08 -0400)]
util/dataforms: Make sure we iterate over field tags

9 years agoutil.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transfo...
Waqas Hussain [Wed, 8 Oct 2014 19:56:11 +0000 (15:56 -0400)]
util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transforms into \n  otherwise, and \r\n\t in attributes transforms into spaces.

9 years agonet.dns: Avoid duplicate cache entries
Florian Zeitz [Sun, 5 Oct 2014 12:28:40 +0000 (14:28 +0200)]
net.dns: Avoid duplicate cache entries

9 years agomod_admin_adhoc: Add required to field in user deletion form too
Kim Alvefur [Mon, 29 Sep 2014 09:18:04 +0000 (11:18 +0200)]
mod_admin_adhoc: Add required to field in user deletion form too

9 years agomod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command...
Kim Alvefur [Mon, 29 Sep 2014 09:02:06 +0000 (11:02 +0200)]
mod_admin_adhoc: Mark 'accountjids' field as required in 'end user sessions' command (thanks Lloyd)

9 years agocore.stanza_router: Stricter validation of stanzas
Kim Alvefur [Tue, 9 Sep 2014 12:42:10 +0000 (14:42 +0200)]
core.stanza_router: Stricter validation of stanzas

9 years agonet.http.parser: Support status code 101 and allow handling of the received data...
Matthew Wild [Wed, 3 Sep 2014 17:49:41 +0000 (18:49 +0100)]
net.http.parser: Support status code 101 and allow handling of the received data by someone else

9 years agonet.server_select: 'listener'->'listeners' (fixes undefined global access)
Matthew Wild [Tue, 2 Sep 2014 16:23:44 +0000 (17:23 +0100)]
net.server_select: 'listener'->'listeners' (fixes undefined global access)

9 years agonet.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net...
Matthew Wild [Fri, 29 Aug 2014 10:54:34 +0000 (11:54 +0100)]
net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent)

9 years agonet.server_{select,event}: Add 'ondetach' callback for listener objects, to notify...
Matthew Wild [Fri, 29 Aug 2014 10:39:56 +0000 (11:39 +0100)]
net.server_{select,event}: Add 'ondetach' callback for listener objects, to notify them when another listener is being assigned to a connection

9 years agomod_s2s: Close offending s2s streams missing an 'id' attribute with a stream error...
Kim Alvefur [Tue, 2 Sep 2014 15:24:25 +0000 (17:24 +0200)]
mod_s2s: Close offending s2s streams missing an 'id' attribute with a stream error instead of throwing an unhandled error

9 years agoTagging 0.9.5
Matthew Wild [Thu, 28 Aug 2014 11:22:39 +0000 (12:22 +0100)]
Tagging 0.9.5

9 years agoutil.filters: Ignore filters being added twice (fixes issues on removal)
Matthew Wild [Thu, 28 Aug 2014 08:20:33 +0000 (09:20 +0100)]
util.filters: Ignore filters being added twice (fixes issues on removal)

9 years agomod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)
Matthew Wild [Thu, 28 Aug 2014 08:17:07 +0000 (09:17 +0100)]
mod_privacy: Fix to correctly sort privacy list rules by order (thanks Flow)

9 years agomod_c2s, mod_s2s: Log received invalid stream headers
Matthew Wild [Sat, 23 Aug 2014 08:29:17 +0000 (09:29 +0100)]
mod_c2s, mod_s2s: Log received invalid stream headers

9 years agoutil.xmppstream: When error is 'no-stream', pass the received tagname to the error...
Matthew Wild [Sat, 23 Aug 2014 08:22:05 +0000 (09:22 +0100)]
util.xmppstream: When error is 'no-stream', pass the received tagname to the error handler

9 years agomod_s2s: Reset stream ID when resetting stream [compliance]
Kim Alvefur [Wed, 27 Aug 2014 11:20:08 +0000 (13:20 +0200)]
mod_s2s: Reset stream ID when resetting stream [compliance]

9 years agomodulemanager: Reduce warning to debug level message about modules already being...
Kim Alvefur [Wed, 27 Aug 2014 08:46:22 +0000 (10:46 +0200)]
modulemanager: Reduce warning to debug level message about modules already being loaded, it's probably just module:depends()

9 years agonet.http.server: Comment out a log message
Kim Alvefur [Wed, 27 Aug 2014 08:44:45 +0000 (10:44 +0200)]
net.http.server: Comment out a log message

9 years agomod_s2s: Mark stream as opened earlier for outgoing connections, fixes double stream...
Kim Alvefur [Tue, 26 Aug 2014 19:50:08 +0000 (21:50 +0200)]
mod_s2s: Mark stream as opened earlier for outgoing connections, fixes double stream headers on policy failures

9 years agomod_compression: Handle compression setup errors by logging a warning about it (fixes...
Kim Alvefur [Tue, 26 Aug 2014 10:19:27 +0000 (12:19 +0200)]
mod_compression: Handle compression setup errors by logging a warning about it (fixes #408)

9 years agomod_posix: Make sure that 'pidfile' is a string
Kim Alvefur [Tue, 26 Aug 2014 10:02:41 +0000 (12:02 +0200)]
mod_posix: Make sure that 'pidfile' is a string

9 years agoprosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise
Kim Alvefur [Tue, 26 Aug 2014 10:00:51 +0000 (12:00 +0200)]
prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise

9 years agoprosodyctl: Remove nonsensical warning
Matthew Wild [Thu, 31 Jul 2014 05:59:12 +0000 (06:59 +0100)]
prosodyctl: Remove nonsensical warning

9 years agoprosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser
Matthew Wild [Thu, 31 Jul 2014 05:58:15 +0000 (06:58 +0100)]
prosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser

9 years agoconfigmanager: nameprep VirtualHost and Component names
Matthew Wild [Thu, 31 Jul 2014 05:56:21 +0000 (06:56 +0100)]
configmanager: nameprep VirtualHost and Component names

9 years agonet.server_select/event: Switch sender mode to *a when reading, to make sure we get...
Matthew Wild [Fri, 25 Jul 2014 12:53:39 +0000 (13:53 +0100)]
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data

9 years agomod_admin_telnet: Fix dns:(add,set)nameservers()
Kim Alvefur [Fri, 25 Jul 2014 11:59:17 +0000 (13:59 +0200)]
mod_admin_telnet: Fix dns:(add,set)nameservers()

9 years agonet.dns: Remove unused obsolete code
Matthew Wild [Fri, 25 Jul 2014 11:54:31 +0000 (12:54 +0100)]
net.dns: Remove unused obsolete code

9 years agonet.dns: Ensure all pending requests get notified of a timeout when looking up a...
Matthew Wild [Fri, 25 Jul 2014 11:08:07 +0000 (12:08 +0100)]
net.dns: Ensure all pending requests get notified of a timeout when looking up a record (fix for d122420542fb)

9 years agoprosodyctl: Show relative paths in about
Kim Alvefur [Fri, 4 Jul 2014 21:13:51 +0000 (23:13 +0200)]
prosodyctl: Show relative paths in about

9 years agoBacked out 35ebcb733c4c
Kim Alvefur [Mon, 23 Mar 2015 17:42:11 +0000 (18:42 +0100)]
Backed out 35ebcb733c4c

9 years agostatsmanager: Fire event at the start of collection to allow for polling
Kim Alvefur [Tue, 10 Mar 2015 15:26:25 +0000 (16:26 +0100)]
statsmanager: Fire event at the start of collection to allow for polling

9 years agoMerge 0.9->0.10
Matthew Wild [Tue, 24 Feb 2015 15:22:09 +0000 (15:22 +0000)]
Merge 0.9->0.10

9 years agostatsmanager: Perform an initial collection right after startup is completed
Kim Alvefur [Sun, 22 Feb 2015 17:44:48 +0000 (18:44 +0100)]
statsmanager: Perform an initial collection right after startup is completed

9 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 21 Feb 2015 09:34:56 +0000 (10:34 +0100)]
Merge 0.9->0.10

9 years agocertmanager: Fix compat for MattJs old LuaSec fork
Kim Alvefur [Thu, 5 Feb 2015 16:23:53 +0000 (17:23 +0100)]
certmanager: Fix compat for MattJs old LuaSec fork

9 years agocertmanager: Fix previous commit
Kim Alvefur [Thu, 5 Feb 2015 16:21:05 +0000 (17:21 +0100)]
certmanager: Fix previous commit

9 years agocertmanager: Limit certificate chain depth to 9
Kim Alvefur [Thu, 5 Feb 2015 15:59:34 +0000 (16:59 +0100)]
certmanager: Limit certificate chain depth to 9

9 years agocertmanager: Options that appear to be available since LuaSec 0.2
Kim Alvefur [Thu, 5 Feb 2015 15:56:28 +0000 (16:56 +0100)]
certmanager: Options that appear to be available since LuaSec 0.2

9 years agocertmanager: Improve "detection" of features that depend on LuaSec version
Kim Alvefur [Thu, 5 Feb 2015 15:20:50 +0000 (16:20 +0100)]
certmanager: Improve "detection" of features that depend on LuaSec version

9 years agocertmanager: Add locals for ssl.context and ssl.x509
Kim Alvefur [Thu, 5 Feb 2015 14:14:35 +0000 (15:14 +0100)]
certmanager: Add locals for ssl.context and ssl.x509

9 years agocertmanager: Early return from the entire module if LuaSec is unavailable
Kim Alvefur [Thu, 5 Feb 2015 14:10:23 +0000 (15:10 +0100)]
certmanager: Early return from the entire module if LuaSec is unavailable

9 years agoMerge with 0.10
Matthew Wild [Sat, 31 Jan 2015 12:25:00 +0000 (12:25 +0000)]
Merge with 0.10

9 years agosessionmanager: Add pre-resource-bind event that would let plugins have a say in...
Kim Alvefur [Fri, 30 Jan 2015 14:38:54 +0000 (15:38 +0100)]
sessionmanager: Add pre-resource-bind event that would let plugins have a say in resource binding

9 years agoutil.statistics: Return 0 as percentile if data out of range
Matthew Wild [Fri, 30 Jan 2015 14:21:51 +0000 (14:21 +0000)]
util.statistics: Return 0 as percentile if data out of range

9 years agoMerge 0.9->0.10
Kim Alvefur [Mon, 26 Jan 2015 14:25:16 +0000 (15:25 +0100)]
Merge 0.9->0.10

9 years agomoduleapi: Module API for statsmanager
Matthew Wild [Wed, 21 Jan 2015 01:28:12 +0000 (01:28 +0000)]
moduleapi: Module API for statsmanager

9 years agostatsmanager, util.statistics: API changes, remove debugging
Matthew Wild [Wed, 21 Jan 2015 01:26:06 +0000 (01:26 +0000)]
statsmanager, util.statistics: API changes, remove debugging

9 years agostatsmanager, prosody: New core module and API for gathering statistics about the...
Matthew Wild [Tue, 20 Jan 2015 12:33:20 +0000 (12:33 +0000)]
statsmanager, prosody: New core module and API for gathering statistics about the running server

9 years agoutil.statistics: New library for gathering various kinds of statistics
Matthew Wild [Tue, 20 Jan 2015 12:31:32 +0000 (12:31 +0000)]
util.statistics: New library for gathering various kinds of statistics

9 years agostoragemanager: Remove unused import of error()
Matthew Wild [Tue, 20 Jan 2015 11:32:14 +0000 (11:32 +0000)]
storagemanager: Remove unused import of error()

9 years agosessionmanager: Access bare_session and full_sessions through 'prosody'
Matthew Wild [Tue, 20 Jan 2015 11:31:58 +0000 (11:31 +0000)]
sessionmanager: Access bare_session and full_sessions through 'prosody'

9 years agorostermanager: Access bare_sessions through prosody.bare_sessions
Matthew Wild [Tue, 20 Jan 2015 11:31:30 +0000 (11:31 +0000)]
rostermanager: Access bare_sessions through prosody.bare_sessions

9 years agoportmanager: Remove unused import of pairs()
Matthew Wild [Tue, 20 Jan 2015 11:31:04 +0000 (11:31 +0000)]
portmanager: Remove unused import of pairs()

9 years agohostmanager: Remove unused import of util.uuid
Matthew Wild [Tue, 20 Jan 2015 11:30:07 +0000 (11:30 +0000)]
hostmanager: Remove unused import of util.uuid

9 years agocertmanager: Make global variable access explicit
Matthew Wild [Tue, 20 Jan 2015 11:29:38 +0000 (11:29 +0000)]
certmanager: Make global variable access explicit

9 years agomod_carbons: Import XEP-0280 implementation from prosody-modules (sans compat with...
Kim Alvefur [Fri, 16 Jan 2015 13:02:14 +0000 (14:02 +0100)]
mod_carbons: Import XEP-0280 implementation from prosody-modules (sans compat with older versions of the protocol)

9 years agoutil.hex: Pedantic optimization, 1 table lookup per byte instead of 3 function calls...
Kim Alvefur [Mon, 12 Jan 2015 14:10:37 +0000 (15:10 +0100)]
util.hex: Pedantic optimization, 1 table lookup per byte instead of 3 function calls makes it go faster

9 years agomod_pep: Fire an event when an item is published
Kim Alvefur [Sat, 20 Dec 2014 20:34:59 +0000 (21:34 +0100)]
mod_pep: Fire an event when an item is published

9 years agomod_admin_telnet: Use the session-specific print function
Kim Alvefur [Sat, 13 Dec 2014 15:40:55 +0000 (16:40 +0100)]
mod_admin_telnet: Use the session-specific print function