Matthew Wild
428e4fa832
stanza_router: only fire pre-stanza if firing other preevents (e.g. for c2s sessions)
6 years ago
Matthew Wild
fd3ee50a8c
stanza_router: Add once-per-routed-stanza event, pre-stanza
6 years ago
Kim Alvefur
5e83a19bc8
core.stanza_router: Silence warning about unused err_message [luacheck]
6 years ago
Kim Alvefur
6d3006307d
core.stanza_router: Extract host part of JIDs directly [luacheck]
...
Silences warning about unused return values
6 years ago
Kim Alvefur
cf05074f0e
Backed out changeset 64ddcbc9a328 as it would prevent communicating with valid remote JIDs that aren't valid under STRINGPREP / Unicode 3.2
6 years ago
Kim Alvefur
c09d6decbe
core.stanza_router: Do strict jidprep on c2s
...
Be conservative in what you let your clients send, be liberal in what
you let in via s2s.
Being strict on s2s leads to interop problems and poor experiences, ie
users being ejected from MUCs if something invalid enters. By starting
with tightening up input into the network, we may be able to gradually
approach a point where no invalid JIDs are allowed.
6 years ago
Kim Alvefur
6f213da0a0
core.stanza_router: Handle s2s in more direction-agnostic way
6 years ago
Kim Alvefur
d7770bba84
core.stanza_router: Remove tostring call from logging
...
Taken care of by loggingmanager now
7 years ago
Kim Alvefur
49c6847837
stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9)
7 years ago
Kim Alvefur
3f73da1155
core.stanza_router: Reduce logging of common routing ( #776 )
8 years ago
Kim Alvefur
a9461d5ec8
core.stanza_router: Verify that xmlns exists for firing stanza/iq/xmlns/name events ( fixes #1022 ) (thanks SamWhited)
8 years ago
Kim Alvefur
59716b64dd
core.stanza_router: Reduce logging of common routing ( #776 )
8 years ago
Kim Alvefur
dad6f67294
stanza_router: Limit scope of deprecated warning function since it is not used anywhere else [luacheck]
8 years ago
Kim Alvefur
1ecc3a7918
core: Split some very long lines [luacheck]
9 years ago
Kim Alvefur
0516532553
stanza_router: Fix typo
9 years ago
Kim Alvefur
2c7554d634
core.stanza_router: Remove hack for allowing resource binding IQ before resource binding
9 years ago
Kim Alvefur
212ff87e61
core.stanza_router: Separate iq type check from child count check
9 years ago
Kim Alvefur
67dc0fb56a
core.stanza_router: Require 'id' attribute on iq stanzas ( fixes #785 )
9 years ago
Matthew Wild
ce1271df1d
stanza_router: Make 'unhandled stanza' errors more informative
9 years ago
Kim Alvefur
2d8b98ebaf
core.stanza_router: Remove compatibility with Jabiru not including id attribute (originally added in 9b352c8a32e6)
10 years ago
Matthew Wild
7b3df2bae6
portmanager, s2smanager, sessionmanager, stanza_router, storagemanager, usermanager, util.xml: Add luacheck annotations
11 years ago
Kim Alvefur
283cee6209
stanza_router: Fix routing of 'error' IQs with multiple childs (thanks Pawel)
11 years ago
Kim Alvefur
ccb4b3e493
core.stanza_router, mod_s2s: Move handling of S2S features to mod_s2s from stanza_router
12 years ago
Kim Alvefur
20d003813e
core.stanza_router: Stricter validation of stanzas
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Kim Alvefur
d4e9884d66
stanza_router: Warn if the global core_*_stanza() functions are called
14 years ago
Matthew Wild
f215d57872
stanza_router: Also don't bounce <iq type='result'>
14 years ago
Kim Alvefur
e2e2a52e49
stanza_router: Don't bounce type=error stanzas
14 years ago
Kim Alvefur
1ef9002349
prosody, stanza_router: Load stanza_router earlier. Put routing functions in the global prosody table. Fixes module:send()
14 years ago
Matthew Wild
cb80e7171f
stanza_router: Fix variable name
14 years ago
Matthew Wild
d2e5440798
stanza_router: Close stream for unhandled stanzas from unauthenticated connections (we can't reply)
14 years ago
Matthew Wild
7aac87fba8
stanza_router: Remove FIXME comment and close stream with not-authorized for s2s stanzas from unauthed domains
14 years ago
Matthew Wild
8a19524384
stanza_router: Catch s2s stanzas to hosts we don't serve earlier, and close with host-unknown (thanks darkrain)
14 years ago
Matthew Wild
2c8cdd0adb
stanza_router: Fire route/remote per-host
14 years ago
Matthew Wild
40d302c5b5
stanza_router: Allow route/remote handlers to return false to block a stanza
14 years ago
Matthew Wild
3c5d5f95ad
stanza_router: Replace s2s send logic with firing of a 'route/remote' event
14 years ago
Matthew Wild
3e2d3f1875
stanza_router: Remove obsolete commented code
14 years ago
Waqas Hussain
4e486d4ba9
stanza_router: Return a <bad-request/> error on invalid IQ type.
15 years ago
Waqas Hussain
e75ae6d76d
componentmanager, stanza_router: Get rid of componentmanager.handle_stanza().
15 years ago
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.
15 years ago
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
16 years ago
Matthew Wild
2bc0606453
Update copyright headers for 2010
16 years ago
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]
16 years ago
Waqas Hussain
a4bbf213bf
stanza_router: Allow non-jabber:client elements after auth, before bind. [originally 2c538d4bde13 in 0.6]
16 years ago
Waqas Hussain
5d9b9b6b30
stanza_router: Don't send error replies for stanzas of type 'error' and 'result' on unbound authenticated connections.
16 years ago
Waqas Hussain
836da37747
stanza_router: Allow non-jabber:client elements after auth, before bind.
16 years ago
Waqas Hussain
80c27c9e79
stanza_router: Make sure /self events are fired when the 'to' attribute is missing.
16 years ago
Waqas Hussain
a66f328e17
stanza_router: Fire /self events for stanzas users send to their own bare JID.
16 years ago
Waqas Hussain
cfc9620680
stanza_router: Added third parameter to core_post_stanza, to control pre-events.
16 years ago
Matthew Wild
f9f361102b
stanza_router: Log the name of unhandled stanzas (thanks bear)
16 years ago