Commit graph

217 commits

Author SHA1 Message Date
Kim Alvefur
49c6847837 stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9) 2018-10-21 14:45:22 +02:00
Kim Alvefur
59716b64dd core.stanza_router: Reduce logging of common routing (#776) 2018-07-22 19:44:58 +02:00
Kim Alvefur
dad6f67294 stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck] 2018-03-23 13:15:19 +01:00
Kim Alvefur
a9461d5ec8 core.stanza_router: Verify that xmlns exists for firing stanza/iq/xmlns/name events (fixes #1022) (thanks SamWhited) 2017-10-17 07:09:00 +02:00
Kim Alvefur
1ecc3a7918 core: Split some very long lines [luacheck] 2017-03-04 17:49:48 +01:00
Kim Alvefur
0516532553 stanza_router: Fix typo 2017-01-02 01:59:03 +01:00
Kim Alvefur
2c7554d634 core.stanza_router: Remove hack for allowing resource binding IQ before resource binding 2016-12-13 18:16:20 +01:00
Kim Alvefur
212ff87e61 core.stanza_router: Separate iq type check from child count check 2016-11-25 05:08:09 +01:00
Kim Alvefur
67dc0fb56a core.stanza_router: Require 'id' attribute on iq stanzas (fixes #785) 2016-11-25 05:06:13 +01:00
Matthew Wild
ce1271df1d stanza_router: Make 'unhandled stanza' errors more informative 2016-08-31 16:40:26 +01:00
Kim Alvefur
2d8b98ebaf core.stanza_router: Remove compatibility with Jabiru not including id attribute (originally added in 9b352c8a32e6) 2016-05-30 13:29:43 +02:00
Matthew Wild
7b3df2bae6 portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations 2015-05-06 19:20:07 +01:00
Kim Alvefur
b21f268615 Merge 0.9->0.10 2015-01-26 15:25:16 +01:00
Kim Alvefur
283cee6209 stanza_router: Fix routing of 'error' IQs with multiple childs (thanks Pawel) 2015-01-06 17:39:47 +01:00
Kim Alvefur
ccb4b3e493 core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router 2014-09-09 15:05:46 +02:00
Kim Alvefur
c298ff7fb4 Merge 0.9->0.10 2014-09-09 14:42:33 +02:00
Kim Alvefur
20d003813e core.stanza_router: Stricter validation of stanzas 2014-09-09 14:42:10 +02:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
d4e9884d66 stanza_router: Warn if the global core_*_stanza() functions are called 2012-07-26 04:30:30 +02:00
Matthew Wild
f215d57872 stanza_router: Also don't bounce <iq type='result'> 2012-05-27 11:57:56 +01:00
Kim Alvefur
e2e2a52e49 stanza_router: Don't bounce type=error stanzas 2012-05-27 04:01:34 +02:00
Kim Alvefur
1ef9002349 prosody, stanza_router: Load stanza_router earlier. Put routing functions in the global prosody table. Fixes module:send() 2012-05-14 17:58:51 +02:00
Matthew Wild
cb80e7171f stanza_router: Fix variable name 2012-05-12 03:24:06 +01:00
Matthew Wild
d2e5440798 stanza_router: Close stream for unhandled stanzas from unauthenticated connections (we can't reply) 2012-05-12 01:47:53 +01:00
Matthew Wild
7aac87fba8 stanza_router: Remove FIXME comment and close stream with not-authorized for s2s stanzas from unauthed domains 2012-05-12 00:33:04 +01:00
Matthew Wild
8a19524384 stanza_router: Catch s2s stanzas to hosts we don't serve earlier, and close with host-unknown (thanks darkrain) 2012-05-12 00:31:48 +01:00
Matthew Wild
2c8cdd0adb stanza_router: Fire route/remote per-host 2012-05-04 01:49:13 +01:00
Matthew Wild
40d302c5b5 stanza_router: Allow route/remote handlers to return false to block a stanza 2012-05-04 01:46:54 +01:00
Matthew Wild
3c5d5f95ad stanza_router: Replace s2s send logic with firing of a 'route/remote' event 2012-01-23 16:25:21 +00:00
Matthew Wild
3e2d3f1875 stanza_router: Remove obsolete commented code 2012-01-23 16:24:06 +00:00
Waqas Hussain
4e486d4ba9 stanza_router: Return a <bad-request/> error on invalid IQ type. 2011-01-29 04:42:56 +05:00
Waqas Hussain
e75ae6d76d componentmanager, stanza_router: Get rid of componentmanager.handle_stanza(). 2010-11-10 02:51:36 +05:00
Waqas Hussain
85b44a1dfd modulemanager, stanza_router: Moved modulemanager.handle_stanza to stanza_router, as a local function handle_unhandled_stanza. modulemanager is no longer a dependency of stanza_router. 2010-10-16 08:34:32 +05:00
Matthew Wild
ef919e1417 Merge 0.6->0.7 2010-03-30 19:45:56 +01:00
Matthew Wild
ad6a65efa1 stanza_router, s2smanager, modulemanager: Fix for handling of the default namespace on stanzas, causing sometimes jabber:client to be sent over s2s, and accepted 2010-03-30 19:40:16 +01:00
Matthew Wild
46c0b8c7f9 Merge 0.6->0.7 2010-03-22 17:24:55 +00:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Waqas Hussain
a5c2d24d44 stanza_router: Don't send error replies for stanzas of type 'error' and 'result' on unbound authenticated connections. [originally fa84451e9b35 in 0.6] 2010-03-22 15:05:05 +00:00
Waqas Hussain
a4bbf213bf stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6] 2010-03-22 15:04:22 +00:00
Waqas Hussain
5d9b9b6b30 stanza_router: Don't send error replies for stanzas of type 'error' and 'result' on unbound authenticated connections. 2010-03-04 02:22:45 +05:00
Waqas Hussain
836da37747 stanza_router: Allow non-jabber:client elements after auth, before bind. 2010-03-04 02:20:17 +05:00
Waqas Hussain
80c27c9e79 stanza_router: Make sure /self events are fired when the 'to' attribute is missing. 2010-02-21 17:43:05 +05:00
Waqas Hussain
a66f328e17 stanza_router: Fire /self events for stanzas users send to their own bare JID. 2010-02-13 02:55:24 +05:00
Waqas Hussain
cfc9620680 stanza_router: Added third parameter to core_post_stanza, to control pre-events. 2010-01-29 21:04:36 +05:00
Matthew Wild
f9f361102b stanza_router: Log the name of unhandled stanzas (thanks bear) 2010-01-18 16:31:57 +00:00
Matthew Wild
87edc64c11 stanza_router: Don't log full stanzas destined for s2s 2009-11-22 04:46:48 +00:00
Waqas Hussain
b7d45c17f2 stanza_router: Added third parameter to core_post_stanza, to control pre-events. 2010-01-29 21:04:36 +05:00
Matthew Wild
f4e886e717 stanza_router: Log the name of unhandled stanzas (thanks bear) 2010-01-18 16:31:57 +00:00
Waqas Hussain
2970ea37eb stanza_router: Added a compatibility workaround for missing 'id' attribute in <iq/> elements. 2009-10-17 23:46:34 +05:00
Matthew Wild
b33e93f19b stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G 2009-10-17 13:33:23 +01:00