Kim Alvefur
e52cc0126d
mod_component: Don't return error reply for errors, fixes #1897
10 months ago
Kim Alvefur
71ad48095d
plugins: Use integer config API with interval specification where sensible
...
Many of these fall into a few categories:
- util.cache size, must be >= 1
- byte or item counts that logically can't be negative
- port numbers that should be in 1..0xffff
2 years ago
Kim Alvefur
a8b0c56f65
plugins: Use get_option_enum where appropriate
5 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Matthew Wild
a2cabe6418
mod_component: Require 'from' attribute on stanzas by default
...
The old behaviour of falling back to the component domain when it is missing
has been merged into the logic for the existing "validate_from_addresses"
option (which is strict by default).
ejabberd already rejects component stanzas with no 'from' (as the XEP
requires), and this has led to compatibility issues for components that were
seemingly working fine with Prosody.
3 years ago
Matthew Wild
4c4e764e23
mod_c2s, mod_s2s, mod_component, mod_bosh, mod_websockets: Set default stanza size limits
...
c2s/bosh/ws streams will default to 256KB, s2s and components to 512KB.
These values are aligned with ejabberd's default settings, which should reduce
issues related to inconsistent size limits between servers on the XMPP network.
The previous default (10MB) is excessive for any production server, and allows
significant memory usage by even unauthenticated sessions.
5 years ago
Kim Alvefur
ef6cb64b9e
mod_c2s,etc: Identify stanza object with appropriate function
...
Better than duck typing, in case anyone ever passes a non-stanza table
with a 'name' field.
4 years ago
Kim Alvefur
27a97b963d
mod_component: Distinguish missing stream @to from unknown local component (thanks Daniel_W)
...
Spectrum2 did not include a stream @to attribute due to a configuration
error. "nil does not match ..." is not very clear in pointing this out
and is somewhat confusing, tho it did help pinpoint what went wrong.
It's also not great leak to programming language internals like "nil"
out into user-facing strings like this.
5 years ago
Kim Alvefur
aeaad491d4
mod_component: Return extended error condition when not connected
...
This might be something to write a XEP about.
6 years ago
Kim Alvefur
2f67c339a3
mod_component: Reply with a different error when not connected
...
The wait, service-unavailable is overloaded by XEP-0045 to mean that the
room has reached the maximum number of users. See #1495 .
Bouncing errors for components is tricky since there is no way to tell
that it comes from the server hosting the component, not from the other
end of the component connection.
6 years ago
Kim Alvefur
608d6dd756
mod_component: Specify an error source for Component unavailable errors
...
It is somewhat ambiguous where an error really comes from in the case of
an external component.
Setting by to the bare host at least distinguishes it from JIDs with a
node- or resourcepart.
6 years ago
Kim Alvefur
40b1e3e0ed
plugins: Remove tostring call from logging
...
Taken care of by loggingmanager now
Mass-rewrite using lua pattern like `tostring%b()`
7 years ago
Matthew Wild
f5f6460b2e
Many things: switch from hacky multi-arg xpcall implementations to a standard util.xpcall
7 years ago
Emmanuel Gil Peyrot
ba5f71d08b
mod_component: Fix a wrongly-placed closing parenthesis, fixes #1164 .
8 years ago
Kim Alvefur
5dee36d838
mod_component, mod_s2s: Iterate over child tags instead of child nodes (can include text) in stream error (same as 176b7f4e4ac9)
8 years ago
Kim Alvefur
38060a5ccf
mod_component: Advertise disco#info in fallback handling of disco#info query ( fixes #1062 )
8 years ago
Kim Alvefur
d99378074d
mod_component: Use typed config API
9 years ago
Kim Alvefur
a586901308
mod_component: Add read timeout handler (same behaviour as c2s and s2s)
9 years ago
Kim Alvefur
b661ee3aca
mod_component: Trim trailing whitespace
9 years ago
Matthew Wild
cd10e4439e
mod_component: Fire 'component-disconnected' event on host, to maintain consistency - sessions with no host never authenticated. Fixes #737
9 years ago
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
10 years ago
Matthew Wild
f739ed2c46
mod_component: Some cleanup [luacheck]
10 years ago
Matthew Wild
4b907ce3ff
mod_component: Fire event when component disconnects
10 years ago
Kim Alvefur
b7e3bf93ea
mod_component: Add config option for deciding what happens if a component connects while already connected ( fixes #525 )
10 years ago
Kim Alvefur
e92c2042d1
mod_component: Fire an event on successful component authentication (For Goffi)
11 years ago
Matthew Wild
899b6d53ae
net.http, net.http.server, mod_c2s, mod_s2s, mod_component, mod_admin_telnet, mod_net_multiplex: Add ondetach to release connection from 'sessions' table (or equivalent)
11 years ago
Kim Alvefur
e06966ee43
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream
12 years ago
Kim Alvefur
a3dab92bb3
mod_component: Enable TCP keepalives on component streams
12 years ago
Kim Alvefur
72d7753441
mod_component: Decrease priority of component auth hook
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Matthew Wild
98ce253063
mod_component: Local imports for some functions, including xpcall
13 years ago
Matthew Wild
fb9838c64b
mod_component: xpcall() stanza processing, as per other listeners, preventing potentially harmful 'top-level errors'
13 years ago
Kim Alvefur
27dc3a5b9a
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
13 years ago
Kim Alvefur
d11b41d1dd
mod_component: Look for the correct xmlns (thanks NebuK)
13 years ago
Kim Alvefur
4517552d8b
s2smanager: Generate session names used for logging the same way everywhere
13 years ago
Kim Alvefur
1e4f3fadcd
mod_component: Make listener private (thanks Ge0rG)
13 years ago
Waqas Hussain
d9d38ef125
mod_{admin_telnet,c2s,component,http,net_multiplex,s2s}: Use module:provides() instead of module:add_item().
13 years ago
Matthew Wild
c6efcf09be
mod_component: Set module status to indicate whether component is connected
7 years ago
Kim Alvefur
cf984835d1
mod_c2s, mod_s2s, mod_component: Log invalid XML escaped ( fixes #734 )
...
See 6ed0d6224d64
7 years ago
Waqas Hussain
c204694247
mod_component: For disconnected external components, if a name is specified in config, return it in disco#info replies.
14 years ago
Kim Alvefur
9114e88ee0
mod_admin_adhoc, mod_admin_telnet, mod_bosh, mod_c2s, mod_component, mod_pep, mod_presence, mod_roster, mod_s2s: Import core_post_stanza from the global prosody table.
14 years ago
Matthew Wild
e89b006f03
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
14 years ago
Matthew Wild
a8a1bb526f
mod_component: Allow unauthenticated components to authenticate (thanks Maranda)
14 years ago
Matthew Wild
b56a39255a
mod_component: Components start out as component_unauthed until successful authentication (thanks xnyhps)
14 years ago
Matthew Wild
ba8ef0d839
mod_component: Send <?xml on initial stream (thanks xnyhps)
14 years ago
Matthew Wild
844026b0ea
mod_component: Remove unused variable
14 years ago
Matthew Wild
9857260297
mod_component: Return true after denying a second component connection for a host (thanks xnyhps)
14 years ago
Matthew Wild
c1e2674fd4
mod_component: Handle component connecting to non-existent host
14 years ago
Matthew Wild
9d47801122
mod_component: Make a shared module, and move the xmppcomponent_listener into it ('port'ing over to portmanager). Ha ha.
14 years ago
Marco Cirillo
351b8347c8
mod_component: removed unused variable reference, added "flagging" to assert if a component is connected or not.
14 years ago