prosody.git
10 years agoMerge 0.9->trunk
Matthew Wild [Mon, 15 Jul 2013 22:43:37 +0000 (23:43 +0100)]
Merge 0.9->trunk

10 years agoutil.net: Fix compilation on Windows (outputs an empty list of addresses for now...
Matthew Wild [Mon, 15 Jul 2013 22:43:20 +0000 (23:43 +0100)]
util.net: Fix compilation on Windows (outputs an empty list of addresses for now) (tested only in my head)

10 years agoMerge 0.9->trunk
Matthew Wild [Mon, 15 Jul 2013 22:35:49 +0000 (23:35 +0100)]
Merge 0.9->trunk

10 years agoutil.net: Include missing header needed for successful compiltion on FreeBSD
Matthew Wild [Mon, 15 Jul 2013 22:34:59 +0000 (23:34 +0100)]
util.net: Include missing header needed for successful compiltion on FreeBSD

10 years agoutil.events: Remove varargs, event handlers can now only accept a single parameter
Matthew Wild [Mon, 15 Jul 2013 11:15:51 +0000 (12:15 +0100)]
util.events: Remove varargs, event handlers can now only accept a single parameter

10 years agomod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and share...
Matthew Wild [Mon, 15 Jul 2013 10:44:49 +0000 (11:44 +0100)]
mod_bosh, mod_c2s: No longer fire stream-features globally (nobody uses it, and shared modules make it easy for global modules to hook per-host now)

10 years agorostermanager, mod_groups: Change roster-load event to pass an event table for consis...
Matthew Wild [Mon, 15 Jul 2013 10:43:23 +0000 (11:43 +0100)]
rostermanager, mod_groups: Change roster-load event to pass an event table for consistency

10 years agoMerge 0.9->trunk
Matthew Wild [Sat, 13 Jul 2013 12:17:53 +0000 (13:17 +0100)]
Merge 0.9->trunk

10 years agocertmanager: Set our own default cipher string, which includes only ciphers regarded...
Matthew Wild [Sat, 13 Jul 2013 12:15:24 +0000 (13:15 +0100)]
certmanager: Set our own default cipher string, which includes only ciphers regarded as 'HIGH' strength (by OpenSSL). In particular this disables RC4.

10 years agoutil.sql: Do lazy fetching of affected/rowcount
Kim Alvefur [Fri, 12 Jul 2013 15:44:30 +0000 (17:44 +0200)]
util.sql: Do lazy fetching of affected/rowcount

10 years agoBacked out changeset 3c57c2281087
Kim Alvefur [Fri, 12 Jul 2013 15:41:54 +0000 (17:41 +0200)]
Backed out changeset 3c57c2281087

10 years agoutil.sql: Don't fetch row count of result sets for queries that don't have result...
Kim Alvefur [Fri, 12 Jul 2013 15:03:09 +0000 (17:03 +0200)]
util.sql: Don't fetch row count of result sets for queries that don't have result sets

10 years agomod_storage_sql2: Add archive store with append and find methods
Kim Alvefur [Fri, 12 Jul 2013 00:53:24 +0000 (02:53 +0200)]
mod_storage_sql2: Add archive store with append and find methods

10 years agomod_storage_sql2: Create an additional table `prosodyarchive` for chronological colle...
Kim Alvefur [Thu, 11 Jul 2013 23:34:38 +0000 (01:34 +0200)]
mod_storage_sql2: Create an additional table `prosodyarchive` for chronological collections

10 years agoutil.sql: Set charset and collation for MySQL when creating tables
Kim Alvefur [Thu, 11 Jul 2013 20:07:55 +0000 (22:07 +0200)]
util.sql: Set charset and collation for MySQL when creating tables

10 years agoRemove plugins/storage/sqlbasic.lib.lua, which seems obsolete
Matthew Wild [Thu, 11 Jul 2013 14:13:45 +0000 (15:13 +0100)]
Remove plugins/storage/sqlbasic.lib.lua, which seems obsolete

10 years agoMerge 0.9->trunk
Matthew Wild [Thu, 11 Jul 2013 14:10:04 +0000 (15:10 +0100)]
Merge 0.9->trunk

10 years agomod_storage_sql2: Remove from 0.9
Matthew Wild [Thu, 11 Jul 2013 14:08:47 +0000 (15:08 +0100)]
mod_storage_sql2: Remove from 0.9

10 years agomod_storage_sql2: Support XML serialization for stanzas.
Kim Alvefur [Wed, 10 Jul 2013 11:19:33 +0000 (13:19 +0200)]
mod_storage_sql2: Support XML serialization for stanzas.

10 years agomod_storage_sql2: Keep available store types in a table
Kim Alvefur [Wed, 10 Jul 2013 11:18:10 +0000 (13:18 +0200)]
mod_storage_sql2: Keep available store types in a table

10 years agomod_storage_sql2: Fix iteration over users and stores
Kim Alvefur [Wed, 10 Jul 2013 10:08:44 +0000 (12:08 +0200)]
mod_storage_sql2: Fix iteration over users and stores

10 years agomod_storage_sql2: Make sure the user field is not NULL
Kim Alvefur [Wed, 10 Jul 2013 10:01:23 +0000 (12:01 +0200)]
mod_storage_sql2: Make sure the user field is not NULL

10 years agoMerge 0.9->trunk
Kim Alvefur [Wed, 10 Jul 2013 05:47:54 +0000 (07:47 +0200)]
Merge 0.9->trunk

10 years agonet.dns, net.adns: Make sure errors from net.server are propagated (thanks asterix)
Kim Alvefur [Wed, 10 Jul 2013 05:45:10 +0000 (07:45 +0200)]
net.dns, net.adns: Make sure errors from net.server are propagated (thanks asterix)

10 years agoMerge 0.9->trunk
Matthew Wild [Mon, 8 Jul 2013 23:04:30 +0000 (00:04 +0100)]
Merge 0.9->trunk

10 years agomod_component: Local imports for some functions, including xpcall
Matthew Wild [Mon, 8 Jul 2013 22:59:51 +0000 (23:59 +0100)]
mod_component: Local imports for some functions, including xpcall

10 years agomod_bosh: pcall() core_process_stanza per stanza, to bring in line with other listene...
Matthew Wild [Mon, 8 Jul 2013 22:59:27 +0000 (23:59 +0100)]
mod_bosh: pcall() core_process_stanza per stanza, to bring in line with other listeners. This ensures that stanzas following a traceback-causing stanza in a request will still be processed (as would happen on normal c2s).

10 years agomod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters
Matthew Wild [Mon, 8 Jul 2013 22:42:54 +0000 (23:42 +0100)]
mod_bosh: Only pass stanza to core_process_stanza if it wasn't dropped by filters

10 years agoMerge 0.9->trunk
Matthew Wild [Mon, 8 Jul 2013 20:41:31 +0000 (21:41 +0100)]
Merge 0.9->trunk

10 years agomod_component: xpcall() stanza processing, as per other listeners, preventing potenti...
Matthew Wild [Mon, 8 Jul 2013 20:38:08 +0000 (21:38 +0100)]
mod_component: xpcall() stanza processing, as per other listeners, preventing potentially harmful 'top-level errors'

10 years agoprosodyctl: Import local_addresses from the new util.net intead of luasocket
Kim Alvefur [Mon, 1 Jul 2013 20:17:31 +0000 (22:17 +0200)]
prosodyctl: Import local_addresses from the new util.net intead of luasocket

11 years agoMerge 0.9->trunk
Kim Alvefur [Sat, 29 Jun 2013 20:49:56 +0000 (22:49 +0200)]
Merge 0.9->trunk

11 years agomod_admin_adhoc: Fix node of the "Get List of Online Users" command
Florian Zeitz [Sat, 29 Jun 2013 20:40:10 +0000 (22:40 +0200)]
mod_admin_adhoc: Fix node of the "Get List of Online Users" command

11 years agoMerge
Matthew Wild [Sat, 29 Jun 2013 13:45:47 +0000 (14:45 +0100)]
Merge

11 years agoutil.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by returning and...
Matthew Wild [Sat, 29 Jun 2013 13:45:38 +0000 (14:45 +0100)]
util.pposix: Correctly handle 'unlimited' limits (RLIM_INFINITY), by returning and accepting the string 'unlimited' in get/setrlimit()

11 years agoMerge 0.9->trunk
Matthew Wild [Sat, 29 Jun 2013 09:11:55 +0000 (10:11 +0100)]
Merge 0.9->trunk

11 years agoutil.pposix: setrlimit(): Add missing return on error when an incorrect number of...
Matthew Wild [Fri, 28 Jun 2013 19:16:43 +0000 (20:16 +0100)]
util.pposix: setrlimit(): Add missing return on error when an incorrect number of arguments are passed

11 years agomod_http_files: Put the MIME type map in a global shared table instead of per-host
Kim Alvefur [Fri, 28 Jun 2013 17:34:57 +0000 (19:34 +0200)]
mod_http_files: Put the MIME type map in a global shared table instead of per-host

11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 26 Jun 2013 20:40:33 +0000 (21:40 +0100)]
Merge 0.9->trunk

11 years agonet.http: Include port number (when non-standard) in the Host header of outgoing...
Matthew Wild [Wed, 26 Jun 2013 20:40:01 +0000 (21:40 +0100)]
net.http: Include port number (when non-standard) in the Host header of outgoing requests, as per the HTTP RFC

11 years agomod_s2s: Add missing global hook for read-timeout
Kim Alvefur [Wed, 26 Jun 2013 11:35:38 +0000 (13:35 +0200)]
mod_s2s: Add missing global hook for read-timeout

11 years agoMerge 0.9->trunk
Matthew Wild [Mon, 24 Jun 2013 17:29:04 +0000 (18:29 +0100)]
Merge 0.9->trunk

11 years agomod_storage_sql2: Use correct variable (Thanks SkyBlue and Florob)
Kim Alvefur [Sun, 23 Jun 2013 17:27:49 +0000 (19:27 +0200)]
mod_storage_sql2: Use correct variable (Thanks SkyBlue and Florob)

11 years agomod_admin_telnet: Refactor s2s:show()
Kim Alvefur [Thu, 20 Jun 2013 19:47:38 +0000 (21:47 +0200)]
mod_admin_telnet: Refactor s2s:show()

11 years agomod_admin_telnet: Generate session names the same way as in s2smanager
Kim Alvefur [Thu, 20 Jun 2013 19:47:28 +0000 (21:47 +0200)]
mod_admin_telnet: Generate session names the same way as in s2smanager

11 years agomod_admin_telnet: Refactor s2s:close and s2s:closeall
Kim Alvefur [Thu, 20 Jun 2013 18:53:29 +0000 (20:53 +0200)]
mod_admin_telnet: Refactor s2s:close and s2s:closeall

11 years agomod_register: Fix indentation
Kim Alvefur [Wed, 19 Jun 2013 14:35:19 +0000 (16:35 +0200)]
mod_register: Fix indentation

11 years agomod_admin_telnet: Refactor s2s:showcert()
Kim Alvefur [Wed, 19 Jun 2013 14:20:33 +0000 (16:20 +0200)]
mod_admin_telnet: Refactor s2s:showcert()

11 years agonet.dns: Support IPv6 addresses in resolv.conf
Florian Zeitz [Tue, 18 Jun 2013 21:02:20 +0000 (23:02 +0200)]
net.dns: Support IPv6 addresses in resolv.conf

11 years agoMerge 0.9->trunk
Matthew Wild [Tue, 18 Jun 2013 11:17:06 +0000 (12:17 +0100)]
Merge 0.9->trunk

11 years agomod_s2s/s2sout.lib: Remove unused variables and imports
Matthew Wild [Tue, 18 Jun 2013 11:14:46 +0000 (12:14 +0100)]
mod_s2s/s2sout.lib: Remove unused variables and imports

11 years agomod_s2s/s2sout.lib: Remove reference to undefined global
Matthew Wild [Tue, 18 Jun 2013 11:12:49 +0000 (12:12 +0100)]
mod_s2s/s2sout.lib: Remove reference to undefined global

11 years agomod_s2s/s2sout.lib: Use new util.net.local_addresses() to fetch local interface addresses
Matthew Wild [Tue, 18 Jun 2013 11:12:12 +0000 (12:12 +0100)]
mod_s2s/s2sout.lib: Use new util.net.local_addresses() to fetch local interface addresses

11 years agomod_s2s/s2sout.lib: Only attempt to create an IPv6 socket if LuaSocket supports IPv6
Matthew Wild [Tue, 18 Jun 2013 11:11:40 +0000 (12:11 +0100)]
mod_s2s/s2sout.lib: Only attempt to create an IPv6 socket if LuaSocket supports IPv6

11 years agoutil.net: Add util.net, containing local_addresses() (removed from LuaSocket 3.0)
Matthew Wild [Tue, 18 Jun 2013 08:04:44 +0000 (09:04 +0100)]
util.net: Add util.net, containing local_addresses() (removed from LuaSocket 3.0)

11 years agomod_tls: Remove debug statement
Kim Alvefur [Sun, 16 Jun 2013 13:01:31 +0000 (15:01 +0200)]
mod_tls: Remove debug statement

11 years agoadditional fix for erlparse loading in ejabberd2prosody.lua
Vadim Misbakh-Soloviov [Fri, 14 Jun 2013 08:43:35 +0000 (15:43 +0700)]
additional fix for erlparse loading in ejabberd2prosody.lua

11 years agopackage{,c}path fixes for migration tools
Vadim Misbakh-Soloviov [Fri, 14 Jun 2013 08:15:05 +0000 (15:15 +0700)]
package{,c}path fixes for migration tools

11 years agoMerge the merge
Matthew Wild [Thu, 13 Jun 2013 22:24:36 +0000 (23:24 +0100)]
Merge the merge

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 13 Jun 2013 22:21:24 +0000 (23:21 +0100)]
Merge 0.9->trunk

11 years agoutil.dataforms: Return nil for empty list-mutli responses, to be consistent with...
Florian Zeitz [Thu, 13 Jun 2013 22:07:57 +0000 (00:07 +0200)]
util.dataforms: Return nil for empty list-mutli responses, to be consistent with other readers

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 13 Jun 2013 12:56:58 +0000 (13:56 +0100)]
Merge 0.9->trunk

11 years agomod_pep: When a client supplies no id on a published item, reflect our generated...
Florian Zeitz [Thu, 13 Jun 2013 12:56:35 +0000 (13:56 +0100)]
mod_pep: When a client supplies no id on a published item, reflect our generated id back to it

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 13 Jun 2013 11:07:46 +0000 (12:07 +0100)]
Merge 0.9->trunk

11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 12 Jun 2013 23:46:29 +0000 (00:46 +0100)]
Merge 0.9->trunk

11 years agocertmanager: Add single_dh_use and single_ecdh_use to default options
Matthew Wild [Wed, 12 Jun 2013 23:45:41 +0000 (00:45 +0100)]
certmanager: Add single_dh_use and single_ecdh_use to default options

11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 12 Jun 2013 23:09:56 +0000 (00:09 +0100)]
Merge 0.9->trunk

11 years agocertmanager: Set ssl.curve to 'secp384r1' by default, to enable ECC ciphers
Matthew Wild [Wed, 12 Jun 2013 23:04:04 +0000 (00:04 +0100)]
certmanager: Set ssl.curve to 'secp384r1' by default, to enable ECC ciphers

11 years agoutil.pubsub: Check whether node exists, when deleting
Florian Zeitz [Wed, 12 Jun 2013 14:53:51 +0000 (16:53 +0200)]
util.pubsub: Check whether node exists, when deleting

11 years agoMerge 0.9->trunk
Matthew Wild [Tue, 11 Jun 2013 20:50:41 +0000 (21:50 +0100)]
Merge 0.9->trunk

11 years agocertmanager: Use 'curve' and 'dhparam' options from ssl config if present
Matthew Wild [Tue, 11 Jun 2013 20:44:53 +0000 (21:44 +0100)]
certmanager: Use 'curve' and 'dhparam' options from ssl config if present

11 years agomod_c2s, mod_s2s: Fire an event on read timeouts
Kim Alvefur [Tue, 11 Jun 2013 19:36:15 +0000 (21:36 +0200)]
mod_c2s, mod_s2s: Fire an event on read timeouts

11 years agomod_c2s: Become a shared module and allow being disabled on some virtualhosts
Kim Alvefur [Tue, 11 Jun 2013 19:18:51 +0000 (21:18 +0200)]
mod_c2s: Become a shared module and allow being disabled on some virtualhosts

11 years agomod_bosh: Reduce a little code.
Waqas Hussain [Tue, 11 Jun 2013 16:55:47 +0000 (12:55 -0400)]
mod_bosh: Reduce a little code.

11 years agoMerge 0.9->trunk
Kim Alvefur [Mon, 10 Jun 2013 12:37:02 +0000 (14:37 +0200)]
Merge 0.9->trunk

11 years agomod_admin_telnet: Fix another wrong boolean expression
Kim Alvefur [Mon, 10 Jun 2013 12:35:35 +0000 (14:35 +0200)]
mod_admin_telnet: Fix another wrong boolean expression

11 years agoMerge 0.9->trunk
Kim Alvefur [Sun, 9 Jun 2013 15:03:15 +0000 (17:03 +0200)]
Merge 0.9->trunk

11 years agonet.server_select: Make sure there is a server to pause when hitting maxfd (Thanks...
Kim Alvefur [Sun, 9 Jun 2013 15:00:26 +0000 (17:00 +0200)]
net.server_select: Make sure there is a server to pause when hitting maxfd (Thanks elghinn)

11 years agomod_admin_telnet: Simplify IPv6 detection, fixes rare traceback
Kim Alvefur [Sun, 9 Jun 2013 10:59:23 +0000 (12:59 +0200)]
mod_admin_telnet: Simplify IPv6 detection, fixes rare traceback

11 years agomod_s2s: Set s2s_session.ip
Kim Alvefur [Sun, 9 Jun 2013 10:54:10 +0000 (12:54 +0200)]
mod_s2s: Set s2s_session.ip

11 years agomod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads
Matthew Wild [Sat, 8 Jun 2013 17:08:18 +0000 (18:08 +0100)]
mod_bosh: Make waiting_requests and dead_sessions shared to preserve across reloads

11 years agomod_muc: Include status code 332 on service shutdown (thanks mathieui)
Matthew Wild [Sat, 8 Jun 2013 17:07:36 +0000 (18:07 +0100)]
mod_muc: Include status code 332 on service shutdown (thanks mathieui)

11 years agomod_bosh: Don't tostring() stream:features when passing to session.send().
Waqas Hussain [Fri, 7 Jun 2013 20:26:08 +0000 (16:26 -0400)]
mod_bosh: Don't tostring() stream:features when passing to session.send().

11 years agoprosodyctl: Add 'prosodyctl check certs' for validating TLS/SSL certificates
Kim Alvefur [Fri, 7 Jun 2013 18:59:43 +0000 (20:59 +0200)]
prosodyctl: Add 'prosodyctl check certs' for validating TLS/SSL certificates

11 years agocertmanager: Complain if key or certificate is missing from SSL config.
Kim Alvefur [Fri, 7 Jun 2013 18:55:02 +0000 (20:55 +0200)]
certmanager: Complain if key or certificate is missing from SSL config.

11 years agoprosodyctl: Add 'prosodyctl check --help'
Kim Alvefur [Fri, 7 Jun 2013 18:05:23 +0000 (20:05 +0200)]
prosodyctl: Add 'prosodyctl check --help'

11 years agomod_bosh: Only return CORS headers if the Origin header is received, and CORS is...
Waqas Hussain [Fri, 7 Jun 2013 18:20:13 +0000 (14:20 -0400)]
mod_bosh: Only return CORS headers if the Origin header is received, and CORS is enabled.

11 years agomod_bosh: Return empty string from the OPTIONS event handler, don't return the respon...
Waqas Hussain [Fri, 7 Jun 2013 17:24:56 +0000 (13:24 -0400)]
mod_bosh: Return empty string from the OPTIONS event handler, don't return the response object itself.

11 years agomod_bosh: Rename event handler argument to event, not request.
Waqas Hussain [Fri, 7 Jun 2013 17:21:38 +0000 (13:21 -0400)]
mod_bosh: Rename event handler argument to event, not request.

11 years agoMerge 0.9->trunk
Matthew Wild [Fri, 7 Jun 2013 12:23:04 +0000 (13:23 +0100)]
Merge 0.9->trunk

11 years agomod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API...
Matthew Wild [Fri, 7 Jun 2013 12:22:13 +0000 (13:22 +0100)]
mod_bosh: Remove logging of request.id, it doesn't exist in the new HTTP server API (thanks Mikael Nordfeldth)

11 years agomod_bosh: Remove another place we set headers, fixes #348
Matthew Wild [Thu, 6 Jun 2013 13:48:41 +0000 (14:48 +0100)]
mod_bosh: Remove another place we set headers, fixes #348

11 years agomod_bosh: Clean up handling of response headers, set them only in one place
Matthew Wild [Wed, 5 Jun 2013 20:41:27 +0000 (21:41 +0100)]
mod_bosh: Clean up handling of response headers, set them only in one place

11 years agomod_bosh: Return errors when appropriate (invalid XML, missing sid)
Matthew Wild [Wed, 5 Jun 2013 20:39:56 +0000 (21:39 +0100)]
mod_bosh: Return errors when appropriate (invalid XML, missing sid)

11 years agomod_bosh: Remove some very verbose logging
Matthew Wild [Wed, 5 Jun 2013 20:37:33 +0000 (21:37 +0100)]
mod_bosh: Remove some very verbose logging

11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 5 Jun 2013 20:36:29 +0000 (21:36 +0100)]
Merge 0.9->trunk

11 years agomod_bosh: Reset creating_session to prevent putting unnecessary attributes into every...
Matthew Wild [Wed, 5 Jun 2013 20:35:50 +0000 (21:35 +0100)]
mod_bosh: Reset creating_session to prevent putting unnecessary attributes into every BOSH response

11 years agomod_muc: Add Ad-Hoc command to destroy MUC rooms
Florian Zeitz [Tue, 4 Jun 2013 22:05:03 +0000 (00:05 +0200)]
mod_muc: Add Ad-Hoc command to destroy MUC rooms

11 years agomod_muc: Utilize mod_disco, instead of reimplementing disco handling
Florian Zeitz [Tue, 4 Jun 2013 22:04:44 +0000 (00:04 +0200)]
mod_muc: Utilize mod_disco, instead of reimplementing disco handling

11 years agomod_pubsub: Utilize mod_disco, instead of reimplementing disco handling
Florian Zeitz [Tue, 4 Jun 2013 22:01:17 +0000 (00:01 +0200)]
mod_pubsub: Utilize mod_disco, instead of reimplementing disco handling