prosody.git
11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 19 Sep 2012 11:14:08 +0000 (12:14 +0100)]
Merge 0.9->trunk

11 years agomod_storage_sql: Remove obsolete comment
Matthew Wild [Wed, 19 Sep 2012 11:09:27 +0000 (12:09 +0100)]
mod_storage_sql: Remove obsolete comment

11 years agostoragemanager: Remove usage of 'core' when calling configmanager.get()
Matthew Wild [Wed, 19 Sep 2012 11:08:33 +0000 (12:08 +0100)]
storagemanager: Remove usage of 'core' when calling configmanager.get()

11 years agostoragemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with...
Kim Alvefur [Mon, 17 Sep 2012 03:42:10 +0000 (05:42 +0200)]
storagemanager, datamanager, mod_storage_{internal,sql}: Replace list_stores() with an iterator version

11 years agostoragemanager: Add purge() for purging user data from all backends in use
Kim Alvefur [Sun, 16 Sep 2012 00:18:07 +0000 (02:18 +0200)]
storagemanager: Add purge() for purging user data from all backends in use

11 years agomod_admin_telnet: Fix user:*, correct names, docs, do validation
Kim Alvefur [Sat, 15 Sep 2012 21:00:59 +0000 (23:00 +0200)]
mod_admin_telnet: Fix user:*, correct names, docs, do validation

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 13 Sep 2012 17:49:25 +0000 (18:49 +0100)]
Merge 0.9->trunk

11 years agomod_legacyauth: Fix for sending error response to unauthed s2s connections
Matthew Wild [Thu, 13 Sep 2012 17:48:35 +0000 (18:48 +0100)]
mod_legacyauth: Fix for sending error response to unauthed s2s connections

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 13 Sep 2012 17:32:24 +0000 (18:32 +0100)]
Merge 0.9->trunk

11 years agoconfigmanager: Fix include of relative files via Include directive in config
Matthew Wild [Thu, 13 Sep 2012 17:31:34 +0000 (18:31 +0100)]
configmanager: Fix include of relative files via Include directive in config

11 years agohostmanager, modulemanager: Ensure hosts[*].modules always exists.
Waqas Hussain [Wed, 12 Sep 2012 19:32:12 +0000 (00:32 +0500)]
hostmanager, modulemanager: Ensure hosts[*].modules always exists.

11 years agomod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.
Waqas Hussain [Wed, 12 Sep 2012 18:46:10 +0000 (23:46 +0500)]
mod_storage_*: Don't explicitly set driver name, to ease copying/renaming modules.

11 years agocore.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow...
Waqas Hussain [Wed, 12 Sep 2012 18:41:28 +0000 (23:41 +0500)]
core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides().

11 years agomod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instea...
Waqas Hussain [Wed, 12 Sep 2012 17:22:31 +0000 (22:22 +0500)]
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().

11 years agoMerge 0.9->trunk
Waqas Hussain [Wed, 12 Sep 2012 17:03:57 +0000 (22:03 +0500)]
Merge 0.9->trunk

11 years agoutil.datamanager: Make the util.pposix dependency optional.
Waqas Hussain [Wed, 12 Sep 2012 17:03:06 +0000 (22:03 +0500)]
util.datamanager: Make the util.pposix dependency optional.

11 years agomod_auth_*: Use module:provides().
Waqas Hussain [Wed, 12 Sep 2012 16:41:51 +0000 (21:41 +0500)]
mod_auth_*: Use module:provides().

11 years agomod_auth_internal_hashed: Get rid of useless wrapper function new_hashpass_provider.
Waqas Hussain [Wed, 12 Sep 2012 16:40:00 +0000 (21:40 +0500)]
mod_auth_internal_hashed: Get rid of useless wrapper function new_hashpass_provider.

11 years agomod_auth_{internal_plain,cyrus,anonymous}: Get rid of useless wrapper function new_de...
Waqas Hussain [Wed, 12 Sep 2012 16:32:12 +0000 (21:32 +0500)]
mod_auth_{internal_plain,cyrus,anonymous}: Get rid of useless wrapper function new_default_provider.

11 years agoMerge 0.9->trunk
Matthew Wild [Mon, 10 Sep 2012 22:17:06 +0000 (23:17 +0100)]
Merge 0.9->trunk

11 years agomod_dialback: Correctly check if a connection was destroyed (thanks iron)
Kim Alvefur [Wed, 5 Sep 2012 14:51:16 +0000 (16:51 +0200)]
mod_dialback: Correctly check if a connection was destroyed (thanks iron)

11 years agomod_s2s: Check that an SRV reply isn't empty.
Kim Alvefur [Mon, 3 Sep 2012 02:22:40 +0000 (04:22 +0200)]
mod_s2s: Check that an SRV reply isn't empty.

11 years agostoragemanager: Fix arguments
Kim Alvefur [Fri, 31 Aug 2012 15:31:35 +0000 (17:31 +0200)]
storagemanager: Fix arguments

11 years agostoragemanager: Fix indentation
Kim Alvefur [Fri, 31 Aug 2012 15:22:03 +0000 (17:22 +0200)]
storagemanager: Fix indentation

11 years agotools/jabberd14sql2prosody: Initial commit. Accounts, rosters, vCards, subscriptions...
Waqas Hussain [Tue, 28 Aug 2012 00:52:30 +0000 (05:52 +0500)]
tools/jabberd14sql2prosody: Initial commit. Accounts, rosters, vCards, subscriptions and offline messages supported (thanks halfdan for all the testing).

11 years agoMerge 0.9->trunk
Waqas Hussain [Tue, 28 Aug 2012 00:12:25 +0000 (05:12 +0500)]
Merge 0.9->trunk

11 years agoutil.datetime: Fix timestamp parsing pattern.
Waqas Hussain [Tue, 28 Aug 2012 00:08:18 +0000 (05:08 +0500)]
util.datetime: Fix timestamp parsing pattern.

11 years agoMerge 0.9->trunk
Matthew Wild [Sun, 26 Aug 2012 22:57:12 +0000 (23:57 +0100)]
Merge 0.9->trunk

11 years agos2smanager: missing return on session.send function.
Marco Cirillo [Sun, 26 Aug 2012 22:54:10 +0000 (22:54 +0000)]
s2smanager: missing return on session.send function.

11 years agoMerge 0.9->trunk
Matthew Wild [Sun, 26 Aug 2012 18:58:59 +0000 (19:58 +0100)]
Merge 0.9->trunk

11 years agoutil.datamanager: Ignore errors if the file is gone after removing it
Kim Alvefur [Sun, 26 Aug 2012 18:53:40 +0000 (20:53 +0200)]
util.datamanager: Ignore errors if the file is gone after removing it

11 years agoutil.prosodyctl: Use usermanager to delete users instead of unsetting their password
Kim Alvefur [Fri, 24 Aug 2012 23:33:01 +0000 (01:33 +0200)]
util.prosodyctl: Use usermanager to delete users instead of unsetting their password

11 years agoprosodyctl: Use util.prosodyctl.deluser
Kim Alvefur [Fri, 24 Aug 2012 23:32:26 +0000 (01:32 +0200)]
prosodyctl: Use util.prosodyctl.deluser

11 years agomod_admin_adhoc: Use usermanager.delete_user to delete users
Kim Alvefur [Fri, 24 Aug 2012 23:31:49 +0000 (01:31 +0200)]
mod_admin_adhoc: Use usermanager.delete_user to delete users

11 years agomod_roster: When an user is deleted, unsubscribe from their contacts
Kim Alvefur [Fri, 24 Aug 2012 23:31:05 +0000 (01:31 +0200)]
mod_roster: When an user is deleted, unsubscribe from their contacts

11 years agomod_register: Hijack the session close call to send the final iq reply when deleting
Kim Alvefur [Fri, 24 Aug 2012 23:29:38 +0000 (01:29 +0200)]
mod_register: Hijack the session close call to send the final iq reply when deleting

11 years agomod_c2s: When a user gets deleted, drop all their sessions
Kim Alvefur [Fri, 24 Aug 2012 23:28:38 +0000 (01:28 +0200)]
mod_c2s: When a user gets deleted, drop all their sessions

11 years agomod_register: Remove all account cleanup
Kim Alvefur [Fri, 24 Aug 2012 23:27:23 +0000 (01:27 +0200)]
mod_register: Remove all account cleanup

11 years agoutil.datamanager: Collect errors when deleting all stores of a user, but ignore ...
Kim Alvefur [Fri, 24 Aug 2012 23:21:41 +0000 (01:21 +0200)]
util.datamanager: Collect errors when deleting all stores of a user, but ignore "no such file"

11 years agocore.usermanager: Don't close sessions ourselves when deleting users. Instead, fire...
Kim Alvefur [Fri, 24 Aug 2012 23:20:13 +0000 (01:20 +0200)]
core.usermanager: Don't close sessions ourselves when deleting users. Instead, fire an event that modules can hook.

11 years agomod_http: Rework how module:http_url() builds the url.
Kim Alvefur [Tue, 21 Aug 2012 19:10:54 +0000 (21:10 +0200)]
mod_http: Rework how module:http_url() builds the url.

11 years agomod_http: Don't produce paths with double / if a module is set to serve /
Kim Alvefur [Tue, 21 Aug 2012 19:03:20 +0000 (21:03 +0200)]
mod_http: Don't produce paths with double / if a module is set to serve /

11 years agotools/xep227toprosody.lua: Update childtags calls, replace some with ipairs
Kim Alvefur [Tue, 21 Aug 2012 16:03:40 +0000 (18:03 +0200)]
tools/xep227toprosody.lua: Update childtags calls, replace some with ipairs

11 years agoutil.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)
Kim Alvefur [Tue, 21 Aug 2012 13:33:07 +0000 (15:33 +0200)]
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44)

11 years agotools/openfire2prosody: Initial commit.
Waqas Hussain [Sat, 11 Aug 2012 01:14:12 +0000 (06:14 +0500)]
tools/openfire2prosody: Initial commit.

11 years agoMerge 0.9->trunk
Matthew Wild [Fri, 10 Aug 2012 15:32:40 +0000 (16:32 +0100)]
Merge 0.9->trunk

11 years agoportmanager: Support 'local_interfaces' config option (default for private listeners...
Matthew Wild [Fri, 10 Aug 2012 15:31:51 +0000 (16:31 +0100)]
portmanager: Support 'local_interfaces' config option (default for private listeners like components, telnet, etc.) (thanks mva)

11 years agoMUC: Fix a traceback caused by private IQ result and error stanzas where the encoded...
Waqas Hussain [Thu, 9 Aug 2012 02:17:25 +0000 (07:17 +0500)]
MUC: Fix a traceback caused by private IQ result and error stanzas where the encoded id can't be processed.

11 years agoutil.array: Accept an iterator to the array constructor
Matthew Wild [Wed, 8 Aug 2012 10:49:31 +0000 (11:49 +0100)]
util.array: Accept an iterator to the array constructor

11 years agomod_legacyauth: Remove unused variable
Kim Alvefur [Tue, 7 Aug 2012 15:01:07 +0000 (17:01 +0200)]
mod_legacyauth: Remove unused variable

11 years agomod_legacyauth: Return an error if username or resource fails stringprep (thanks...
Kim Alvefur [Tue, 7 Aug 2012 15:00:12 +0000 (17:00 +0200)]
mod_legacyauth: Return an error if username or resource fails stringprep (thanks iron)

11 years agoMerge 0.9->trunk (who has been pushing to trunk?)
Matthew Wild [Sun, 5 Aug 2012 16:21:19 +0000 (17:21 +0100)]
Merge 0.9->trunk (who has been pushing to trunk?)

11 years agohostmanager, mod_disco: Show optional 'name' option from the config in disco#items...
Matthew Wild [Sun, 5 Aug 2012 16:18:35 +0000 (17:18 +0100)]
hostmanager, mod_disco: Show optional 'name' option from the config in disco#items queries (fixes use-case in #292) (thanks diSabler, mva)

11 years agotools/erlparse: Handle decimal point in numbers.
Waqas Hussain [Sat, 4 Aug 2012 18:55:52 +0000 (23:55 +0500)]
tools/erlparse: Handle decimal point in numbers.

11 years agotools/erlparse: Fix erlang string escape sequences.
Waqas Hussain [Sat, 4 Aug 2012 18:23:49 +0000 (23:23 +0500)]
tools/erlparse: Fix erlang string escape sequences.

11 years agoMUC: Fix private IQ results and errors for non-vcard queries.
Waqas Hussain [Sat, 4 Aug 2012 18:22:16 +0000 (23:22 +0500)]
MUC: Fix private IQ results and errors for non-vcard queries.

11 years agomoduleapi: Clarify comment
Matthew Wild [Fri, 3 Aug 2012 13:07:41 +0000 (14:07 +0100)]
moduleapi: Clarify comment

11 years agomod_admin_adhoc, mod_announce: Explicitly specify possible actions for ad-hoc commands
Florian Zeitz [Thu, 2 Aug 2012 19:42:00 +0000 (21:42 +0200)]
mod_admin_adhoc, mod_announce: Explicitly specify possible actions for ad-hoc commands

11 years agomod_adhoc: Add support for specifying a default action
Florian Zeitz [Thu, 2 Aug 2012 19:28:14 +0000 (21:28 +0200)]
mod_adhoc: Add support for specifying a default action

11 years agomod_muc: Fix syntax error (thanks Florob)
Matthew Wild [Wed, 1 Aug 2012 00:33:21 +0000 (01:33 +0100)]
mod_muc: Fix syntax error (thanks Florob)

11 years agoutil.pluginloader: Remove unused imports
Matthew Wild [Wed, 1 Aug 2012 00:27:42 +0000 (01:27 +0100)]
util.pluginloader: Remove unused imports

11 years agoutil.pluginloader: Expose load_file
Matthew Wild [Wed, 1 Aug 2012 00:27:31 +0000 (01:27 +0100)]
util.pluginloader: Expose load_file

11 years agomod_bosh: Remove redundant code (send stream features in only one place) (thanks...
Matthew Wild [Wed, 1 Aug 2012 00:03:53 +0000 (01:03 +0100)]
mod_bosh: Remove redundant code (send stream features in only one place) (thanks Zash)

11 years agomod_bosh: Remove troublesome return... continue processing of the streamopen after...
Matthew Wild [Tue, 31 Jul 2012 23:39:54 +0000 (00:39 +0100)]
mod_bosh: Remove troublesome return... continue processing of the streamopen after session creation (because since 16c7b510694b we no longer send an early response)

11 years agoMerge Waqas<>Zash
Matthew Wild [Tue, 31 Jul 2012 22:07:02 +0000 (23:07 +0100)]
Merge Waqas<>Zash

11 years agoutil.pposix: Put the warning back, mention how we might still use posix_fallocate()
Kim Alvefur [Tue, 31 Jul 2012 21:43:34 +0000 (23:43 +0200)]
util.pposix: Put the warning back, mention how we might still use posix_fallocate()

11 years agoutil.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system
Kim Alvefur [Tue, 31 Jul 2012 21:38:02 +0000 (23:38 +0200)]
util.pposix: Try posix_fallocate() if fallocate() is unsupported by the file system

11 years agoutil.datamanager: Try to open in read+write mode, then retry with write mode if that...
Kim Alvefur [Tue, 31 Jul 2012 21:34:11 +0000 (23:34 +0200)]
util.datamanager: Try to open in read+write mode, then retry with write mode if that fails (usually because it doesn't exist)

11 years agoutil.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng...
Waqas Hussain [Tue, 31 Jul 2012 20:36:34 +0000 (01:36 +0500)]
util.datamanager: Don't use os.rename on non-POSIX. It doesn't overwrite exisitng files on Windows.

11 years agoMUC: Give host and server admins "owner" affiliation in all rooms.
Waqas Hussain [Tue, 31 Jul 2012 20:36:30 +0000 (01:36 +0500)]
MUC: Give host and server admins "owner" affiliation in all rooms.

11 years agoMUC: Expose room metatable in the MUC lib.
Waqas Hussain [Tue, 31 Jul 2012 20:36:25 +0000 (01:36 +0500)]
MUC: Expose room metatable in the MUC lib.

11 years agoMUC: Send unavailable presence when the component or server is shutting down.
Waqas Hussain [Tue, 31 Jul 2012 20:36:22 +0000 (01:36 +0500)]
MUC: Send unavailable presence when the component or server is shutting down.

11 years agoMUC: Fix private IQ and message routing.
Waqas Hussain [Tue, 31 Jul 2012 20:36:19 +0000 (01:36 +0500)]
MUC: Fix private IQ and message routing.

- All private IQ results are now routed to the resource that send the original request
- Private messages are now routed to all of the user's sessions
- Much cleaner code

11 years agomod_presence, rostermanager: Bring outbound subscription cancellation in line with...
Waqas Hussain [Tue, 31 Jul 2012 20:36:16 +0000 (01:36 +0500)]
mod_presence, rostermanager: Bring outbound subscription cancellation in line with RFC6121.

11 years agomod_component: For disconnected external components, if a name is specified in config...
Waqas Hussain [Tue, 31 Jul 2012 20:36:13 +0000 (01:36 +0500)]
mod_component: For disconnected external components, if a name is specified in config, return it in disco#info replies.

11 years agoMUC: Return <item-not-found/> on message and iq to non-existent rooms (thanks Maranda).
Waqas Hussain [Tue, 31 Jul 2012 20:36:11 +0000 (01:36 +0500)]
MUC: Return <item-not-found/> on message and iq to non-existent rooms (thanks Maranda).

11 years agoutil.datamanager: Add missing mode flag to seek call
Kim Alvefur [Tue, 31 Jul 2012 06:23:55 +0000 (08:23 +0200)]
util.datamanager: Add missing mode flag to seek call

11 years agomod_storage_sql: Return connection from connect even if already connected (thanks...
Matthew Wild [Mon, 30 Jul 2012 17:50:46 +0000 (18:50 +0100)]
mod_storage_sql: Return connection from connect even if already connected (thanks IRON)

11 years agomod_storage_sql: Complete transactions in list_stores and purge
Kim Alvefur [Mon, 30 Jul 2012 04:01:41 +0000 (06:01 +0200)]
mod_storage_sql: Complete transactions in list_stores and purge

11 years agomod_storage_sql: Keep connections in a shared cache table
Kim Alvefur [Sun, 29 Jul 2012 23:54:07 +0000 (01:54 +0200)]
mod_storage_sql: Keep connections in a shared cache table

11 years agomoduleapi: If path name ends with '-cache' create table as weak (keys and values)
Matthew Wild [Sun, 29 Jul 2012 23:40:02 +0000 (00:40 +0100)]
moduleapi: If path name ends with '-cache' create table as weak (keys and values)

11 years agoutil.pposix: Warn about posix_fallocate
Kim Alvefur [Sun, 29 Jul 2012 20:21:58 +0000 (22:21 +0200)]
util.pposix: Warn about posix_fallocate

11 years agoutil.datamanager: Remove a few unused imports
Kim Alvefur [Sun, 29 Jul 2012 01:30:59 +0000 (03:30 +0200)]
util.datamanager: Remove a few unused imports

11 years agoMerge with Zash
Matthew Wild [Sun, 29 Jul 2012 01:28:25 +0000 (02:28 +0100)]
Merge with Zash

11 years agoportmanager: Remove unused import of 'pairs'
Matthew Wild [Sun, 29 Jul 2012 01:27:07 +0000 (02:27 +0100)]
portmanager: Remove unused import of 'pairs'

11 years agoutil.datamanager: Write to a temporary file and atomically move it into place
Kim Alvefur [Sun, 29 Jul 2012 01:26:03 +0000 (03:26 +0200)]
util.datamanager: Write to a temporary file and atomically move it into place

11 years agomod_bosh: Correctly handle data included in the session initiation request, and cork...
Matthew Wild [Sun, 29 Jul 2012 00:56:45 +0000 (01:56 +0100)]
mod_bosh: Correctly handle data included in the session initiation request, and cork session while a request is being processed, preventing replying to requests when there may be more data to come, reducing round-trips.

11 years agoconfigure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()
Kim Alvefur [Sat, 28 Jul 2012 23:37:15 +0000 (01:37 +0200)]
configure: Add _GNU_SOURCE flag to linux and debian presets to enable Linux fallocate()

11 years agoutil.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a...
Kim Alvefur [Sat, 28 Jul 2012 20:37:24 +0000 (22:37 +0200)]
util.datamanager: Use pposix.fallocate() to make sure appends succeed. Also add a fallback fallocate()

11 years agoutil.pposix: Add fallocate method, backed by either posix_fallocate() or Linux falloc...
Kim Alvefur [Sat, 28 Jul 2012 20:21:10 +0000 (22:21 +0200)]
util.pposix: Add fallocate method, backed by either posix_fallocate() or Linux fallocate()

11 years agoMerge with Zash
Matthew Wild [Sat, 28 Jul 2012 19:59:03 +0000 (20:59 +0100)]
Merge with Zash

11 years agousermanager: Add method for deleting a user
Kim Alvefur [Sat, 28 Jul 2012 19:55:05 +0000 (21:55 +0200)]
usermanager: Add method for deleting a user

11 years agostoragemanager: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:38:22 +0000 (21:38 +0200)]
storagemanager: Add method for removing all data belonging to a user

11 years agomod_storage_sql: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:36:42 +0000 (21:36 +0200)]
mod_storage_sql: Add method for removing all data belonging to a user

11 years agomod_storage_internal: Add method for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:36:36 +0000 (21:36 +0200)]
mod_storage_internal: Add method for removing all data belonging to a user

11 years agoutil.datamanager: Add function for removing all data belonging to a user
Kim Alvefur [Sat, 28 Jul 2012 19:31:54 +0000 (21:31 +0200)]
util.datamanager: Add function for removing all data belonging to a user

11 years agostoragemanager: Add method for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:30:54 +0000 (21:30 +0200)]
storagemanager: Add method for listing stores

11 years agostoragemanager: Split out driver choosing from the open() method
Kim Alvefur [Sat, 28 Jul 2012 19:30:24 +0000 (21:30 +0200)]
storagemanager: Split out driver choosing from the open() method

11 years agomod_storage_sql: Add method for listing stores
Kim Alvefur [Sat, 28 Jul 2012 19:27:45 +0000 (21:27 +0200)]
mod_storage_sql: Add method for listing stores

11 years agomod_storage_sql: Split out query handling logic from getsql() into a separate function
Kim Alvefur [Sat, 28 Jul 2012 19:26:33 +0000 (21:26 +0200)]
mod_storage_sql: Split out query handling logic from getsql() into a separate function