prosody.git
12 years agomod_bosh: Store time to destroy session in inactive_sessions, removing dependency...
Matthew Wild [Wed, 7 Dec 2011 02:58:22 +0000 (02:58 +0000)]
mod_bosh: Store time to destroy session in inactive_sessions, removing dependency on session.bosh_max_inactive in cleanup timer

12 years agoutil.dataforms: Fix verfication for booleans
Florian Zeitz [Sat, 3 Dec 2011 16:10:48 +0000 (17:10 +0100)]
util.dataforms: Fix verfication for booleans

12 years agoutil.dataforms: Fix form verification
Florian Zeitz [Fri, 2 Dec 2011 18:24:54 +0000 (19:24 +0100)]
util.dataforms: Fix form verification

12 years agoutil.ip: Fix syntax error (while I search for my pre-commit hooks)
Matthew Wild [Wed, 30 Nov 2011 19:37:13 +0000 (19:37 +0000)]
util.ip: Fix syntax error (while I search for my pre-commit hooks)

12 years agoutil.ip: Fix in IP range calculation for 172.16.0.0/12
Matthew Wild [Wed, 30 Nov 2011 17:20:16 +0000 (17:20 +0000)]
util.ip: Fix in IP range calculation for 172.16.0.0/12

12 years agos2smanager: Use config over xmppserver's default interface
Matthew Wild [Mon, 28 Nov 2011 14:30:12 +0000 (14:30 +0000)]
s2smanager: Use config over xmppserver's default interface

12 years agonet.xmppserver_listener: Set default interface to '*' (fixes traceback) (thanks Zash)
Matthew Wild [Mon, 28 Nov 2011 14:27:52 +0000 (14:27 +0000)]
net.xmppserver_listener: Set default interface to '*' (fixes traceback) (thanks Zash)

12 years agonet.server_select: Autostart SSL negotiation as the last part of socket setup to...
Matthew Wild [Mon, 28 Nov 2011 03:04:50 +0000 (03:04 +0000)]
net.server_select: Autostart SSL negotiation as the last part of socket setup to avoid a traceback (#262) (thanks Maranda)

12 years agoMerge with Florob
Matthew Wild [Sat, 26 Nov 2011 03:50:51 +0000 (03:50 +0000)]
Merge with Florob

12 years agologgingmanager: Remove unused 'critical' level
Matthew Wild [Tue, 22 Nov 2011 17:56:52 +0000 (17:56 +0000)]
loggingmanager: Remove unused 'critical' level

12 years agoutil.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.
Waqas Hussain [Mon, 21 Nov 2011 21:13:42 +0000 (02:13 +0500)]
util.dependencies, util.xmppstream: Move LuaExpat version checking to util.dependencies.

12 years agoutil.xmppstream: A little cleanup.
Waqas Hussain [Mon, 21 Nov 2011 20:44:28 +0000 (01:44 +0500)]
util.xmppstream: A little cleanup.

12 years agoMUC: Fix a possible stack overflow (when a local component joins a room, then disconn...
Waqas Hussain [Mon, 21 Nov 2011 14:59:38 +0000 (19:59 +0500)]
MUC: Fix a possible stack overflow (when a local component joins a room, then disconnects, an unavailble-error presence cycle can occur).

12 years agoutil.debug: Fix potential traceback
Matthew Wild [Sat, 19 Nov 2011 22:40:30 +0000 (22:40 +0000)]
util.debug: Fix potential traceback

12 years agomigrator/jabberd14: Support for reading jabberd14 spool files.
Waqas Hussain [Sat, 19 Nov 2011 16:12:23 +0000 (21:12 +0500)]
migrator/jabberd14: Support for reading jabberd14 spool files.

12 years agoMerge with Zash
Matthew Wild [Fri, 18 Nov 2011 16:05:40 +0000 (16:05 +0000)]
Merge with Zash

12 years agoutil.pposix: Don't trust errno for success. Thanks Quince
Kim Alvefur [Fri, 18 Nov 2011 05:13:24 +0000 (06:13 +0100)]
util.pposix: Don't trust errno for success. Thanks Quince

12 years agoutil.rfc3484: Use a stable sorting algorithm
Florian Zeitz [Sun, 6 Nov 2011 17:23:16 +0000 (18:23 +0100)]
util.rfc3484: Use a stable sorting algorithm

12 years agomod_proxy65: Major cleanup, better logging, handling of all error cases, less code...
Waqas Hussain [Sat, 5 Nov 2011 19:51:39 +0000 (00:51 +0500)]
mod_proxy65: Major cleanup, better logging, handling of all error cases, less code, and other goodness.

12 years agoutil.timer: Variable name change (func -> callback)
Matthew Wild [Thu, 3 Nov 2011 12:47:52 +0000 (12:47 +0000)]
util.timer: Variable name change (func -> callback)

12 years agoutil.debug: Experimental new library for producing more extensive debug tracebacks
Matthew Wild [Thu, 3 Nov 2011 12:41:21 +0000 (12:41 +0000)]
util.debug: Experimental new library for producing more extensive debug tracebacks

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 agos2smanager, net.dns: Fix handling for NXNAME and SRV target of "."
Florian Zeitz [Wed, 26 Oct 2011 00:03:33 +0000 (02:03 +0200)]
s2smanager, net.dns: Fix handling for NXNAME and SRV target of "."

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 agos2smanager, xmppserver_listener: Support for connecting to other servers via IPv6
Florian Zeitz [Sat, 22 Oct 2011 16:29:23 +0000 (18:29 +0200)]
s2smanager, xmppserver_listener: Support for connecting to other servers via IPv6

12 years agoutil.rfc3484: New util implementing RFC3484 sorting
Florian Zeitz [Sat, 22 Oct 2011 15:59:33 +0000 (17:59 +0200)]
util.rfc3484: New util implementing RFC3484 sorting

12 years agoutil.ip: New module containing IP related functions
Florian Zeitz [Sat, 22 Oct 2011 15:51:53 +0000 (17:51 +0200)]
util.ip: New module containing IP related functions

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