prosody.git
12 years agoMerge with Zash
Matthew Wild [Wed, 2 Nov 2011 07:17:26 +0000 (07:17 +0000)]
Merge with Zash

12 years agoprosody: Ensure prosody.paths.config is never nil (certmanager.create_context fails...
Waqas Hussain [Tue, 1 Nov 2011 19:00:42 +0000 (00:00 +0500)]
prosody: Ensure prosody.paths.config is never nil (certmanager.create_context fails otherwise).

12 years agocertmanager: More informative logging.
Waqas Hussain [Tue, 1 Nov 2011 18:57:42 +0000 (23:57 +0500)]
certmanager: More informative logging.

12 years agoutil.jid: Added escape() and unescape().
Waqas Hussain [Tue, 1 Nov 2011 18:41:32 +0000 (23:41 +0500)]
util.jid: Added escape() and unescape().

12 years agoMerge with Zash
Matthew Wild [Wed, 26 Oct 2011 22:58:01 +0000 (18:58 -0400)]
Merge with Zash

12 years agoutil.json: Fix for single-line comments (thanks Norbert Kiesel)
Matthew Wild [Wed, 26 Oct 2011 22:55:06 +0000 (18:55 -0400)]
util.json: Fix for single-line comments (thanks Norbert Kiesel)

12 years agoMakefile: Fix making of prosody.version
Kim Alvefur [Sun, 23 Oct 2011 18:56:33 +0000 (20:56 +0200)]
Makefile: Fix making of prosody.version

12 years agoMakefile: Fix making of prosody.version
Kim Alvefur [Sun, 23 Oct 2011 18:56:33 +0000 (20:56 +0200)]
Makefile: Fix making of prosody.version

12 years agoMakefile: Merge identical rules and some other improvements.
Kim Alvefur [Mon, 17 Oct 2011 23:22:44 +0000 (01:22 +0200)]
Makefile: Merge identical rules and some other improvements.

12 years agoMakefile: Merge identical rules and some other improvements.
Kim Alvefur [Mon, 17 Oct 2011 23:22:44 +0000 (01:22 +0200)]
Makefile: Merge identical rules and some other improvements.

12 years agoutil.watchdog: Watchdog timer library
Matthew Wild [Fri, 21 Oct 2011 21:12:45 +0000 (17:12 -0400)]
util.watchdog: Watchdog timer library

12 years agonet.dns: Preserve metatable on manual cache purge
Matthew Wild [Wed, 19 Oct 2011 20:21:56 +0000 (16:21 -0400)]
net.dns: Preserve metatable on manual cache purge

12 years agonet.server_event, net.server_select: Fixed some global pollution.
Waqas Hussain [Thu, 13 Oct 2011 19:46:29 +0000 (00:46 +0500)]
net.server_event, net.server_select: Fixed some global pollution.

12 years agomod_register: Add support for additional registration fields
Florian Zeitz [Thu, 11 Aug 2011 22:01:35 +0000 (00:01 +0200)]
mod_register: Add support for additional registration fields

12 years agoutil.dataforms: Add field verification logic
Florian Zeitz [Thu, 11 Aug 2011 21:58:26 +0000 (23:58 +0200)]
util.dataforms: Add field verification logic

12 years agoMakefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile
Matthew Wild [Wed, 12 Oct 2011 23:51:50 +0000 (00:51 +0100)]
Makefile, util-src/Makefile: Add .PHONY, reorganise util-src/Makefile

12 years agomod_saslauth: Never send empty <mechanisms/>, for real this time.
Waqas Hussain [Wed, 12 Oct 2011 19:24:09 +0000 (00:24 +0500)]
mod_saslauth: Never send empty <mechanisms/>, for real this time.

12 years agomod_pep: Always include a 'from' attribute on service discovery requests to local...
Waqas Hussain [Wed, 12 Oct 2011 19:13:49 +0000 (00:13 +0500)]
mod_pep: Always include a 'from' attribute on service discovery requests to local clients (compatibility fix for OneTeam).

12 years agonet.server_select: Minor whitespace fix.
Waqas Hussain [Wed, 12 Oct 2011 19:11:17 +0000 (00:11 +0500)]
net.server_select: Minor whitespace fix.

12 years agomod_saslauth: Never send empty <mechanisms/>.
Waqas Hussain [Wed, 12 Oct 2011 19:10:02 +0000 (00:10 +0500)]
mod_saslauth: Never send empty <mechanisms/>.

12 years agomod_watchregistrations: Update to pass default options to module:get_option(), and...
Matthew Wild [Wed, 12 Oct 2011 02:48:48 +0000 (03:48 +0100)]
mod_watchregistrations: Update to pass default options to module:get_option(), and reformat the code a little

12 years agomod_motd: Update to use module:get_option_string
Matthew Wild [Tue, 27 Sep 2011 18:07:41 +0000 (19:07 +0100)]
mod_motd: Update to use module:get_option_string

12 years agomod_motd: Send no message (instead of 'blank') if no message is set in the config...
Matthew Wild [Tue, 27 Sep 2011 18:05:14 +0000 (19:05 +0100)]
mod_motd: Send no message (instead of 'blank') if no message is set in the config (thanks medics)

12 years agonet.server_select: Never call onincoming with nil data when a listener doesn't have...
Matthew Wild [Tue, 27 Sep 2011 16:28:56 +0000 (17:28 +0100)]
net.server_select: Never call onincoming with nil data when a listener doesn't have an onconnect handler

12 years agoutil.array: Fix array.collect() for iterators that expect initial value of var to...
Matthew Wild [Sat, 24 Sep 2011 23:21:22 +0000 (00:21 +0100)]
util.array: Fix array.collect() for iterators that expect initial value of var to be preserved

12 years agoutil.iterators: Add range(from, to)
Matthew Wild [Sat, 24 Sep 2011 23:20:43 +0000 (00:20 +0100)]
util.iterators: Add range(from, to)

12 years agoutil.timer: Fix corner case of timer not repeating if it returns <= 0
Matthew Wild [Thu, 22 Sep 2011 14:48:56 +0000 (15:48 +0100)]
util.timer: Fix corner case of timer not repeating if it returns <= 0

12 years agotools/ejabberdsql2prosody: Track current line for error reporting
Matthew Wild [Tue, 20 Sep 2011 22:30:58 +0000 (23:30 +0100)]
tools/ejabberdsql2prosody: Track current line for error reporting

12 years agomodulemanager: Fix undefined global access in handling of module.save error handling.
Waqas Hussain [Tue, 20 Sep 2011 22:25:34 +0000 (03:25 +0500)]
modulemanager: Fix undefined global access in handling of module.save error handling.

12 years agoprosody: Invalid escape sequence in componentmanager deprecation warning (can cause...
Waqas Hussain [Tue, 20 Sep 2011 22:23:47 +0000 (03:23 +0500)]
prosody: Invalid escape sequence in componentmanager deprecation warning (can cause luajit to throw).

12 years agomodulemanager: Fixed undefined global access in broadcast of item-remove events on...
Waqas Hussain [Sat, 17 Sep 2011 15:28:46 +0000 (20:28 +0500)]
modulemanager: Fixed undefined global access in broadcast of item-remove events on module unload.

12 years agoejabberd2prosody: Added a lot more type checks to ensure XML data has proper data...
Waqas Hussain [Sat, 17 Sep 2011 15:25:11 +0000 (20:25 +0500)]
ejabberd2prosody: Added a lot more type checks to ensure XML data has proper data types. Ignore attributes of invalid types. Fixes the cause of issue#261.

12 years agomod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)
Matthew Wild [Thu, 15 Sep 2011 16:38:24 +0000 (17:38 +0100)]
mod_bosh: s/xmlns:streams/xmlns:stream/ - fixes #265 (thanks Tim)

12 years agonet.httpclient_listener: util.httpstream now always expects to be called with nil...
Matthew Wild [Sat, 3 Sep 2011 19:44:05 +0000 (15:44 -0400)]
net.httpclient_listener: util.httpstream now always expects to be called with nil data, so call even when the socket closed cleanly

12 years agonet.server_event: Don't call listener.onincoming with data=nil when listener.onconnec...
Waqas Hussain [Fri, 2 Sep 2011 21:42:50 +0000 (02:42 +0500)]
net.server_event: Don't call listener.onincoming with data=nil when listener.onconnect is missing. onincoming's arguments shall always be non-nil.

12 years agomod_proxy65: Apply stringprep to activation target JID.
Waqas Hussain [Fri, 2 Sep 2011 20:07:35 +0000 (01:07 +0500)]
mod_proxy65: Apply stringprep to activation target JID.

12 years agomod_proxy65: Some more cleanup.
Waqas Hussain [Fri, 2 Sep 2011 19:37:37 +0000 (00:37 +0500)]
mod_proxy65: Some more cleanup.

12 years agomod_proxy65: Cleanup.
Waqas Hussain [Fri, 2 Sep 2011 18:50:34 +0000 (23:50 +0500)]
mod_proxy65: Cleanup.

12 years agonet.dns: Shorten AAAA records
Kim Alvefur [Fri, 2 Sep 2011 16:54:42 +0000 (18:54 +0200)]
net.dns: Shorten AAAA records

12 years agoMerge with trunk
Matthew Wild [Thu, 1 Sep 2011 00:25:13 +0000 (20:25 -0400)]
Merge with trunk

12 years agonet.httpclient_listener: Define t_insert
Matthew Wild [Thu, 1 Sep 2011 00:23:49 +0000 (20:23 -0400)]
net.httpclient_listener: Define t_insert

12 years agoMUC: A little cleanup.
Waqas Hussain [Wed, 31 Aug 2011 18:53:55 +0000 (23:53 +0500)]
MUC: A little cleanup.

12 years agonet.http: Remove extra space after method in request status line for POST.
Waqas Hussain [Wed, 31 Aug 2011 18:25:04 +0000 (23:25 +0500)]
net.http: Remove extra space after method in request status line for POST.

12 years agoutil.sasl.scram: Return proper error and don't touch datastores on empty username.
Waqas Hussain [Wed, 31 Aug 2011 18:24:13 +0000 (23:24 +0500)]
util.sasl.scram: Return proper error and don't touch datastores on empty username.

12 years agoutil.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)
Matthew Wild [Tue, 30 Aug 2011 21:51:36 +0000 (17:51 -0400)]
util.pubsub: Remove access checking from remove_all_subscriptions (temporarily?)

12 years agoutil.pubsub: Add service:remove_all_subscriptions()
Matthew Wild [Tue, 30 Aug 2011 19:48:16 +0000 (15:48 -0400)]
util.pubsub: Add service:remove_all_subscriptions()

12 years agoutil.pubsub: Support for events (currently subscription-added and subscription-removed)
Matthew Wild [Tue, 30 Aug 2011 19:03:27 +0000 (15:03 -0400)]
util.pubsub: Support for events (currently subscription-added and subscription-removed)

12 years agoutil.pubsub: Use built-in actor for auto-creating nodes on publish and subscribe...
Matthew Wild [Mon, 29 Aug 2011 19:42:15 +0000 (15:42 -0400)]
util.pubsub: Use built-in actor for auto-creating nodes on publish and subscribe (so they never fail due to permissions)

12 years agomodulemanager: Add module:handle_items() to allow a module to more easily handle...
Matthew Wild [Mon, 29 Aug 2011 17:09:29 +0000 (13:09 -0400)]
modulemanager: Add module:handle_items() to allow a module to more easily handle a list of items on a host

12 years agoutil.throttle: Generic module by waqas to limit something over some time
Matthew Wild [Mon, 29 Aug 2011 17:00:33 +0000 (13:00 -0400)]
util.throttle: Generic module by waqas to limit something over some time

12 years agomod_saslauth: Fire authentication-success and authentication-failure events (thanks...
Matthew Wild [Mon, 29 Aug 2011 16:01:42 +0000 (12:01 -0400)]
mod_saslauth: Fire authentication-success and authentication-failure events (thanks scitor)

12 years agoejabberd2prosody: Add support for privacy lists.
Waqas Hussain [Fri, 26 Aug 2011 11:02:08 +0000 (16:02 +0500)]
ejabberd2prosody: Add support for privacy lists.

12 years agocertmanager: Support setting ciphers in SSL config. LuaSec apparently ignores the...
Waqas Hussain [Thu, 25 Aug 2011 07:09:16 +0000 (12:09 +0500)]
certmanager: Support setting ciphers in SSL config. LuaSec apparently ignores the documented ciphers option.

12 years agoconfigmanager: resolve_relative_path: Improved detection of absolute paths on Windows.
Waqas Hussain [Thu, 25 Aug 2011 07:07:36 +0000 (12:07 +0500)]
configmanager: resolve_relative_path: Improved detection of absolute paths on Windows.

12 years agoMUC: Allow affiliation change when argument actor==true in room:set_affiliation().
Waqas Hussain [Thu, 25 Aug 2011 07:05:27 +0000 (12:05 +0500)]
MUC: Allow affiliation change when argument actor==true in room:set_affiliation().

12 years agonet.http: Convert port to a number (for custom port in URL)
Matthew Wild [Mon, 22 Aug 2011 16:57:52 +0000 (12:57 -0400)]
net.http: Convert port to a number (for custom port in URL)

12 years agonet.http: Support for k->v maps in http.formencode
Matthew Wild [Sat, 20 Aug 2011 20:51:47 +0000 (16:51 -0400)]
net.http: Support for k->v maps in http.formencode

12 years agonet.httpclient_listener: Fix to look for the request body in the right variable...
Matthew Wild [Sat, 20 Aug 2011 20:51:17 +0000 (16:51 -0400)]
net.httpclient_listener: Fix to look for the request body in the right variable...

12 years agonet.server_select: Remove socket from sendlist before calling listener callbacks...
Matthew Wild [Sat, 20 Aug 2011 20:14:07 +0000 (16:14 -0400)]
net.server_select: Remove socket from sendlist before calling listener callbacks (thanks darkrain)

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:)

12 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)

12 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)

12 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

12 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

12 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)

12 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

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

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

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

12 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

12 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.

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

12 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

12 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