prosody.git
11 years agoMakefile: Specify explicit mode when installing prosody.version, to avoid it defaulti...
Matthew Wild [Mon, 15 Apr 2013 11:30:40 +0000 (12:30 +0100)]
Makefile: Specify explicit mode when installing prosody.version, to avoid it defaulting to something nasty (executable)

11 years agoutil.http: Refactor and import all necessary functions
Matthew Wild [Fri, 12 Apr 2013 19:26:35 +0000 (20:26 +0100)]
util.http: Refactor and import all necessary functions

11 years agoprosodyctl: Bump util.pposix version for API change
Kim Alvefur [Tue, 9 Apr 2013 13:50:46 +0000 (15:50 +0200)]
prosodyctl: Bump util.pposix version for API change

11 years agoutil.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda)
Matthew Wild [Thu, 11 Apr 2013 23:44:49 +0000 (00:44 +0100)]
util.iterators: Add ripairs() (ipairs() in reverse) (thanks Maranda)

11 years agonet.http: Swap response and request parameters passed to callback (will break some...
Matthew Wild [Thu, 11 Apr 2013 23:31:05 +0000 (00:31 +0100)]
net.http: Swap response and request parameters passed to callback (will break some modules)

11 years agoutil.httpstream: Unused, remove
Matthew Wild [Thu, 11 Apr 2013 20:55:20 +0000 (21:55 +0100)]
util.httpstream: Unused, remove

11 years agonet.http: Switch from util.httpstream to net.http.parser, introduces small but backwa...
Matthew Wild [Thu, 11 Apr 2013 19:24:37 +0000 (20:24 +0100)]
net.http: Switch from util.httpstream to net.http.parser, introduces small but backwards-incompatible API changes - see prosody.im/doc/developers/http

11 years agonet.http.parser: Fix chunked encoding response parsing, and make it more robust
Matthew Wild [Thu, 11 Apr 2013 19:01:03 +0000 (20:01 +0100)]
net.http.parser: Fix chunked encoding response parsing, and make it more robust

11 years agonet.http.parser: Convert status_code to a number before trying to compare it to numbers
Matthew Wild [Thu, 11 Apr 2013 18:58:53 +0000 (19:58 +0100)]
net.http.parser: Convert status_code to a number before trying to compare it to numbers

11 years agonet.http.parser: Break when no more usable data in buffer (client part of e5ec60dfb202)
Matthew Wild [Thu, 11 Apr 2013 16:39:10 +0000 (17:39 +0100)]
net.http.parser: Break when no more usable data in buffer (client part of e5ec60dfb202)

11 years agonet.http.parser: Depend on util.http instead of net.http for urlencode
Matthew Wild [Thu, 11 Apr 2013 16:37:37 +0000 (17:37 +0100)]
net.http.parser: Depend on util.http instead of net.http for urlencode

11 years agosessionmanager, s2smanager: Remove unused imports
Matthew Wild [Thu, 11 Apr 2013 16:35:39 +0000 (17:35 +0100)]
sessionmanager, s2smanager: Remove unused imports

11 years agonet.http, util.http: Move definitions of urlencode/decode and formencode/decode to...
Matthew Wild [Thu, 11 Apr 2013 16:32:59 +0000 (17:32 +0100)]
net.http, util.http: Move definitions of urlencode/decode and formencode/decode to util.http (possible to use them without unnecessary network-related dependencies)

11 years agomod_s2s: Adjust priority of route/remote hooks to negative values (like most other...
Kim Alvefur [Mon, 8 Apr 2013 20:42:38 +0000 (22:42 +0200)]
mod_s2s: Adjust priority of route/remote hooks to negative values (like most other internal hooks)

11 years agomod_posix: Improve error message for a pposix version mismatch
Matthew Wild [Mon, 8 Apr 2013 16:21:16 +0000 (17:21 +0100)]
mod_posix: Improve error message for a pposix version mismatch

11 years agomod_posix, util.pposix: Bump version for API change
Matthew Wild [Mon, 8 Apr 2013 15:57:59 +0000 (16:57 +0100)]
mod_posix, util.pposix: Bump version for API change

11 years agomod_posix: Pass logger name to syslog, so that sources now get logged
Matthew Wild [Mon, 8 Apr 2013 15:57:05 +0000 (16:57 +0100)]
mod_posix: Pass logger name to syslog, so that sources now get logged

11 years agoutil.pposix: syslog(): Support an optional source parameter (producing messages of...
Matthew Wild [Mon, 8 Apr 2013 15:56:40 +0000 (16:56 +0100)]
util.pposix: syslog(): Support an optional source parameter (producing messages of the form '<source>: <message>'

11 years agonet.http: Throw error when connecting to a http:// URL without LuaSec available
Matthew Wild [Mon, 8 Apr 2013 15:40:27 +0000 (16:40 +0100)]
net.http: Throw error when connecting to a  URL without LuaSec available

11 years agosessionmanager, s2smanager: Remove open_session tracing
Matthew Wild [Mon, 8 Apr 2013 14:53:18 +0000 (15:53 +0100)]
sessionmanager, s2smanager: Remove open_session tracing

11 years agomod_pubsub: Send bad-request when no action specified (thanks Maranda)
Matthew Wild [Mon, 8 Apr 2013 14:32:24 +0000 (15:32 +0100)]
mod_pubsub: Send bad-request when no action specified (thanks Maranda)

11 years agomod_pubsub: Don't attempt to handle iq stanzas with no action element
Matthew Wild [Mon, 8 Apr 2013 14:04:55 +0000 (15:04 +0100)]
mod_pubsub: Don't attempt to handle iq stanzas with no action element

11 years agoutil.datamanager: Clear the cache of created directories on storage failure, and...
Matthew Wild [Sun, 7 Apr 2013 19:28:12 +0000 (20:28 +0100)]
util.datamanager: Clear the cache of created directories on storage failure, and retry

11 years agoutil.datamanager: expose path decode and encode functions.
Marco Cirillo [Sun, 7 Apr 2013 16:56:49 +0000 (16:56 +0000)]
util.datamanager: expose path decode and encode functions.

11 years agonet.http.server: add API to allow firing events directly on the server.
Marco Cirillo [Sun, 7 Apr 2013 12:23:29 +0000 (12:23 +0000)]
net.http.server: add API to allow firing events directly on the server.

11 years agoprosodyctl: Define prosody.core_post_stanza as an empty function
Matthew Wild [Sat, 6 Apr 2013 19:07:08 +0000 (20:07 +0100)]
prosodyctl: Define prosody.core_post_stanza as an empty function

11 years agoutil.json: Convert \uXXXX to UTF-8 when decoding
Matthew Wild [Sat, 6 Apr 2013 11:20:31 +0000 (12:20 +0100)]
util.json: Convert \uXXXX to UTF-8 when decoding

11 years agoutil.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
Matthew Wild [Fri, 5 Apr 2013 18:59:48 +0000 (19:59 +0100)]
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)

11 years agomoduleapi: assert() that prosody.core_post_stanza is not nil
Matthew Wild [Fri, 5 Apr 2013 18:13:46 +0000 (19:13 +0100)]
moduleapi: assert() that prosody.core_post_stanza is not nil

11 years agoportmanager: import pairs() (thanks Maranda)
Matthew Wild [Fri, 5 Apr 2013 12:06:26 +0000 (13:06 +0100)]
portmanager: import pairs() (thanks Maranda)

11 years agoMerge with Maranda
Matthew Wild [Fri, 5 Apr 2013 09:04:53 +0000 (10:04 +0100)]
Merge with Maranda

11 years agomod_storage_none: A null-like storage provider that returns all stores as empty,...
Matthew Wild [Fri, 5 Apr 2013 09:01:02 +0000 (10:01 +0100)]
mod_storage_none: A null-like storage provider that returns all stores as empty, and fails to save anything to them

11 years agorostermanager: do not save rosters for unexistant users.
Marco Cirillo [Fri, 5 Apr 2013 04:52:11 +0000 (04:52 +0000)]
rostermanager: do not save rosters for unexistant users.

11 years agoprosody: load rostermanager after usermanager during environment initialization.
Marco Cirillo [Fri, 5 Apr 2013 04:49:32 +0000 (04:49 +0000)]
prosody: load rostermanager after usermanager during environment initialization.

11 years agomod_http: disable ssl peer verification by default.
Marco Cirillo [Thu, 4 Apr 2013 23:41:36 +0000 (23:41 +0000)]
mod_http: disable ssl peer verification by default.

11 years agoportmanager: add logic to allow specification of service default values for ssl confi...
Marco Cirillo [Thu, 4 Apr 2013 23:36:30 +0000 (23:36 +0000)]
portmanager: add logic to allow specification of service default values for ssl config and / or overrides.

11 years agoutil.stanza: Add stanza:find(), a light weight XPath-like method
Kim Alvefur [Thu, 4 Apr 2013 18:05:35 +0000 (20:05 +0200)]
util.stanza: Add stanza:find(), a light weight XPath-like method

11 years agomod_s2s: Add COMPAT cahin verification code for older LuaSec versions
Kim Alvefur [Thu, 4 Apr 2013 17:21:47 +0000 (19:21 +0200)]
mod_s2s: Add COMPAT cahin verification code for older LuaSec versions

11 years agoconfigure: Replaces tabs with spaces in --help
Kim Alvefur [Wed, 3 Apr 2013 13:48:49 +0000 (15:48 +0200)]
configure: Replaces tabs with spaces in --help

11 years agoconfigure: Add RUNWITH to --help
Kim Alvefur [Wed, 3 Apr 2013 13:38:18 +0000 (15:38 +0200)]
configure: Add RUNWITH to --help

11 years agomod_pubsub: Don't send current items to new subscribers (I don't know why we did)
Matthew Wild [Wed, 3 Apr 2013 12:51:59 +0000 (13:51 +0100)]
mod_pubsub: Don't send current items to new subscribers (I don't know why we did)

11 years agomod_groups: Remove unused import
Matthew Wild [Wed, 3 Apr 2013 12:40:40 +0000 (13:40 +0100)]
mod_groups: Remove unused import

11 years agomod_groups: Add a public function other modules can use to determine if a JID belongs...
Matthew Wild [Wed, 3 Apr 2013 12:40:29 +0000 (13:40 +0100)]
mod_groups: Add a public function other modules can use to determine if a JID belongs to a given group

11 years agomod_presence: Remove some unused variables
Matthew Wild [Wed, 3 Apr 2013 12:39:41 +0000 (13:39 +0100)]
mod_presence: Remove some unused variables

11 years agoutil.helpers: Helper helpers to log host events
Matthew Wild [Wed, 3 Apr 2013 12:39:00 +0000 (13:39 +0100)]
util.helpers: Helper helpers to log host events

11 years agoutil.stanza: :maptags(): Fixes to make loop more robust on item removal
Matthew Wild [Wed, 3 Apr 2013 12:38:27 +0000 (13:38 +0100)]
util.stanza: :maptags(): Fixes to make loop more robust on item removal

11 years agoconfigmanager: Some cleanup, remove unused variables and imports
Matthew Wild [Wed, 3 Apr 2013 07:14:55 +0000 (08:14 +0100)]
configmanager: Some cleanup, remove unused variables and imports

11 years agomoduleapi: have get_host_items wrap on get_items from modulemanager, also add has_...
Marco Cirillo [Mon, 1 Apr 2013 23:44:28 +0000 (23:44 +0000)]
moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API.

11 years agomodulemanager: add missing ipairs import.
Marco Cirillo [Mon, 1 Apr 2013 23:41:57 +0000 (23:41 +0000)]
modulemanager: add missing ipairs import.

11 years agomodulemanager: add function to retrieve module items from a specific host entity.
Marco Cirillo [Mon, 1 Apr 2013 22:34:44 +0000 (22:34 +0000)]
modulemanager: add function to retrieve module items from a specific host entity.

11 years agoprosody.cfg.lua.dist: Update with new options and comments
Matthew Wild [Mon, 1 Apr 2013 13:51:42 +0000 (14:51 +0100)]
prosody.cfg.lua.dist: Update with new options and comments

11 years agomod_s2s: Close incoming s2s with stream error when secure and we don't trust their...
Matthew Wild [Mon, 1 Apr 2013 13:45:59 +0000 (14:45 +0100)]
mod_s2s: Close incoming s2s with stream error when secure and we don't trust their certificate

11 years agoINSTALL: Update from wiki
Matthew Wild [Sun, 31 Mar 2013 21:40:01 +0000 (22:40 +0100)]
INSTALL: Update from wiki

11 years agoDEPENDS: Update (LuaSec now has a rock) and add link to /doc/depends
Matthew Wild [Sun, 31 Mar 2013 12:49:33 +0000 (13:49 +0100)]
DEPENDS: Update (LuaSec now has a rock) and add link to /doc/depends

11 years agoTODO: Remove 0.9
Matthew Wild [Sun, 31 Mar 2013 12:45:57 +0000 (13:45 +0100)]
TODO: Remove 0.9

11 years agonet.http.server: Don't overwrite existing response.headers when returning a response...
Matthew Wild [Sun, 31 Mar 2013 12:45:04 +0000 (13:45 +0100)]
net.http.server: Don't overwrite existing response.headers when returning a response object from a HTTP handler (waqas says it's wrong)

11 years agoAUTHORS: A small update...
Matthew Wild [Sun, 31 Mar 2013 12:43:12 +0000 (13:43 +0100)]
AUTHORS: A small update...

11 years agotools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)
Kim Alvefur [Sun, 31 Mar 2013 18:09:14 +0000 (20:09 +0200)]
tools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)

11 years agoconfigure: Set to run with lua5.1 in the debian preset
Kim Alvefur [Sun, 31 Mar 2013 18:04:09 +0000 (20:04 +0200)]
configure: Set to run with lua5.1 in the debian preset

11 years agoportmanager: Log error and fail to bind when port is invalid (not a number)
Matthew Wild [Sun, 31 Mar 2013 11:27:28 +0000 (12:27 +0100)]
portmanager: Log error and fail to bind when port is invalid (not a number)

11 years agomod_muc/muc.lib: Don't add messages without a body (such as chat state notifications...
Matthew Wild [Thu, 28 Mar 2013 13:50:21 +0000 (09:50 -0400)]
mod_muc/muc.lib: Don't add messages without a body (such as chat state notifications) to the room history (thanks louiz?, Link Mauve, poezio and all its users)

11 years agoutil.json: Add json.encode_array() (thanks B)
Matthew Wild [Thu, 28 Mar 2013 13:31:07 +0000 (09:31 -0400)]
util.json: Add json.encode_array() (thanks B)

11 years agomod_privacy: Drop stanzas of type groupchat, so users aren't kicked from their chatro...
Tobias Markmann [Thu, 28 Mar 2013 11:49:19 +0000 (12:49 +0100)]
mod_privacy: Drop stanzas of type groupchat, so users aren't kicked from their chatrooms when blocking specific MUC occupants.

11 years agoportmanager: Add use_ipv4 option, default to true.
Kim Alvefur [Wed, 27 Mar 2013 22:48:39 +0000 (23:48 +0100)]
portmanager: Add use_ipv4 option, default to true.

11 years agoportmanager: use_ipv6 defaults to true if luasocket has ipv6 support
Kim Alvefur [Wed, 27 Mar 2013 22:32:34 +0000 (23:32 +0100)]
portmanager: use_ipv6 defaults to true if luasocket has ipv6 support

11 years agomod_s2s: Prevent s2s to and from hosts we serve locally
Kim Alvefur [Wed, 27 Mar 2013 22:09:47 +0000 (23:09 +0100)]
mod_s2s: Prevent s2s to and from hosts we serve locally

11 years agomod_s2s: Prevent traceback when replying to incoming connection to a host we don...
Kim Alvefur [Tue, 26 Mar 2013 08:25:20 +0000 (09:25 +0100)]
mod_s2s: Prevent traceback when replying to incoming connection to a host we don't serve

11 years agomod_s2s: Reset secure flag on new connection attempt
Kim Alvefur [Mon, 25 Mar 2013 18:08:15 +0000 (19:08 +0100)]
mod_s2s: Reset secure flag on new connection attempt

11 years agomod_s2s: session.from_host does not allways exist on incoming connections, true and...
Kim Alvefur [Mon, 25 Mar 2013 07:18:49 +0000 (08:18 +0100)]
mod_s2s: session.from_host does not allways exist on incoming connections, true and nil or "our hostname" does not evaluate to what we want here

11 years agomod_s2s: Keep the dns answer object around a while so plugins can look at it
Kim Alvefur [Sat, 23 Mar 2013 22:30:13 +0000 (23:30 +0100)]
mod_s2s: Keep the dns answer object around a while so plugins can look at it

11 years agonet.server, _select: Reorganise configuration of server_select to be more like server...
Kim Alvefur [Sat, 23 Mar 2013 19:06:02 +0000 (20:06 +0100)]
net.server, _select: Reorganise configuration of server_select to be more like server_event

11 years agoprosody, prosodyctl: Remove last trace of "core" \o/
Kim Alvefur [Sat, 23 Mar 2013 14:00:49 +0000 (15:00 +0100)]
prosody, prosodyctl: Remove last trace of "core" \o/

11 years agonet.server: No sections in config anymore
Kim Alvefur [Sat, 23 Mar 2013 14:00:22 +0000 (15:00 +0100)]
net.server: No sections in config anymore

11 years agoconfigmanager: Fix so unset variables are searched for in the global section
Kim Alvefur [Sat, 23 Mar 2013 03:14:52 +0000 (04:14 +0100)]
configmanager: Fix so unset variables are searched for in the global section

11 years agoutil.{prosodyctl,openssl}: More use of config sections removed
Kim Alvefur [Sat, 23 Mar 2013 01:38:30 +0000 (02:38 +0100)]
util.{prosodyctl,openssl}: More use of config sections removed

11 years agomod_tls: More use of config sections removed
Kim Alvefur [Sat, 23 Mar 2013 01:35:50 +0000 (02:35 +0100)]
mod_tls: More use of config sections removed

11 years agocore.*: Complete removal of all traces of the "core" section and section-related...
Kim Alvefur [Sat, 23 Mar 2013 01:33:15 +0000 (02:33 +0100)]
core.*: Complete removal of all traces of the "core" section and section-related code.

11 years agoMUC: Access prosody.hosts instead of the old global hosts
Kim Alvefur [Sat, 23 Mar 2013 01:24:11 +0000 (02:24 +0100)]
MUC: Access prosody.hosts instead of the old global hosts

11 years agomod_proxy65: Fix typo in comment
Kim Alvefur [Sat, 23 Mar 2013 00:42:48 +0000 (01:42 +0100)]
mod_proxy65: Fix typo in comment

11 years agomod_http: Import portmanager
Kim Alvefur [Sat, 23 Mar 2013 00:42:27 +0000 (01:42 +0100)]
mod_http: Import portmanager

11 years agomod_groups: Use module API for reading config
Kim Alvefur [Sat, 23 Mar 2013 00:39:56 +0000 (01:39 +0100)]
mod_groups: Use module API for reading config

11 years agomod_roster: Remove unused variable
Kim Alvefur [Sat, 23 Mar 2013 00:35:52 +0000 (01:35 +0100)]
mod_roster: Remove unused variable

11 years agomod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused...
Kim Alvefur [Sat, 23 Mar 2013 00:27:38 +0000 (01:27 +0100)]
mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports

11 years agomod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_messag...
Kim Alvefur [Sat, 23 Mar 2013 00:27:16 +0000 (01:27 +0100)]
mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals

11 years agoMerge 0.9->trunk
Matthew Wild [Fri, 22 Mar 2013 15:16:43 +0000 (15:16 +0000)]
Merge 0.9->trunk

11 years agomod_s2s: Fix variable usage in check_auth_policy (thanks Florob)
Matthew Wild [Fri, 22 Mar 2013 15:16:22 +0000 (15:16 +0000)]
mod_s2s: Fix variable usage in check_auth_policy (thanks Florob)

11 years agos2smanager: Remove unused function parameter
Matthew Wild [Fri, 22 Mar 2013 14:50:43 +0000 (14:50 +0000)]
s2smanager: Remove unused function parameter

11 years agos2smanager: Access prosody.hosts instead of hosts global directly
Matthew Wild [Fri, 22 Mar 2013 14:50:29 +0000 (14:50 +0000)]
s2smanager: Access prosody.hosts instead of hosts global directly

11 years agomod_s2s: Remove unused variable
Matthew Wild [Fri, 22 Mar 2013 14:31:14 +0000 (14:31 +0000)]
mod_s2s: Remove unused variable

11 years agoMerge 0.9->trunk
Matthew Wild [Fri, 22 Mar 2013 14:22:46 +0000 (14:22 +0000)]
Merge 0.9->trunk

11 years agomod_s2s: Add controls for certificate validation via the s2s_secure_auth option....
Matthew Wild [Fri, 22 Mar 2013 14:21:02 +0000 (14:21 +0000)]
mod_s2s: Add controls for certificate validation via the s2s_secure_auth option. Plugins can now return false from handling s2s-check-certificate to prevent connection establishment (s2sin+s2sout)

11 years agos2smanager, mod_s2s, mod_dialback, mod_saslauth: Move s2smanager.make_authenticated...
Matthew Wild [Fri, 22 Mar 2013 14:18:23 +0000 (14:18 +0000)]
s2smanager, mod_s2s, mod_dialback, mod_saslauth: Move s2smanager.make_authenticated() to mod_s2s, and plugins now signal authentication via the s2s-authenticated event

11 years agohostmanager: Use rawget to check for activated hosts to prevent recursion in dynamic...
Matthew Wild [Fri, 22 Mar 2013 11:24:54 +0000 (11:24 +0000)]
hostmanager: Use rawget to check for activated hosts to prevent recursion in dynamic host loaders

11 years agohostmanager: Use prosody.hosts instead of 'hosts' global
Matthew Wild [Fri, 22 Mar 2013 11:24:13 +0000 (11:24 +0000)]
hostmanager: Use prosody.hosts instead of 'hosts' global

11 years agoutil.pposix: Allow fetching RLIMIT_NICE when available
Matthew Wild [Fri, 22 Mar 2013 11:23:40 +0000 (11:23 +0000)]
util.pposix: Allow fetching RLIMIT_NICE when available

11 years agoprosody: Add COMPAT note about globals
Matthew Wild [Fri, 22 Mar 2013 11:22:50 +0000 (11:22 +0000)]
prosody: Add COMPAT note about globals

11 years agoconfigmanager, hostmanager, prosody: Almost complete removal of section-related code...
Matthew Wild [Fri, 22 Mar 2013 11:21:24 +0000 (11:21 +0000)]
configmanager, hostmanager, prosody: Almost complete removal of section-related code, and the infamous 'core' section. Still backwards-compatible with API users.

11 years agoMerge...
Matthew Wild [Wed, 20 Mar 2013 20:35:59 +0000 (20:35 +0000)]
Merge...

11 years agoMerge 0.9->trunk
Matthew Wild [Wed, 20 Mar 2013 20:34:38 +0000 (20:34 +0000)]
Merge 0.9->trunk

11 years agonet.http: Disable SSLv2 support for HTTPS connections
Matthew Wild [Wed, 20 Mar 2013 20:31:52 +0000 (20:31 +0000)]
net.http: Disable SSLv2 support for HTTPS connections