prosody.git
11 years agomod_http_files: Export function can be used by other modules to serve files. Don...
Kim Alvefur [Fri, 21 Dec 2012 16:54:43 +0000 (17:54 +0100)]
mod_http_files: Export function can be used by other modules to serve files. Don't serve files by default unless http_files_dir is set

11 years agomod_http_files: Rename config options and variable names
Kim Alvefur [Fri, 21 Dec 2012 16:22:19 +0000 (17:22 +0100)]
mod_http_files: Rename config options and variable names

11 years agomod_http_files: Log the error if we can't open or read a file
Kim Alvefur [Fri, 21 Dec 2012 15:10:45 +0000 (16:10 +0100)]
mod_http_files: Log the error if we can't open or read a file

11 years agonet.http.parser: Skip url.parse when we don't have a full URL (also fixes traceback...
Waqas Hussain [Fri, 21 Dec 2012 08:37:39 +0000 (13:37 +0500)]
net.http.parser: Skip url.parse when we don't have a full URL (also fixes traceback on paths starting with '//').

11 years agoMerge 0.9->trunk
Kim Alvefur [Fri, 21 Dec 2012 08:04:54 +0000 (09:04 +0100)]
Merge 0.9->trunk

11 years agomod_http_files: Escape paths in redirects
Kim Alvefur [Fri, 21 Dec 2012 08:04:02 +0000 (09:04 +0100)]
mod_http_files: Escape paths in redirects

11 years agomod_http_files: Only match on modification date when if-none-match is not present
Kim Alvefur [Fri, 21 Dec 2012 07:27:14 +0000 (08:27 +0100)]
mod_http_files: Only match on modification date when if-none-match is not present

11 years agomod_http_files: Only serve cached data if etag is unchanged.
Kim Alvefur [Fri, 21 Dec 2012 07:25:09 +0000 (08:25 +0100)]
mod_http_files: Only serve cached data if etag is unchanged.

11 years agomod_http_files: Make sure file extensions are not nil or empty string
Kim Alvefur [Fri, 21 Dec 2012 07:19:58 +0000 (08:19 +0100)]
mod_http_files: Make sure file extensions are not nil or empty string

11 years agomod_http_files: Avoid a bunch of table lookups
Kim Alvefur [Fri, 21 Dec 2012 07:14:33 +0000 (08:14 +0100)]
mod_http_files: Avoid a bunch of table lookups

11 years agomod_http_files: No use in closing a file handle if we couldn't open it
Kim Alvefur [Fri, 21 Dec 2012 07:10:07 +0000 (08:10 +0100)]
mod_http_files: No use in closing a file handle if we couldn't open it

11 years agoMerge 0.9->trunk
Kim Alvefur [Sun, 16 Dec 2012 13:36:44 +0000 (14:36 +0100)]
Merge 0.9->trunk

11 years agoutil.datamanager: Don't escape the name of a store
Kim Alvefur [Sun, 16 Dec 2012 13:36:24 +0000 (14:36 +0100)]
util.datamanager: Don't escape the name of a store

11 years agoMerge 0.9->trunk
Kim Alvefur [Sun, 16 Dec 2012 07:37:14 +0000 (08:37 +0100)]
Merge 0.9->trunk

11 years agomod_http_files: Compare If-Modified-Since to last modification date
Kim Alvefur [Sun, 16 Dec 2012 07:34:50 +0000 (08:34 +0100)]
mod_http_files: Compare If-Modified-Since to last modification date

11 years agomod_http_files: Fix caching the stringified directory index
Kim Alvefur [Sun, 16 Dec 2012 07:17:28 +0000 (08:17 +0100)]
mod_http_files: Fix caching the stringified directory index

11 years agoMerge 0.9->trunk
Kim Alvefur [Sat, 15 Dec 2012 04:35:43 +0000 (05:35 +0100)]
Merge 0.9->trunk

11 years agoMerge
Kim Alvefur [Sat, 15 Dec 2012 04:34:30 +0000 (05:34 +0100)]
Merge

11 years agoMerge 0.9->trunk
Waqas Hussain [Sat, 15 Dec 2012 02:12:32 +0000 (07:12 +0500)]
Merge 0.9->trunk

11 years agoMUC: Support invite messages when stanza type is explicitly set to "normal" or to...
Waqas Hussain [Sat, 15 Dec 2012 02:08:54 +0000 (07:08 +0500)]
MUC: Support invite messages when stanza type is explicitly set to "normal" or to an unknown value.

11 years agoutil.sasl.plain: Reduce some code.
Waqas Hussain [Sat, 15 Dec 2012 02:06:45 +0000 (07:06 +0500)]
util.sasl.plain: Reduce some code.

11 years agoutil.datamanager: Remove unused variable
Kim Alvefur [Fri, 14 Dec 2012 13:25:58 +0000 (14:25 +0100)]
util.datamanager: Remove unused variable

11 years agoutil.datamanager: Remove dead code path
Kim Alvefur [Fri, 14 Dec 2012 13:21:32 +0000 (14:21 +0100)]
util.datamanager: Remove dead code path

11 years agoMerge 0.9->trunk
Kim Alvefur [Tue, 11 Dec 2012 22:41:02 +0000 (23:41 +0100)]
Merge 0.9->trunk

11 years agomod_http_files: Generate simple directory index.
Kim Alvefur [Tue, 11 Dec 2012 22:40:30 +0000 (23:40 +0100)]
mod_http_files: Generate simple directory index.

11 years agomod_http_files: Have mimetypes in a shared table. Get mimetypes from /etc/mime.types...
Kim Alvefur [Tue, 11 Dec 2012 22:21:25 +0000 (23:21 +0100)]
mod_http_files: Have mimetypes in a shared table. Get mimetypes from /etc/mime.types if exists.

11 years agomod_http_files: Cache data read from disk in a weak table
Kim Alvefur [Tue, 11 Dec 2012 22:02:06 +0000 (23:02 +0100)]
mod_http_files: Cache data read from disk in a weak table

11 years agomod_http_files: Add Last-Modified header
Kim Alvefur [Tue, 11 Dec 2012 21:30:50 +0000 (22:30 +0100)]
mod_http_files: Add Last-Modified header

11 years agomod_http_files: Add ETag and check If-None-Match to allow client-side cache
Kim Alvefur [Tue, 11 Dec 2012 21:30:13 +0000 (22:30 +0100)]
mod_http_files: Add ETag and check If-None-Match to allow client-side cache

11 years agomod_http_files: Return 404 faster if file does not exist
Kim Alvefur [Tue, 11 Dec 2012 21:26:41 +0000 (22:26 +0100)]
mod_http_files: Return 404 faster if file does not exist

11 years agomod_http_files: Configurable number of index files to check for
Kim Alvefur [Tue, 11 Dec 2012 21:14:55 +0000 (22:14 +0100)]
mod_http_files: Configurable number of index files to check for

11 years agoMerge 0.9->trunk
Kim Alvefur [Sun, 9 Dec 2012 11:39:49 +0000 (12:39 +0100)]
Merge 0.9->trunk

11 years agomod_http: Fix path length pattern
Kim Alvefur [Sun, 9 Dec 2012 11:20:55 +0000 (12:20 +0100)]
mod_http: Fix path length pattern

11 years agomod_auth_anonymous: Implement user iteration API
Kim Alvefur [Sun, 9 Dec 2012 11:19:08 +0000 (12:19 +0100)]
mod_auth_anonymous: Implement user iteration API

11 years agomod_c2s: Check if TLS compression is used
Kim Alvefur [Sun, 9 Dec 2012 10:50:09 +0000 (11:50 +0100)]
mod_c2s: Check if TLS compression is used

11 years agomod_admin_telnet: Improve wording when listing users
Kim Alvefur [Sun, 9 Dec 2012 10:44:45 +0000 (11:44 +0100)]
mod_admin_telnet: Improve wording when listing users

11 years agoMerge
Matthew Wild [Tue, 4 Dec 2012 20:11:41 +0000 (20:11 +0000)]
Merge

11 years agoportmanager: Return first service with the specified name from get_service() (instead...
Matthew Wild [Tue, 4 Dec 2012 20:08:44 +0000 (20:08 +0000)]
portmanager: Return first service with the specified name from get_service() (instead of the array of possible services) (thanks xnyhps)

11 years agoMerge 0.9->trunk.
Waqas Hussain [Mon, 3 Dec 2012 05:04:34 +0000 (10:04 +0500)]
Merge 0.9->trunk.

11 years agoutil.xml: Fix module name.
Waqas Hussain [Mon, 3 Dec 2012 05:01:46 +0000 (10:01 +0500)]
util.xml: Fix module name.

11 years agonet.http.parser: Fix syntax error introduced in c5edb08fc7cb.
Waqas Hussain [Mon, 3 Dec 2012 05:01:06 +0000 (10:01 +0500)]
net.http.parser: Fix syntax error introduced in c5edb08fc7cb.

11 years agoMerge 0.9->trunk.
Waqas Hussain [Mon, 3 Dec 2012 01:07:00 +0000 (06:07 +0500)]
Merge 0.9->trunk.

11 years agoplugins/storage/xmlparse.lib.lua: Delete.
Waqas Hussain [Mon, 3 Dec 2012 00:50:39 +0000 (05:50 +0500)]
plugins/storage/xmlparse.lib.lua: Delete.

11 years agoplugins/storage/mod_xep0227: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:49:05 +0000 (05:49 +0500)]
plugins/storage/mod_xep0227: Use util.xml.

11 years agotools/migration/migrator/jabberd14: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:44:48 +0000 (05:44 +0500)]
tools/migration/migrator/jabberd14: Use util.xml.

11 years agotools/openfire2prosody: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:42:17 +0000 (05:42 +0500)]
tools/openfire2prosody: Use util.xml.

11 years agotools/jabberd14sql2prosody: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:41:18 +0000 (05:41 +0500)]
tools/jabberd14sql2prosody: Use util.xml.

11 years agotools/ejabberdsql2prosody: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:34:46 +0000 (05:34 +0500)]
tools/ejabberdsql2prosody: Use util.xml.

11 years agoutil.template: Use util.xml.
Waqas Hussain [Mon, 3 Dec 2012 00:33:56 +0000 (05:33 +0500)]
util.template: Use util.xml.

11 years agoutil.xml: Initial commit; exposes parse(), which is now the canonical way to convert...
Waqas Hussain [Mon, 3 Dec 2012 00:32:51 +0000 (05:32 +0500)]
util.xml: Initial commit; exposes parse(), which is now the canonical way to convert a string to a stanza.

11 years agoMerge 0.9->trunk.
Waqas Hussain [Fri, 30 Nov 2012 19:31:33 +0000 (00:31 +0500)]
Merge 0.9->trunk.

11 years agosessionmanager: Log the actual error message when roster loading fails.
Waqas Hussain [Fri, 30 Nov 2012 04:05:51 +0000 (09:05 +0500)]
sessionmanager: Log the actual error message when roster loading fails.

11 years agoMUC: Expose create_room(jid).
Waqas Hussain [Fri, 30 Nov 2012 03:57:58 +0000 (08:57 +0500)]
MUC: Expose create_room(jid).

11 years agomod_storage_sql: Return actual error string on commit failure.
Waqas Hussain [Fri, 30 Nov 2012 03:50:03 +0000 (08:50 +0500)]
mod_storage_sql: Return actual error string on commit failure.

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 29 Nov 2012 02:38:24 +0000 (07:38 +0500)]
Merge 0.9->trunk

11 years agonet.http.parser: Collapse multiple consecutive slashes in a path to a single slash
Matthew Wild [Thu, 29 Nov 2012 02:38:00 +0000 (07:38 +0500)]
net.http.parser: Collapse multiple consecutive slashes in a path to a single slash

11 years agoMerge
Matthew Wild [Thu, 29 Nov 2012 02:17:31 +0000 (07:17 +0500)]
Merge

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 29 Nov 2012 02:16:45 +0000 (07:16 +0500)]
Merge 0.9->trunk

11 years agomod_http: Fix pattern and slightly improve efficiency and memory usage of wildcard...
Matthew Wild [Thu, 29 Nov 2012 02:15:04 +0000 (07:15 +0500)]
mod_http: Fix pattern and slightly improve efficiency and memory usage of wildcard HTTP handlers

11 years agoMerge 0.9->trunk
Kim Alvefur [Sun, 25 Nov 2012 04:12:46 +0000 (05:12 +0100)]
Merge 0.9->trunk

11 years agomod_admin_adhoc: Remove unused form
Kim Alvefur [Sun, 25 Nov 2012 04:12:13 +0000 (05:12 +0100)]
mod_admin_adhoc: Remove unused form

11 years agoMerge 0.9->trunk
Kim Alvefur [Fri, 23 Nov 2012 16:17:02 +0000 (17:17 +0100)]
Merge 0.9->trunk

11 years agonet.server: Fix when no network_settings set and using libevent
Kim Alvefur [Fri, 23 Nov 2012 16:16:22 +0000 (17:16 +0100)]
net.server: Fix when no network_settings set and using libevent

11 years agoMerge 0.9->trunk
Kim Alvefur [Fri, 23 Nov 2012 00:51:53 +0000 (01:51 +0100)]
Merge 0.9->trunk

11 years agonet.server: Make server_* configurable in the config file.
Kim Alvefur [Fri, 23 Nov 2012 00:51:30 +0000 (01:51 +0100)]
net.server: Make server_* configurable in the config file.

11 years agonet.server_select: Better names for config options (thanks MattJ)
Kim Alvefur [Fri, 23 Nov 2012 00:51:30 +0000 (01:51 +0100)]
net.server_select: Better names for config options (thanks MattJ)

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 22 Nov 2012 21:57:35 +0000 (21:57 +0000)]
Merge 0.9->trunk

11 years agomuc: Make max_history_messages simply a service-wide config option, and don't store...
Matthew Wild [Thu, 22 Nov 2012 21:57:06 +0000 (21:57 +0000)]
muc: Make max_history_messages simply a service-wide config option, and don't store it per-room (rooms still have their own history_message, but this is a global limit)

11 years agoMerge with a merge (or something)
Matthew Wild [Thu, 22 Nov 2012 21:02:27 +0000 (21:02 +0000)]
Merge with a merge (or something)

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 22 Nov 2012 21:01:00 +0000 (21:01 +0000)]
Merge 0.9->trunk

11 years agomodulemanager: Set module.reloading when a module is reloading, and when loading...
Matthew Wild [Thu, 22 Nov 2012 20:59:20 +0000 (20:59 +0000)]
modulemanager: Set module.reloading when a module is reloading, and when loading make the saved state available in module.saved_state (if any)

11 years agoMerge 0.9->trunk
Kim Alvefur [Thu, 22 Nov 2012 19:42:12 +0000 (20:42 +0100)]
Merge 0.9->trunk

11 years agomod_http: Make module:http_url() aware of http_host
Kim Alvefur [Thu, 22 Nov 2012 19:40:06 +0000 (20:40 +0100)]
mod_http: Make module:http_url() aware of http_host

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 22 Nov 2012 19:38:42 +0000 (19:38 +0000)]
Merge 0.9->trunk

11 years agomod_bosh: Add 'Connection: keep-alive' header
Matthew Wild [Thu, 22 Nov 2012 19:37:30 +0000 (19:37 +0000)]
mod_bosh: Add 'Connection: keep-alive' header

11 years agomod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins)
Matthew Wild [Thu, 22 Nov 2012 19:35:50 +0000 (19:35 +0000)]
mod_bosh: Add support for stanza filters to BOSH sessions (needed by some plugins)

11 years agomod_admin_telnet: Refactor so that command processing is performed in a separate...
Matthew Wild [Thu, 22 Nov 2012 18:32:27 +0000 (18:32 +0000)]
mod_admin_telnet: Refactor so that command processing is performed in a separate function (usable from other modules)

11 years agomod_bosh: Add bosh_max_wait config option, to limit the amount of time a client can...
Matthew Wild [Thu, 22 Nov 2012 18:24:09 +0000 (18:24 +0000)]
mod_bosh: Add bosh_max_wait config option, to limit the amount of time a client can request for the server to hold open requests

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 22 Nov 2012 17:42:14 +0000 (17:42 +0000)]
Merge 0.9->trunk

11 years agomod_http: Rename variable for clarity
Matthew Wild [Thu, 22 Nov 2012 17:38:53 +0000 (17:38 +0000)]
mod_http: Rename variable for clarity

11 years agoMerge 0.9->trunk
Matthew Wild [Thu, 15 Nov 2012 19:07:53 +0000 (14:07 -0500)]
Merge 0.9->trunk

11 years agoutil.pubsub: Add item-published event
Matthew Wild [Thu, 15 Nov 2012 18:24:44 +0000 (13:24 -0500)]
util.pubsub: Add item-published event

11 years agomod_http: Add 'http_host' option to change the HTTP virtual host that this host is...
Matthew Wild [Thu, 15 Nov 2012 18:24:10 +0000 (13:24 -0500)]
mod_http: Add 'http_host' option to change the HTTP virtual host that this host is accessible at (e.g. allows mapping a host to '127.0.0.1')

11 years agomod_bosh: Share sessions and inactive_sessions tables
Matthew Wild [Thu, 15 Nov 2012 18:18:41 +0000 (13:18 -0500)]
mod_bosh: Share sessions and inactive_sessions tables

11 years agoMerge 0.9 -> trunk
Kim Alvefur [Sun, 11 Nov 2012 22:48:38 +0000 (23:48 +0100)]
Merge 0.9 -> trunk

11 years agomod_posix: Log a message explaining that we are detaching from the console
Kim Alvefur [Sun, 11 Nov 2012 22:44:56 +0000 (23:44 +0100)]
mod_posix: Log a message explaining that we are detaching from the console

11 years agoutil.pposix: Prevent FDs 0, 1 and 2 from being assigned to connections
Kim Alvefur [Sat, 10 Nov 2012 22:41:53 +0000 (23:41 +0100)]
util.pposix: Prevent FDs 0, 1 and 2 from being assigned to connections

11 years agomod_posix: Remove console and stdout logging sinks before daemonizing
Kim Alvefur [Sat, 10 Nov 2012 22:39:22 +0000 (23:39 +0100)]
mod_posix: Remove console and stdout logging sinks before daemonizing

11 years agoMerge 0.9 -> trunk
Kim Alvefur [Wed, 24 Oct 2012 17:56:22 +0000 (19:56 +0200)]
Merge 0.9 -> trunk

11 years agomod_s2s: Detect TLS compression
Kim Alvefur [Wed, 24 Oct 2012 17:05:56 +0000 (19:05 +0200)]
mod_s2s: Detect TLS compression

11 years agoMerge 0.9 -> trunk
Kim Alvefur [Sun, 14 Oct 2012 20:53:41 +0000 (22:53 +0200)]
Merge 0.9 -> trunk

11 years agomod_presence: Fix indentation
Kim Alvefur [Sun, 14 Oct 2012 19:04:46 +0000 (21:04 +0200)]
mod_presence: Fix indentation

11 years agomod_pep: Remove unused imports
Kim Alvefur [Sun, 14 Oct 2012 19:03:52 +0000 (21:03 +0200)]
mod_pep: Remove unused imports

11 years agomod_motd: Don't trigger on directed presence or stanzas from s2s.
Kim Alvefur [Sat, 13 Oct 2012 13:21:59 +0000 (15:21 +0200)]
mod_motd: Don't trigger on directed presence or stanzas from s2s.

11 years agomod_admin_telnet: user:list(): Allow filtering the set of users
Kim Alvefur [Fri, 12 Oct 2012 16:49:22 +0000 (18:49 +0200)]
mod_admin_telnet: user:list(): Allow filtering the set of users

11 years agomod_admin_telnet: user:list() check that the given host exists
Kim Alvefur [Fri, 12 Oct 2012 16:33:24 +0000 (18:33 +0200)]
mod_admin_telnet: user:list() check that the given host exists

11 years agoMerge 0.9->trunk
Matthew Wild [Mon, 1 Oct 2012 19:15:39 +0000 (20:15 +0100)]
Merge 0.9->trunk

11 years agomod_register: Fire event to allow blocking user registration
Florian Zeitz [Mon, 1 Oct 2012 19:07:20 +0000 (21:07 +0200)]
mod_register: Fire event to allow blocking user registration

11 years agoMerge 0.9->trunk
Matthew Wild [Sat, 29 Sep 2012 16:07:50 +0000 (17:07 +0100)]
Merge 0.9->trunk

11 years agomoduleapi: Revert previous commit and add comment, it's meant to be this way
Matthew Wild [Sat, 29 Sep 2012 16:07:08 +0000 (17:07 +0100)]
moduleapi: Revert previous commit and add comment, it's meant to be this way