prosody.git
13 years agoMerge 0.8->trunk
Matthew Wild [Tue, 1 Mar 2011 06:14:03 +0000 (06:14 +0000)]
Merge 0.8->trunk

13 years agomod_storage_sql: Display friendlier error when LuaDBI is missing
Matthew Wild [Tue, 1 Mar 2011 06:12:43 +0000 (06:12 +0000)]
mod_storage_sql: Display friendlier error when LuaDBI is missing

13 years agoMerge 0.8->trunk
Matthew Wild [Sat, 26 Feb 2011 00:24:23 +0000 (00:24 +0000)]
Merge 0.8->trunk

13 years agotools/migration/*: Numerous changes and restructuring, and the addition of a Makefile
Matthew Wild [Sat, 26 Feb 2011 00:23:48 +0000 (00:23 +0000)]
tools/migration/*: Numerous changes and restructuring, and the addition of a Makefile

13 years agoMerge 0.8->trunk
Matthew Wild [Fri, 25 Feb 2011 03:34:15 +0000 (03:34 +0000)]
Merge 0.8->trunk

13 years agotools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for...
Matthew Wild [Fri, 25 Feb 2011 03:32:44 +0000 (03:32 +0000)]
tools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for config and command-line parameters

13 years agotools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for...
Matthew Wild [Fri, 25 Feb 2011 03:32:44 +0000 (03:32 +0000)]
tools/migration/*.lua: Rename config to migrator.cfg.lua, add error handling for config and command-line parameters

13 years agotools/migration/main.lua: Add command-line parsing, including --config=CONFIG_FILE...
Matthew Wild [Fri, 25 Feb 2011 01:31:08 +0000 (01:31 +0000)]
tools/migration/main.lua: Add command-line parsing, including --config=CONFIG_FILE, and the ability to specify to/from stores to migrate

13 years agotools/migration/main.lua: Add command-line parsing, including --config=CONFIG_FILE...
Matthew Wild [Fri, 25 Feb 2011 01:31:08 +0000 (01:31 +0000)]
tools/migration/main.lua: Add command-line parsing, including --config=CONFIG_FILE, and the ability to specify to/from stores to migrate

13 years agotools/migration/config.lua: Minor fixes for more sensible defaults
Matthew Wild [Fri, 25 Feb 2011 01:29:31 +0000 (01:29 +0000)]
tools/migration/config.lua: Minor fixes for more sensible defaults

13 years agotools/migration/config.lua: Minor fixes for more sensible defaults
Matthew Wild [Fri, 25 Feb 2011 01:29:31 +0000 (01:29 +0000)]
tools/migration/config.lua: Minor fixes for more sensible defaults

13 years agoMerge 0.8->trunk
Matthew Wild [Fri, 25 Feb 2011 00:08:14 +0000 (00:08 +0000)]
Merge 0.8->trunk

13 years agomod_pep: Fix comparison between incoming hash and the cached hash for a JID, fixes...
Matthew Wild [Fri, 25 Feb 2011 00:07:38 +0000 (00:07 +0000)]
mod_pep: Fix comparison between incoming hash and the cached hash for a JID, fixes repeated PEP events on presence (fixes #225)

13 years agoMerge 0.8->trunk
Matthew Wild [Thu, 24 Feb 2011 18:20:05 +0000 (18:20 +0000)]
Merge 0.8->trunk

13 years agoutil.sasl.scram: Fix bug in validate_username function. (Thanks Florob)
Tobias Markmann [Thu, 24 Feb 2011 17:56:19 +0000 (18:56 +0100)]
util.sasl.scram: Fix bug in validate_username function. (Thanks Florob)

13 years agoutil.sasl.scram: Fix bug in validate_username function. (Thanks Florob)
Tobias Markmann [Thu, 24 Feb 2011 17:56:19 +0000 (18:56 +0100)]
util.sasl.scram: Fix bug in validate_username function. (Thanks Florob)

13 years agoMerge 0.8->trunk.
Waqas Hussain [Thu, 24 Feb 2011 14:30:26 +0000 (19:30 +0500)]
Merge 0.8->trunk.

13 years agoMUC: Don't limit affiliation changes to owners, and allow owners to remove themselves...
Waqas Hussain [Thu, 24 Feb 2011 02:11:35 +0000 (07:11 +0500)]
MUC: Don't limit affiliation changes to owners, and allow owners to remove themselves if they are not the last owner.

13 years agoMUC: Add a textual error message when the user isn't allowed to get/set config form.
Waqas Hussain [Thu, 24 Feb 2011 02:09:38 +0000 (07:09 +0500)]
MUC: Add a textual error message when the user isn't allowed to get/set config form.

13 years agoMerge 0.8->trunk
Matthew Wild [Thu, 24 Feb 2011 02:04:56 +0000 (02:04 +0000)]
Merge 0.8->trunk

13 years agoutil.stanza: Whitespace fix after merge (complicated)
Matthew Wild [Thu, 24 Feb 2011 02:04:38 +0000 (02:04 +0000)]
util.stanza: Whitespace fix after merge (complicated)

13 years agoprosody, prosodyctl: Use plugin_paths in addition to, not instead of, the default...
Matthew Wild [Thu, 24 Feb 2011 01:35:33 +0000 (01:35 +0000)]
prosody, prosodyctl: Use plugin_paths in addition to, not instead of, the default plugin path

13 years agoprosody, prosodyctl: Use plugin_paths in addition to, not instead of, the default...
Matthew Wild [Thu, 24 Feb 2011 01:35:33 +0000 (01:35 +0000)]
prosody, prosodyctl: Use plugin_paths in addition to, not instead of, the default plugin path

13 years agotools/migration/*.lua: Convert to unix line endings
Matthew Wild [Wed, 23 Feb 2011 18:31:48 +0000 (18:31 +0000)]
tools/migration/*.lua: Convert to unix line endings

13 years agotools/migration/*.lua: Convert to unix line endings
Matthew Wild [Wed, 23 Feb 2011 18:31:48 +0000 (18:31 +0000)]
tools/migration/*.lua: Convert to unix line endings

13 years agonet.httpserver: Removed an unused function.
Waqas Hussain [Wed, 23 Feb 2011 02:26:54 +0000 (07:26 +0500)]
net.httpserver: Removed an unused function.

13 years agonet.httpserver: Removed an unused function.
Waqas Hussain [Wed, 23 Feb 2011 02:26:54 +0000 (07:26 +0500)]
net.httpserver: Removed an unused function.

13 years agonet.httpserver: Fix HTTP after commit c299726d2b4e and add a 500 error response if...
Matthew Wild [Wed, 23 Feb 2011 00:31:12 +0000 (00:31 +0000)]
net.httpserver: Fix HTTP after commit c299726d2b4e and add a 500 error response if a request handler fails to make a response to the client

13 years agonet.httpserver: Fix HTTP after commit c299726d2b4e and add a 500 error response if...
Matthew Wild [Wed, 23 Feb 2011 00:31:12 +0000 (00:31 +0000)]
net.httpserver: Fix HTTP after commit c299726d2b4e and add a 500 error response if a request handler fails to make a response to the client

13 years agotests/test_sasl.lua: Convert literal UTF-8/Latin1 chars to escape codes for weak...
Matthew Wild [Tue, 22 Feb 2011 21:19:00 +0000 (21:19 +0000)]
tests/test_sasl.lua: Convert literal UTF-8/Latin1 chars to escape codes for weak text editors

13 years agotests/test_sasl.lua: Convert literal UTF-8/Latin1 chars to escape codes for weak...
Matthew Wild [Tue, 22 Feb 2011 21:19:00 +0000 (21:19 +0000)]
tests/test_sasl.lua: Convert literal UTF-8/Latin1 chars to escape codes for weak text editors

13 years agotools/migration/*: Initial commit of a new migration tool. Currently supports Prosody...
Waqas Hussain [Tue, 22 Feb 2011 21:16:19 +0000 (02:16 +0500)]
tools/migration/*: Initial commit of a new migration tool. Currently supports Prosody files and Prosody SQL as input and output.

13 years agotools/migration/*: Initial commit of a new migration tool. Currently supports Prosody...
Waqas Hussain [Tue, 22 Feb 2011 21:16:19 +0000 (02:16 +0500)]
tools/migration/*: Initial commit of a new migration tool. Currently supports Prosody files and Prosody SQL as input and output.

13 years agonet.httpserver: Catch errors thrown in HTTP handlers.
Waqas Hussain [Tue, 22 Feb 2011 21:03:55 +0000 (02:03 +0500)]
net.httpserver: Catch errors thrown in HTTP handlers.

13 years agonet.httpserver: Catch errors thrown in HTTP handlers.
Waqas Hussain [Tue, 22 Feb 2011 21:03:55 +0000 (02:03 +0500)]
net.httpserver: Catch errors thrown in HTTP handlers.

13 years agomod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.
Waqas Hussain [Tue, 22 Feb 2011 20:34:46 +0000 (01:34 +0500)]
mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.

13 years agomod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.
Waqas Hussain [Tue, 22 Feb 2011 20:34:46 +0000 (01:34 +0500)]
mod_auth_*: Get rid of undocumented and broken 'sasl_realm' config option.

13 years agomod_auth_cyrus: Print some diagnostic log messages about the available mechanisms.
Waqas Hussain [Tue, 22 Feb 2011 20:22:04 +0000 (01:22 +0500)]
mod_auth_cyrus: Print some diagnostic log messages about the available mechanisms.

13 years agomod_auth_cyrus: Print some diagnostic log messages about the available mechanisms.
Waqas Hussain [Tue, 22 Feb 2011 20:22:04 +0000 (01:22 +0500)]
mod_auth_cyrus: Print some diagnostic log messages about the available mechanisms.

13 years agoprosodyctl: Support for plugin_paths config option
Matthew Wild [Tue, 22 Feb 2011 18:37:29 +0000 (18:37 +0000)]
prosodyctl: Support for plugin_paths config option

13 years agoprosodyctl: Support for plugin_paths config option
Matthew Wild [Tue, 22 Feb 2011 18:37:29 +0000 (18:37 +0000)]
prosodyctl: Support for plugin_paths config option

13 years agomod_tls: Drop 'TLS negotiation started for ...' to debug level from info
Matthew Wild [Tue, 22 Feb 2011 18:29:35 +0000 (18:29 +0000)]
mod_tls: Drop 'TLS negotiation started for ...' to debug level from info

13 years agomod_tls: Drop 'TLS negotiation started for ...' to debug level from info
Matthew Wild [Tue, 22 Feb 2011 18:29:35 +0000 (18:29 +0000)]
mod_tls: Drop 'TLS negotiation started for ...' to debug level from info

13 years agos2smanager: Drop some log messages to debug level from info/warn
Matthew Wild [Tue, 22 Feb 2011 18:27:31 +0000 (18:27 +0000)]
s2smanager: Drop some log messages to debug level from info/warn

13 years agos2smanager: Drop some log messages to debug level from info/warn
Matthew Wild [Tue, 22 Feb 2011 18:27:31 +0000 (18:27 +0000)]
s2smanager: Drop some log messages to debug level from info/warn

13 years agoprosody: Change plugin_path -> plugin_paths and make it an array instead of a string
Matthew Wild [Tue, 22 Feb 2011 18:02:23 +0000 (18:02 +0000)]
prosody: Change plugin_path -> plugin_paths and make it an array instead of a string

13 years agoprosody: Change plugin_path -> plugin_paths and make it an array instead of a string
Matthew Wild [Tue, 22 Feb 2011 18:02:23 +0000 (18:02 +0000)]
prosody: Change plugin_path -> plugin_paths and make it an array instead of a string

13 years agoutil.pluginloader: Rewritten resource loading to be cleaner, and added support for...
Waqas Hussain [Tue, 22 Feb 2011 16:47:38 +0000 (21:47 +0500)]
util.pluginloader: Rewritten resource loading to be cleaner, and added support for prosody-modules directory layout. "/" in plugin names is no longer supported.

13 years agoutil.pluginloader: Rewritten resource loading to be cleaner, and added support for...
Waqas Hussain [Tue, 22 Feb 2011 16:47:38 +0000 (21:47 +0500)]
util.pluginloader: Rewritten resource loading to be cleaner, and added support for prosody-modules directory layout. "/" in plugin names is no longer supported.

13 years agoutil.stanza: Remove childtags and rename matching_tags -> childtags (they are API...
Matthew Wild [Tue, 22 Feb 2011 07:37:52 +0000 (07:37 +0000)]
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible)

13 years agoutil.stanza: Remove childtags and rename matching_tags -> childtags (they are API...
Matthew Wild [Tue, 22 Feb 2011 07:37:52 +0000 (07:37 +0000)]
util.stanza: Remove childtags and rename matching_tags -> childtags (they are API-compatible)

13 years agoutil.pluginloader: Remove unused support for custom loaders, to simplify further...
Waqas Hussain [Sun, 20 Feb 2011 15:11:52 +0000 (20:11 +0500)]
util.pluginloader: Remove unused support for custom loaders, to simplify further refactoring.

13 years agoutil.pluginloader: Remove unused support for custom loaders, to simplify further...
Waqas Hussain [Sun, 20 Feb 2011 15:11:52 +0000 (20:11 +0500)]
util.pluginloader: Remove unused support for custom loaders, to simplify further refactoring.

13 years agomodulemanager: Added module.path to the plugin API to let plugins determine their...
Waqas Hussain [Sun, 20 Feb 2011 15:06:38 +0000 (20:06 +0500)]
modulemanager: Added module.path to the plugin API to let plugins determine their load path.

13 years agomodulemanager: Added module.path to the plugin API to let plugins determine their...
Waqas Hussain [Sun, 20 Feb 2011 15:06:38 +0000 (20:06 +0500)]
modulemanager: Added module.path to the plugin API to let plugins determine their load path.

13 years agoutil.pluginloader: Return file path on success in pluginloader.load_code().
Waqas Hussain [Sun, 20 Feb 2011 15:03:43 +0000 (20:03 +0500)]
util.pluginloader: Return file path on success in pluginloader.load_code().

13 years agoutil.pluginloader: Return file path on success in pluginloader.load_code().
Waqas Hussain [Sun, 20 Feb 2011 15:03:43 +0000 (20:03 +0500)]
util.pluginloader: Return file path on success in pluginloader.load_code().

13 years agoutil.pluginloader: Return full file path from internal file loader on success, not...
Waqas Hussain [Sun, 20 Feb 2011 15:01:05 +0000 (20:01 +0500)]
util.pluginloader: Return full file path from internal file loader on success, not just the name.

13 years agoutil.pluginloader: Return full file path from internal file loader on success, not...
Waqas Hussain [Sun, 20 Feb 2011 15:01:05 +0000 (20:01 +0500)]
util.pluginloader: Return full file path from internal file loader on success, not just the name.

13 years agoMerge 0.8->trunk.
Waqas Hussain [Sun, 20 Feb 2011 14:21:44 +0000 (19:21 +0500)]
Merge 0.8->trunk.

13 years agoutil.stanza: Rewrite clone() to be more optimized.
Waqas Hussain [Sun, 20 Feb 2011 14:16:56 +0000 (19:16 +0500)]
util.stanza: Rewrite clone() to be more optimized.

13 years agoutil.stanza: Rewrite clone() to be more optimized.
Waqas Hussain [Sun, 20 Feb 2011 14:16:56 +0000 (19:16 +0500)]
util.stanza: Rewrite clone() to be more optimized.

13 years agoutil.json: Fixed a parse error caused by unexpected whitespace.
Waqas Hussain [Sat, 19 Feb 2011 01:47:32 +0000 (06:47 +0500)]
util.json: Fixed a parse error caused by unexpected whitespace.

13 years agonet.server_select: Expose step() function (thanks ?ukasz)
Matthew Wild [Mon, 14 Feb 2011 19:12:16 +0000 (19:12 +0000)]
net.server_select: Expose step() function (thanks ?ukasz)

13 years agoMerge 0.8->trunk
Matthew Wild [Sun, 13 Feb 2011 22:59:27 +0000 (22:59 +0000)]
Merge 0.8->trunk

13 years agonet.httpserver: Log when an error occurs inside a HTTP request handler
Matthew Wild [Sun, 13 Feb 2011 22:57:17 +0000 (22:57 +0000)]
net.httpserver: Log when an error occurs inside a HTTP request handler

13 years agoprosodyctl, util.prosodyctl: Move UI functions to util.prosodyctl so they can be...
Matthew Wild [Sun, 13 Feb 2011 19:28:29 +0000 (19:28 +0000)]
prosodyctl, util.prosodyctl: Move UI functions to util.prosodyctl so they can be used outside of prosodyctl itself

13 years agoprosodyctl, util.prosodyctl: Move UI functions to util.prosodyctl so they can be...
Matthew Wild [Sun, 13 Feb 2011 19:28:29 +0000 (19:28 +0000)]
prosodyctl, util.prosodyctl: Move UI functions to util.prosodyctl so they can be used outside of prosodyctl itself

13 years agologgingmanager: Allow specifying a sink type in per-level logging config (thanks...
Matthew Wild [Sun, 13 Feb 2011 18:37:34 +0000 (18:37 +0000)]
loggingmanager: Allow specifying a sink type in per-level logging config (thanks ruskie)

13 years agologgingmanager: Allow specifying a sink type in per-level logging config (thanks...
Matthew Wild [Sun, 13 Feb 2011 18:37:34 +0000 (18:37 +0000)]
loggingmanager: Allow specifying a sink type in per-level logging config (thanks ruskie)

13 years agologgingmanager: Iterate over logging config rules using ipairs rather than pairs
Matthew Wild [Sun, 13 Feb 2011 18:35:39 +0000 (18:35 +0000)]
loggingmanager: Iterate over logging config rules using ipairs rather than pairs

13 years agologgingmanager: Iterate over logging config rules using ipairs rather than pairs
Matthew Wild [Sun, 13 Feb 2011 18:35:39 +0000 (18:35 +0000)]
loggingmanager: Iterate over logging config rules using ipairs rather than pairs

13 years agomod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
Matthew Wild [Thu, 10 Feb 2011 21:09:20 +0000 (21:09 +0000)]
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)

13 years agomod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)
Matthew Wild [Thu, 10 Feb 2011 21:09:20 +0000 (21:09 +0000)]
mod_presence: Bounce errors for invalid presence types (thanks nolan/Astro)

13 years agoTODO: Update for 0.9 milestones
Matthew Wild [Tue, 1 Feb 2011 02:33:50 +0000 (02:33 +0000)]
TODO: Update for 0.9 milestones

13 years agoTODO: Update for 0.9 milestones
Matthew Wild [Tue, 1 Feb 2011 02:33:50 +0000 (02:33 +0000)]
TODO: Update for 0.9 milestones

13 years agoMerge 0.8->trunk.
Waqas Hussain [Thu, 3 Feb 2011 08:18:20 +0000 (13:18 +0500)]
Merge 0.8->trunk.

13 years agoutil.stanza: Make some globals local, so they don't clutter the global checking scrip...
Waqas Hussain [Thu, 3 Feb 2011 08:13:49 +0000 (13:13 +0500)]
util.stanza: Make some globals local, so they don't clutter the global checking script's output. It's also a minor optimization ;)

13 years agomodulemanager: Fix disabling a module on a single host
Paul Aurich [Wed, 2 Feb 2011 01:56:16 +0000 (17:56 -0800)]
modulemanager: Fix disabling a module on a single host

13 years agoTODO: Remove 0.8 milestones
Matthew Wild [Tue, 1 Feb 2011 02:32:07 +0000 (02:32 +0000)]
TODO: Remove 0.8 milestones

13 years agoTODO: Remove 0.8 milestones
Matthew Wild [Tue, 1 Feb 2011 02:32:07 +0000 (02:32 +0000)]
TODO: Remove 0.8 milestones

13 years agoMerge 0.8->trunk
Matthew Wild [Mon, 31 Jan 2011 23:17:11 +0000 (23:17 +0000)]
Merge 0.8->trunk

13 years agoutil.stanza: Add get_child_text() method to get the text of the specified child eleme...
Matthew Wild [Mon, 31 Jan 2011 13:05:49 +0000 (13:05 +0000)]
util.stanza: Add get_child_text() method to get the text of the specified child element (get_child() + get_text() rolled into one step)

13 years agoMerge 0.8->trunk
Waqas Hussain [Fri, 28 Jan 2011 23:54:08 +0000 (04:54 +0500)]
Merge 0.8->trunk

13 years agostanza_router: Return a <bad-request/> error on invalid IQ type.
Waqas Hussain [Fri, 28 Jan 2011 23:42:56 +0000 (04:42 +0500)]
stanza_router: Return a <bad-request/> error on invalid IQ type.

13 years agomod_ping: Use util.datetime to generate timestamp in ad-hoc command response (instead...
Waqas Hussain [Fri, 28 Jan 2011 23:42:05 +0000 (04:42 +0500)]
mod_ping: Use util.datetime to generate timestamp in ad-hoc command response (instead of the current use of os.date, which doesn't take timezone into account).

13 years agowindows.c: Return nil,err from functions instead of throwing errors.
Waqas Hussain [Fri, 28 Jan 2011 23:40:43 +0000 (04:40 +0500)]
windows.c: Return nil,err from functions instead of throwing errors.

13 years agos2smanager: Change 'Connection failed' error message text to 'Server-to-server connec...
Matthew Wild [Wed, 26 Jan 2011 13:23:39 +0000 (13:23 +0000)]
s2smanager: Change 'Connection failed' error message text to 'Server-to-server connection failed' (thanks Paul)

13 years agoMerge 0.8->trunk
Matthew Wild [Fri, 21 Jan 2011 14:02:56 +0000 (14:02 +0000)]
Merge 0.8->trunk

13 years agonet.dns: Fix tostring() for SRV records
Matthew Wild [Fri, 21 Jan 2011 14:02:02 +0000 (14:02 +0000)]
net.dns: Fix tostring() for SRV records

13 years agoprosody: Add config option plugin_path to allow overriding plugin directories.
Waqas Hussain [Thu, 20 Jan 2011 23:36:31 +0000 (04:36 +0500)]
prosody: Add config option plugin_path to allow overriding plugin directories.

13 years agoprosody: Add config option plugin_path to allow overriding plugin directories.
Waqas Hussain [Thu, 20 Jan 2011 23:36:31 +0000 (04:36 +0500)]
prosody: Add config option plugin_path to allow overriding plugin directories.

13 years agoutil.pluginloader: Add support for multiple plugin directories.
Waqas Hussain [Thu, 20 Jan 2011 23:35:49 +0000 (04:35 +0500)]
util.pluginloader: Add support for multiple plugin directories.

13 years agoutil.pluginloader: Add support for multiple plugin directories.
Waqas Hussain [Thu, 20 Jan 2011 23:35:49 +0000 (04:35 +0500)]
util.pluginloader: Add support for multiple plugin directories.

13 years agomod_pubsub: Don't force-load mod_iq.
Waqas Hussain [Thu, 20 Jan 2011 23:27:46 +0000 (04:27 +0500)]
mod_pubsub: Don't force-load mod_iq.

13 years agoMUC: Add option to allow participants to change the subject.
Kim Alvefur [Fri, 14 Jan 2011 14:52:36 +0000 (15:52 +0100)]
MUC: Add option to allow participants to change the subject.

13 years agoMerge with waqas
Matthew Wild [Thu, 24 Feb 2011 01:40:47 +0000 (01:40 +0000)]
Merge with waqas

13 years agoutil.stanza: Clean up matching_tags() and replace :childtags() with it
Matthew Wild [Sat, 19 Feb 2011 02:31:06 +0000 (02:31 +0000)]
util.stanza: Clean up matching_tags() and replace :childtags() with it

13 years agoMUC: Add option to allow participants to change the subject.
Kim Alvefur [Fri, 14 Jan 2011 14:52:36 +0000 (15:52 +0100)]
MUC: Add option to allow participants to change the subject.

13 years agologgingmanager: Fix reading configuration of timestamps for console output.
Waqas Hussain [Wed, 12 Jan 2011 21:33:50 +0000 (02:33 +0500)]
loggingmanager: Fix reading configuration of timestamps for console output.