prosody.git
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

9 years agomod_storage_sql2, util.sql: Set character encoding on every connect
Kim Alvefur [Thu, 11 Dec 2014 08:18:39 +0000 (09:18 +0100)]
mod_storage_sql2, util.sql: Set character encoding on every connect

9 years agomod_blocklist: Fix import
Kim Alvefur [Tue, 9 Dec 2014 18:36:34 +0000 (19:36 +0100)]
mod_blocklist: Fix import

9 years agomod_http: Log name and base URL of HTTP apps
Kim Alvefur [Mon, 8 Dec 2014 14:49:11 +0000 (15:49 +0100)]
mod_http: Log name and base URL of HTTP apps

9 years agonet.http.server: Log names of the events fired
Kim Alvefur [Mon, 8 Dec 2014 14:48:36 +0000 (15:48 +0100)]
net.http.server: Log names of the events fired

9 years agomod_bosh: Use util.async
Kim Alvefur [Sun, 7 Dec 2014 16:56:25 +0000 (17:56 +0100)]
mod_bosh: Use util.async

9 years agocertmanager, mod_tls: Return final ssl config as third return value (fix for c6caaa44...
Kim Alvefur [Sat, 22 Nov 2014 10:51:54 +0000 (11:51 +0100)]
certmanager, mod_tls: Return final ssl config as third return value (fix for c6caaa440e74, portmanager assumes non-falsy second return value is an error) (thanks deoren)

9 years agoMerge 0.9->0.10
Kim Alvefur [Thu, 20 Nov 2014 14:00:52 +0000 (15:00 +0100)]
Merge 0.9->0.10

9 years agomod_tls: Keep ssl config around and attach them to sessions
Kim Alvefur [Wed, 19 Nov 2014 13:47:49 +0000 (14:47 +0100)]
mod_tls: Keep ssl config around and attach them to sessions

9 years agocertmanager: Return final ssl config along with ssl context on success
Kim Alvefur [Wed, 19 Nov 2014 13:47:03 +0000 (14:47 +0100)]
certmanager: Return final ssl config along with ssl context on success

9 years agomod_saslauth: Make it easier to support multiple channel binding methonds
Kim Alvefur [Wed, 19 Nov 2014 13:45:20 +0000 (14:45 +0100)]
mod_saslauth: Make it easier to support multiple channel binding methonds

9 years agomod_saslauth: Break out tls-unique channel binding callback so it is instantiated...
Kim Alvefur [Wed, 19 Nov 2014 13:44:41 +0000 (14:44 +0100)]
mod_saslauth: Break out tls-unique channel binding callback so it is instantiated once

9 years agomod_saslauth: Keep sasl_handler in a local variable
Kim Alvefur [Wed, 19 Nov 2014 13:37:45 +0000 (14:37 +0100)]
mod_saslauth: Keep sasl_handler in a local variable

9 years agomod_pubsub: Add support for including the publisher in item broadcasts
Philipp Hancke [Thu, 20 Nov 2014 09:01:45 +0000 (09:01 +0000)]
mod_pubsub: Add support for including the publisher in item broadcasts

9 years agoMerge 0.9 -> 0.10
Kim Alvefur [Sun, 9 Nov 2014 19:30:04 +0000 (20:30 +0100)]
Merge 0.9 -> 0.10

9 years agoutil.paths: Add function for joining path segments
Kim Alvefur [Sat, 8 Nov 2014 11:28:49 +0000 (12:28 +0100)]
util.paths: Add function for joining path segments

9 years agomod_http: For URLs that end with / or wildcard handlers, add a low-priority redirect...
Kim Alvefur [Tue, 4 Nov 2014 16:48:17 +0000 (17:48 +0100)]
mod_http: For URLs that end with / or wildcard handlers, add a low-priority redirect from without to with slash

9 years agomod_admin_telnet: Soft-reqire util.pposix for server:memory()
Kim Alvefur [Mon, 27 Oct 2014 10:12:08 +0000 (11:12 +0100)]
mod_admin_telnet: Soft-reqire util.pposix for server:memory()

9 years agoMerge 0.9->0.10
Kim Alvefur [Sun, 26 Oct 2014 19:57:06 +0000 (20:57 +0100)]
Merge 0.9->0.10

9 years agomod_blocklist: Don't send unavailable presence from unavailable sessions when blockin...
Kim Alvefur [Sun, 26 Oct 2014 15:29:50 +0000 (16:29 +0100)]
mod_blocklist: Don't send unavailable presence from unavailable sessions when blocking a contact

9 years agomod_blocklist: Only log message about migrating from mod_privacy when there is data...
Kim Alvefur [Sat, 25 Oct 2014 12:45:11 +0000 (14:45 +0200)]
mod_blocklist: Only log message about migrating from mod_privacy when there is data to migrate

9 years agomod_saslauth: Better name for config option
Kim Alvefur [Tue, 21 Oct 2014 14:41:28 +0000 (16:41 +0200)]
mod_saslauth: Better name for config option

9 years agomod_saslauth: Make it possible to disable certain mechanisms
Kim Alvefur [Tue, 21 Oct 2014 12:38:40 +0000 (14:38 +0200)]
mod_saslauth: Make it possible to disable certain mechanisms

9 years agomod_saslauth: Add LOGIN to mechanisms not allowed over unencrypted connections as...
Kim Alvefur [Tue, 21 Oct 2014 12:37:05 +0000 (14:37 +0200)]
mod_saslauth: Add LOGIN to mechanisms not allowed over unencrypted connections as it may be offered by 3rd party authentication plugins

9 years agomod_saslauth: Use a configurable set of mechanisms to not allow over unencrypted...
Kim Alvefur [Tue, 21 Oct 2014 12:35:32 +0000 (14:35 +0200)]
mod_saslauth: Use a configurable set of mechanisms to not allow over unencrypted connections

9 years agomod_saslauth: Log warning if no SASL mechanisms were offered
Kim Alvefur [Tue, 21 Oct 2014 10:57:56 +0000 (12:57 +0200)]
mod_saslauth: Log warning if no SASL mechanisms were offered

9 years agomod_saslauth: Use type-specific config option getters
Kim Alvefur [Tue, 21 Oct 2014 10:56:19 +0000 (12:56 +0200)]
mod_saslauth: Use type-specific config option getters

9 years agomod_legacyauth, mod_saslauth, mod_tls: Pass require_encryption as default option...
Kim Alvefur [Tue, 21 Oct 2014 10:49:03 +0000 (12:49 +0200)]
mod_legacyauth, mod_saslauth, mod_tls: Pass require_encryption as default option to s2s_require_encryption so the later overrides the former

9 years agoprosodyctl: Add 'require_encryption' to list of deprecated options pointed out by...
Kim Alvefur [Tue, 21 Oct 2014 10:47:53 +0000 (12:47 +0200)]
prosodyctl: Add 'require_encryption' to list of deprecated options pointed out by the check command

9 years agoMerge 0.9->0.10
Matthew Wild [Tue, 14 Oct 2014 09:59:27 +0000 (10:59 +0100)]
Merge 0.9->0.10

9 years agoprosody: Make getfenv() replacement for require() sandboxing local to avoid polluting...
Kim Alvefur [Mon, 13 Oct 2014 19:02:04 +0000 (21:02 +0200)]
prosody: Make getfenv() replacement for require() sandboxing local to avoid polluting the globals table

9 years agoMerge 0.9->0.10
Waqas Hussain [Wed, 8 Oct 2014 22:42:33 +0000 (18:42 -0400)]
Merge 0.9->0.10