prosody.git
12 years agonet.http, httpclient_listener: Move request sending from net.http to onconnect()...
Matthew Wild [Sat, 20 Aug 2011 19:10:04 +0000 (15:10 -0400)]
net.http, httpclient_listener: Move request sending from net.http to onconnect() handler, and add support for HTTPS requests to net.http

12 years agonet.http: Whitespace fixes
Matthew Wild [Sat, 20 Aug 2011 19:08:54 +0000 (15:08 -0400)]
net.http: Whitespace fixes

12 years agonet.http: Small fix to prevent traceback when connection fails before sending the...
Matthew Wild [Sat, 20 Aug 2011 19:08:21 +0000 (15:08 -0400)]
net.http: Small fix to prevent traceback when connection fails before sending the request

12 years agonet.server_select: Merge straight-SSL and starttls code paths, also fixes onconnect...
Matthew Wild [Sat, 20 Aug 2011 19:06:14 +0000 (15:06 -0400)]
net.server_select: Merge straight-SSL and starttls code paths, also fixes onconnect being called before handshake completion for straight-SSL

12 years agonet.server_select: Update error logging logic during SSL handshake (now shows correct...
Matthew Wild [Sat, 20 Aug 2011 19:04:17 +0000 (15:04 -0400)]
net.server_select: Update error logging logic during SSL handshake (now shows correctly when a handshake exceeded max. allowed iterations)

12 years agonet.server_select: Small fix to SSL handshake logic, read/wrote were being checked...
Matthew Wild [Sat, 20 Aug 2011 19:03:16 +0000 (15:03 -0400)]
net.server_select: Small fix to SSL handshake logic, read/wrote were being checked despite it not being possible for them to be other than nil

12 years agonet.server_select: Do not set 'ssl' flag simply when assigning an sslctx to a handler...
Matthew Wild [Sat, 20 Aug 2011 18:59:31 +0000 (14:59 -0400)]
net.server_select: Do not set 'ssl' flag simply when assigning an sslctx to a handler, it doesn't mean anything

12 years agomod_uptime: Use module:hook_global()
Matthew Wild [Sun, 14 Aug 2011 18:00:54 +0000 (14:00 -0400)]
mod_uptime: Use module:hook_global()

12 years agomodulemanager: Add module:hook_global(name, handler, priority) to hook global (server...
Matthew Wild [Sun, 14 Aug 2011 17:56:13 +0000 (13:56 -0400)]
modulemanager: Add module:hook_global(name, handler, priority) to hook global (server-wide) events

12 years agomod_pubsub: Add 'publisher' affiliation (can't create/configure nodes, can do everyth...
Matthew Wild [Sun, 14 Aug 2011 17:39:40 +0000 (13:39 -0400)]
mod_pubsub: Add 'publisher' affiliation (can't create/configure nodes, can do everything else)

12 years agomod_pubsub: Send node items to new subscribers
Matthew Wild [Sun, 14 Aug 2011 17:37:42 +0000 (13:37 -0400)]
mod_pubsub: Send node items to new subscribers

12 years agomod_pubsub: Add newline at end of file
Matthew Wild [Sun, 14 Aug 2011 17:37:08 +0000 (13:37 -0400)]
mod_pubsub: Add newline at end of file

12 years agomod_pubsub: Handle options tag in subscription request (currently doesn't work as...
Matthew Wild [Sun, 14 Aug 2011 17:36:54 +0000 (13:36 -0400)]
mod_pubsub: Handle options tag in subscription request (currently doesn't work as options_form is not defined)

12 years agotests/test.lua, tests/test_net_http.lua: Tests for net.http's url and form encoding...
Matthew Wild [Wed, 10 Aug 2011 21:49:37 +0000 (17:49 -0400)]
tests/test.lua, tests/test_net_http.lua: Tests for net.http's url and form encoding/decoding functions

12 years agonet.http: Add formdecode to decode an urlencoded form
Matthew Wild [Wed, 10 Aug 2011 21:49:10 +0000 (17:49 -0400)]
net.http: Add formdecode to decode an urlencoded form

12 years agocore.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions
Kim Alvefur [Mon, 8 Aug 2011 16:23:53 +0000 (18:23 +0200)]
core.modulemanager, mod_disco: Add support for XEP-0128: Service Discovery Extensions

12 years agoprosodyctl: Update message on reload success
Matthew Wild [Thu, 4 Aug 2011 18:00:24 +0000 (14:00 -0400)]
prosodyctl: Update message on reload success

12 years agoAdd "reload" command to prosodyctl
Vladimir Protasov [Thu, 4 Aug 2011 17:26:15 +0000 (21:26 +0400)]
Add "reload" command to prosodyctl

12 years agoprosodyctl: Remove typo'd '+' after LuaRocks 1.x version (thanks spoobie)
Matthew Wild [Wed, 27 Jul 2011 18:25:05 +0000 (14:25 -0400)]
prosodyctl: Remove typo'd '+' after LuaRocks 1.x version (thanks spoobie)

12 years agoprosodyctl: Add info about the presence of LuaRocks to 'about' command
Matthew Wild [Wed, 27 Jul 2011 18:06:46 +0000 (14:06 -0400)]
prosodyctl: Add info about the presence of LuaRocks to 'about' command

12 years agomod_bosh: Update to use typed variants of module:get_option(), makes it more tolerant...
Matthew Wild [Wed, 20 Jul 2011 21:22:21 +0000 (17:22 -0400)]
mod_bosh: Update to use typed variants of module:get_option(), makes it more tolerant to config variations and simplifies the code.

12 years agoprosodyctl: Fix 'about' command to not show up where it shouldn't...
Matthew Wild [Tue, 19 Jul 2011 16:51:59 +0000 (12:51 -0400)]
prosodyctl: Fix 'about' command to not show up where it shouldn't...

13 years agoutil.x509: Update references to published RFCs
Paul Aurich [Sun, 22 May 2011 21:06:18 +0000 (14:06 -0700)]
util.x509: Update references to published RFCs

For TLS-CERTS, see http://tools.ietf.org/rfcdiff?url1=draft-saintandre-tls-server-id-check-10.txt&url2=rfc6125.txt

13 years agos2smanager: Update to newer luasec
Paul Aurich [Tue, 7 Dec 2010 05:46:50 +0000 (21:46 -0800)]
s2smanager: Update to newer luasec

13 years agomod_admin_telnet: Update to newer luasec.
Paul Aurich [Tue, 7 Dec 2010 05:46:36 +0000 (21:46 -0800)]
mod_admin_telnet: Update to newer luasec.

Matthew is responsible for figuring out a nice way to print out the whole chain O:)

13 years agomod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra...
Matthew Wild [Tue, 28 Jun 2011 16:00:50 +0000 (17:00 +0100)]
mod_bosh: Fix logging when no sid present, fix a missing semi-colon, avoid an extra useless table lookup (thanks Thomas)

13 years agoMUC: Change error type of badly-formatted stanza from 'auth' to 'modify' (thanks...
Matthew Wild [Mon, 27 Jun 2011 19:36:18 +0000 (20:36 +0100)]
MUC: Change error type of badly-formatted stanza from 'auth' to 'modify' (thanks Andrew)

13 years agosessionmanager: Remove dependency on util.import
Matthew Wild [Mon, 27 Jun 2011 13:57:31 +0000 (14:57 +0100)]
sessionmanager: Remove dependency on util.import

13 years agoprosodyctl: Add 'about' command to list Prosody version, directories, and various...
Matthew Wild [Mon, 27 Jun 2011 11:02:50 +0000 (12:02 +0100)]
prosodyctl: Add 'about' command to list Prosody version, directories, and various other stuff

13 years agomod_component: Clearer log message when bouncing a stanza from a component that is...
Matthew Wild [Sat, 18 Jun 2011 13:04:56 +0000 (14:04 +0100)]
mod_component: Clearer log message when bouncing a stanza from a component that is not connected (thanks MK)

13 years agoconnlistener, server_select, prosody: Add support for binding to multiple addresses
Florian Zeitz [Wed, 15 Jun 2011 21:44:18 +0000 (23:44 +0200)]
connlistener, server_select, prosody: Add support for binding to multiple addresses

13 years agoMerge 0.8->trunk
Matthew Wild [Sun, 12 Jun 2011 21:21:10 +0000 (22:21 +0100)]
Merge 0.8->trunk

13 years agoTagging 0.8.2
Matthew Wild [Sun, 12 Jun 2011 19:35:53 +0000 (20:35 +0100)]
Tagging 0.8.2

13 years agoMerge 0.8->trunk
Matthew Wild [Sat, 11 Jun 2011 01:17:11 +0000 (02:17 +0100)]
Merge 0.8->trunk

13 years agomod_storage_sql: Add extra logging and error handling around table creation
Matthew Wild [Sat, 11 Jun 2011 01:16:26 +0000 (02:16 +0100)]
mod_storage_sql: Add extra logging and error handling around table creation

13 years agomod_storage_sql: Add sql_manage_tables to disable table creation/updating.
Matthew Wild [Sat, 11 Jun 2011 01:15:38 +0000 (02:15 +0100)]
mod_storage_sql: Add sql_manage_tables to disable table creation/updating.

13 years agoMerge 0.8->trunk
Matthew Wild [Tue, 7 Jun 2011 00:29:34 +0000 (01:29 +0100)]
Merge 0.8->trunk

13 years agoBackout bcdff2b1d3ec from 0.8 - going to commit a slightly cleaner patch for the...
Matthew Wild [Tue, 7 Jun 2011 00:29:02 +0000 (01:29 +0100)]
Backout bcdff2b1d3ec from 0.8 - going to commit a slightly cleaner patch for the same issue to trunk

13 years agomod_dialback: More robust handling of multiple outstanding dialback requests for...
Matthew Wild [Mon, 6 Jun 2011 21:51:33 +0000 (22:51 +0100)]
mod_dialback: More robust handling of multiple outstanding dialback requests for the same domain, fixes intermittent s2s with some (patched?) ejabberds

13 years agos2smanager: Fix letter case in log message (thanks darkrain)
Matthew Wild [Sun, 5 Jun 2011 22:55:16 +0000 (23:55 +0100)]
s2smanager: Fix letter case in log message (thanks darkrain)

13 years agoBackout commit d6366294f618 which I was testing and didn't mean to push to 0.8
Matthew Wild [Sun, 5 Jun 2011 11:28:49 +0000 (12:28 +0100)]
Backout commit d6366294f618 which I was testing and didn't mean to push to 0.8

13 years agomod_groups: Persist changes to mod_groups contacts (e.g. moving groups)
Christian Haase [Sun, 5 Jun 2011 11:18:24 +0000 (12:18 +0100)]
mod_groups: Persist changes to mod_groups contacts (e.g. moving groups)

13 years agoMerge 0.8->trunk
Matthew Wild [Sun, 5 Jun 2011 00:54:06 +0000 (01:54 +0100)]
Merge 0.8->trunk

13 years agoutil.xmppstream: Check to make sure parser.stop is present before calling it.
Waqas Hussain [Sat, 4 Jun 2011 20:57:43 +0000 (01:57 +0500)]
util.xmppstream: Check to make sure parser.stop is present before calling it.

13 years agoCOPYING: Reflow the all-caps text. It was wrapping really badly in the Windows installer.
Waqas Hussain [Sat, 4 Jun 2011 20:52:48 +0000 (01:52 +0500)]
COPYING: Reflow the all-caps text. It was wrapping really badly in the Windows installer.

13 years agoCOPYING: Update copyright year; it's 2011 already.
Waqas Hussain [Sat, 4 Jun 2011 20:51:06 +0000 (01:51 +0500)]
COPYING: Update copyright year; it's 2011 already.

13 years agoutil.encodings: Fix small typo introduced in 7f789266b741
Matthew Wild [Sat, 4 Jun 2011 18:18:11 +0000 (19:18 +0100)]
util.encodings: Fix small typo introduced in 7f789266b741

13 years agomod_component: Small code clarity fix
Matthew Wild [Fri, 3 Jun 2011 23:29:55 +0000 (00:29 +0100)]
mod_component: Small code clarity fix

13 years agoMerge with Florob
Matthew Wild [Fri, 3 Jun 2011 04:36:44 +0000 (05:36 +0100)]
Merge with Florob

13 years agoMerge 0.8->trunk
Matthew Wild [Fri, 3 Jun 2011 04:35:22 +0000 (05:35 +0100)]
Merge 0.8->trunk

13 years agoTagging 0.8.1
Matthew Wild [Fri, 3 Jun 2011 04:34:38 +0000 (05:34 +0100)]
Tagging 0.8.1

13 years agomod_storage_sql: Log error when failing to update MySQL schema
Matthew Wild [Fri, 3 Jun 2011 04:34:22 +0000 (05:34 +0100)]
mod_storage_sql: Log error when failing to update MySQL schema

13 years agomod_admin_adhoc: Only allow global admins to shut the server down
Florian Zeitz [Fri, 3 Jun 2011 00:01:31 +0000 (02:01 +0200)]
mod_admin_adhoc: Only allow global admins to shut the server down

13 years agoMerge 0.8->trunk
Matthew Wild [Thu, 2 Jun 2011 23:58:09 +0000 (00:58 +0100)]
Merge 0.8->trunk

13 years agomigrator/prosody_sql.lua: Create (and upgrade) MySQL tables to use MEDIUMTEXT for...
Matthew Wild [Thu, 2 Jun 2011 23:57:25 +0000 (00:57 +0100)]
migrator/prosody_sql.lua: Create (and upgrade) MySQL tables to use MEDIUMTEXT for the 'value' column to avoid truncation

13 years agomod_admin_adhoc: Add "Reload configuration" command
Florian Zeitz [Thu, 2 Jun 2011 19:56:44 +0000 (21:56 +0200)]
mod_admin_adhoc: Add "Reload configuration" command

13 years agomod_adhoc: Add support for commands only executable by global administrators
Florian Zeitz [Thu, 2 Jun 2011 19:56:24 +0000 (21:56 +0200)]
mod_adhoc: Add support for commands only executable by global administrators

13 years agomigrator/prosody_files: Don't choke on empty data stores for a user (thanks @eoranged)
Matthew Wild [Thu, 2 Jun 2011 16:18:23 +0000 (17:18 +0100)]
migrator/prosody_files: Don't choke on empty data stores for a user (thanks @eoranged)

13 years agoMerge 0.8->trunk
Matthew Wild [Thu, 2 Jun 2011 14:28:41 +0000 (15:28 +0100)]
Merge 0.8->trunk

13 years agoMerge 0.7->0.8
Matthew Wild [Thu, 2 Jun 2011 14:28:12 +0000 (15:28 +0100)]
Merge 0.7->0.8

13 years agoMerge 0.6->0.7
Matthew Wild [Thu, 2 Jun 2011 14:23:58 +0000 (15:23 +0100)]
Merge 0.6->0.7

13 years agoxmlhandlers/xmppstream: Stop the parser when encountering restricted XML, completing...
Matthew Wild [Thu, 2 Jun 2011 14:19:05 +0000 (15:19 +0100)]
xmlhandlers/xmppstream: Stop the parser when encountering restricted XML, completing the fix for the billion laughs attack

13 years agoMerge 0.8->trunk
Matthew Wild [Thu, 2 Jun 2011 01:31:18 +0000 (02:31 +0100)]
Merge 0.8->trunk

13 years agomod_storage_sql: Switch to MEDIUMTEXT for the 'value' column when using MySQL, as...
Matthew Wild [Thu, 2 Jun 2011 01:30:26 +0000 (02:30 +0100)]
mod_storage_sql: Switch to MEDIUMTEXT for the 'value' column when using MySQL, as it imposes a 64K limit otherwise, potentially truncating data. Automatically upgrades existing tables.

13 years agoutil.json: Fixed handling of truncated JSON.
Waqas Hussain [Thu, 2 Jun 2011 00:36:15 +0000 (05:36 +0500)]
util.json: Fixed handling of truncated JSON.

13 years agoMerge 0.8->trunk
Matthew Wild [Wed, 1 Jun 2011 23:26:48 +0000 (00:26 +0100)]
Merge 0.8->trunk

13 years agoMerge 0.7->0.8
Matthew Wild [Wed, 1 Jun 2011 23:26:23 +0000 (00:26 +0100)]
Merge 0.7->0.8

13 years agoMerge 0.6->0.7
Matthew Wild [Wed, 1 Jun 2011 23:25:44 +0000 (00:25 +0100)]
Merge 0.6->0.7

13 years agoxmlhandlers: Don't restrict CDATA
Matthew Wild [Wed, 1 Jun 2011 23:23:41 +0000 (00:23 +0100)]
xmlhandlers: Don't restrict CDATA

13 years agoMerge 0.8->trunk
Matthew Wild [Wed, 1 Jun 2011 23:05:33 +0000 (00:05 +0100)]
Merge 0.8->trunk

13 years agoMerge 0.7->0.8
Matthew Wild [Wed, 1 Jun 2011 22:26:39 +0000 (23:26 +0100)]
Merge 0.7->0.8

13 years agoMerge 0.6->0.7
Matthew Wild [Wed, 1 Jun 2011 22:25:24 +0000 (23:25 +0100)]
Merge 0.6->0.7

13 years agoxmlhandlers: Reject XML comments, processing instructions and (if supported by LuaExp...
Matthew Wild [Wed, 1 Jun 2011 22:20:54 +0000 (23:20 +0100)]
xmlhandlers: Reject XML comments, processing instructions and (if supported by LuaExpat) DTDs. If not supported, log a warning. [Backport of 7cc426988bcc in trunk]

13 years agoutil.xmppstream: Reject XML comments, processing instructions and (if supported by...
Matthew Wild [Wed, 1 Jun 2011 22:02:10 +0000 (23:02 +0100)]
util.xmppstream: Reject XML comments, processing instructions and (if supported by LuaExpat) DTDs. If not supported, log a warning.

13 years agoutil.xmppstream: Reject XML comments, processing instructions and (if supported by...
Matthew Wild [Wed, 1 Jun 2011 22:02:10 +0000 (23:02 +0100)]
util.xmppstream: Reject XML comments, processing instructions and (if supported by LuaExpat) DTDs. If not supported, log a warning.

13 years agoutil.encodings: Check return values before proceeding
Paul Aurich [Sun, 22 May 2011 23:14:10 +0000 (16:14 -0700)]
util.encodings: Check return values before proceeding

13 years agoutil.encodings: Swap code order ("ifndef" bugs me)
Paul Aurich [Sun, 22 May 2011 22:40:16 +0000 (15:40 -0700)]
util.encodings: Swap code order ("ifndef" bugs me)

13 years agoutil.encodings: Fix idna.to_unicode
Paul Aurich [Sun, 22 May 2011 22:26:03 +0000 (15:26 -0700)]
util.encodings: Fix idna.to_unicode

13 years agomod_register: Change the default for 'allow_registration' from true to false, most...
Matthew Wild [Fri, 27 May 2011 23:23:05 +0000 (00:23 +0100)]
mod_register: Change the default for 'allow_registration' from true to false, most users shouldn't be affected as allow_registration is already explicitly set in the default config file.

13 years agomod_register: Move allow_registration option into an upvalue for efficiency (now...
Matthew Wild [Fri, 27 May 2011 23:21:12 +0000 (00:21 +0100)]
mod_register: Move allow_registration option into an upvalue for efficiency (now it is being checked on every new c2s stream)

13 years agoAdvertise in-band registration support.
Glenn Maynard [Fri, 27 May 2011 16:04:43 +0000 (17:04 +0100)]
Advertise in-band registration support.
Implement optional registration support advertisement according to
XEP-0077 sec8:

<features>
    <register xmlns='http://jabber.org/features/iq-register'/>
</features>
---
 plugins/mod_register.lua |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

13 years agonet.dns: Support for resolving AAAA records
Matthew Wild [Mon, 16 May 2011 18:33:02 +0000 (19:33 +0100)]
net.dns: Support for resolving AAAA records

13 years agoMUC: Include occupant count in room disco#info response.
Waqas Hussain [Sat, 7 May 2011 16:17:03 +0000 (21:17 +0500)]
MUC: Include occupant count in room disco#info response.

13 years agomod_roster: Remove <optional/> from roster version stream feature, as per latest...
Waqas Hussain [Sat, 7 May 2011 16:16:25 +0000 (21:16 +0500)]
mod_roster: Remove <optional/> from roster version stream feature, as per latest specs.

13 years agomod_dialback: Remove <optional/> from stream feature, as per latest specs.
Waqas Hussain [Sat, 7 May 2011 16:16:06 +0000 (21:16 +0500)]
mod_dialback: Remove <optional/> from stream feature, as per latest specs.

13 years agosessionmanager: Log reason when destroying a session.
Waqas Hussain [Sat, 7 May 2011 16:15:34 +0000 (21:15 +0500)]
sessionmanager: Log reason when destroying a session.

13 years agos2smanager: Log reason when destroying a session.
Waqas Hussain [Sat, 7 May 2011 16:15:13 +0000 (21:15 +0500)]
s2smanager: Log reason when destroying a session.

13 years agoMerge 0.8->trunk
Matthew Wild [Wed, 4 May 2011 22:13:50 +0000 (23:13 +0100)]
Merge 0.8->trunk

13 years agomod_muc: Remove room from memory when it is made non-persistent and is empty
Matthew Wild [Wed, 4 May 2011 22:12:53 +0000 (23:12 +0100)]
mod_muc: Remove room from memory when it is made non-persistent and is empty

13 years agoMerge 0.8->trunk
Matthew Wild [Wed, 20 Apr 2011 17:20:29 +0000 (18:20 +0100)]
Merge 0.8->trunk

13 years agomod_legacyauth: Disallow on unencrypted connections by default, heed allow_unencrypte...
Matthew Wild [Wed, 20 Apr 2011 17:19:28 +0000 (18:19 +0100)]
mod_legacyauth: Disallow on unencrypted connections by default, heed allow_unencrypted_plain_auth config option (thanks Maranda/Zash)

13 years agoMerge 0.8->trunk
Matthew Wild [Mon, 18 Apr 2011 19:39:37 +0000 (20:39 +0100)]
Merge 0.8->trunk

13 years agoTagging 0.8.1
Matthew Wild [Mon, 18 Apr 2011 19:38:44 +0000 (20:38 +0100)]
Tagging 0.8.1

13 years agoMerge 0.8->trunk
Matthew Wild [Fri, 15 Apr 2011 21:46:57 +0000 (22:46 +0100)]
Merge 0.8->trunk

13 years agoMerge Zash->trunk
Matthew Wild [Fri, 15 Apr 2011 21:45:06 +0000 (22:45 +0100)]
Merge Zash->trunk

13 years agoutil.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
Matthew Wild [Fri, 15 Apr 2011 21:39:53 +0000 (22:39 +0100)]
util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)

13 years agoutil.datetime: Fix timestamp parsing when in DST (thanks xnyhps)
Matthew Wild [Fri, 15 Apr 2011 21:39:53 +0000 (22:39 +0100)]
util.datetime: Fix timestamp parsing when in DST (thanks xnyhps)

13 years agonet.dns: Fix TXT records
Kim Alvefur [Thu, 14 Apr 2011 22:54:10 +0000 (00:54 +0200)]
net.dns: Fix TXT records

13 years agoprosody: Add sanity_check() to startup sequence. Check that we have at least one...
Matthew Wild [Thu, 14 Apr 2011 21:40:50 +0000 (22:40 +0100)]
prosody: Add sanity_check() to startup sequence. Check that we have at least one vhost enabled to avoid Bad Things.

13 years agoprosody: Add sanity_check() to startup sequence. Check that we have at least one...
Matthew Wild [Thu, 14 Apr 2011 21:40:50 +0000 (22:40 +0100)]
prosody: Add sanity_check() to startup sequence. Check that we have at least one vhost enabled to avoid Bad Things.