Kim Alvefur
2bee026da7
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
a725ff6218
mod_net_multiplex: Set read size/mode to that of the target listener
...
Otherwise it would use the configured buffer size, or previously '*a'.
Using the read size set by the listener seems more sensible.
6 years ago
Kim Alvefur
aa584a5286
mod_net_multiplex: Read no more than the max buffer size setting
...
Otherwise the '*a' read mode applies, which under certain circumstances
can read infinite amounts of data into memory.
6 years ago
Kim Alvefur
30cf0db09c
mod_http: Add way to signal that a module supports streaming uploads
...
Fixes #726
API:
module:provides("http", {
streaming_uploads = true;
route = {
PUT = function (event)
event.request.body_sink = io.tmpfile();
return true;
end
}
})
6 years ago
Kim Alvefur
eefe8a7688
net.http.parser: Allow specifying sink for large request bodies
...
This enables uses such as saving uploaded files directly to a file on
disk or streaming parsing of payloads.
See #726
6 years ago
Kim Alvefur
fdac57cb92
mod_s2s: Escape invalid XML in loggin (same way as mod_c2s) fix #1574
6 years ago
Emmanuel Gil Peyrot
1ed0b6ce12
mod_register: Add a dependency on mod_watchregistrations
...
Spammers are a big hassle, hopefully this will make admins aware of them sooner
than when they?ve already spammed a bunch.
6 years ago
Kim Alvefur
5b9261dab6
mod_proxy65: Limit dump of invalid data to 300 bytes (like mod_c2s)
6 years ago
Kim Alvefur
c64ae5fb65
mod_proxy65: Log invalid greetings escaped instead of as base64
...
Makes it easier to see human-readable parts and thus identifying the
garbage. Also consistent with mod_c2s and others.
6 years ago
Kim Alvefur
da79e58a6c
mod_muc_mam: Don't strip MUC <x> tags, fix #1567
6 years ago
Kim Alvefur
9cd5484770
mod_server_contact_info: Add status-addresses field
...
XEP-0157 version 1.1.0
6 years ago
Kim Alvefur
72129eca1c
mod_storage_sql: Measure hits/misses on the item count cache
...
A cache miss can be expensive so having numbers on how often this occurs
may be valuable.
6 years ago
Kim Alvefur
f05d6e2222
mod_admin_shell: Handle server_epoll using monotonic time internally
6 years ago
Kim Alvefur
5bafaaa5d7
mod_admin_shell: Fix debug:timers to handle net.server native timers
6 years ago
Kim Alvefur
3ce91067f6
mod_auth_internal_*: Apply saslprep to passwords
...
Related to #1560
6 years ago
Kim Alvefur
da56029ea1
mod_storage_internal: Fix error in time limited queries on items without 'when' field, fixes #1557
6 years ago
Kim Alvefur
0c8c16c487
mod_muc_mam: Remove spoofed archive IDs before archiving, fix #1552
...
The stanza-id added during archiving looks exactly like what should be
stripped, so the stripping must happen before archiving.
Getting priorities right is hard!
Also no test coverage yet.
6 years ago
Kim Alvefur
56aaa63f96
mod_csi_simple: Consider XEP-0353: Jingle Message Initiation important
...
Improves experience with VoIP calls initiated via JMI
Closes #1548
6 years ago
Kim Alvefur
3a0744ac82
mod_muc_mam: Fix missing advertising of XEP-0359, fixes #1547
6 years ago
Kim Alvefur
b4c415ceed
mod_muc_mam: Fix stanza id filter event name, fixes #1546
...
Nice typo
6 years ago
Kim Alvefur
effa25493b
mod_tls: Log when certificates are (re)loaded
...
Meant to reduce user confusion over what's reloaded and not.
6 years ago
Kim Alvefur
224351595e
mod_carbons: Fix handling of incoming MUC PMs #1540
...
27f5db07bec9 fixed this wrong. The code is supposed to check if the
stanza is NOT sent to your bare JID. A MUC PM is always sent to your
full JID. Hopefully nobody sends MUC invites to full JIDs, because those
would be skipped by this as well.
6 years ago
Kim Alvefur
43560d2b3d
mod_http_files: Avoid using inode in etag, fix #1498
6 years ago
Matthew Wild
15de42a367
MUC: Always include 'affiliation'/'role' attributes, defaulting to 'none' if nil
6 years ago
Kim Alvefur
e692604f31
mod_vcard4: Report correct error condition ( fixes #1521 )
...
On error, the second return value is the error condition, not the third.
6 years ago
Emmanuel Gil Peyrot
b8e044958c
mod_register_ibr: Add FORM_TYPE as required by XEP-0077 ( fixes #1511 )
...
Backport of f90abf142d53 from trunk
6 years ago
Kim Alvefur
277b88a8de
mod_storage_sql: Add index covering sort_id to improve performance ( fixes #1505 )
6 years ago
Kim Alvefur
cb06b21406
mod_admin_telnet: Handle unavailable cipher info ( fixes #1510 )
...
The LuaSec :info() method gathers info using the OpenSSL function
SSL_get_current_cipher(). Documentation for this function states that it
may return NULL if no session has been established (yet). If so, the
LuaSec functions wrapping this return nil, triggering a nil-indexing
error in mod_admin_telnet.
6 years ago
Matthew Wild
e20d9427ab
MUC: Persist affiliation_data in new MUC format!
6 years ago
Kim Alvefur
01650eaf06
mod_mam,mod_muc_mam: Allow other work to be performed during archive cleanup ( fixes #1504 )
...
This lets Prosody handle socket related work between each step in the
cleanup in order to prevent the server from being completely blocked
during this.
An async storage backend would not need this but those are currently
rare.
6 years ago
Kim Alvefur
62d90ddef1
mod_pubsub, mod_pep: Ensure correct number of children of <item/> ( fixes #1496 )
6 years ago
Kim Alvefur
9a5f1c4402
mod_muc_mam: Fix traceback saving message from non-occupant ( fixes #1497 )
...
Caused by a plugin sending a message from the room itself.
6 years ago
Kim Alvefur
60a3d89260
mod_storage_sql: Move update limit check back one step, fixes traceback
...
0c00274528a4 moved it one step too far, so the check was performed
before connecting to the database instead of after.
6 years ago
Kim Alvefur
e1fe3bab8f
mod_storage_sql: Fix check for deletion limits ( fixes #1494 )
...
The check was only performed if sql_manage_tables was set to true (the default)
It should always be performed
6 years ago
Matthew Wild
a635489791
mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174 )
6 years ago
Kim Alvefur
a6080a215e
mod_admin_telnet: Create a DNS resolver per console session ( fixes #1492 )
...
This is now the common pattern, eg see mod_s2s.
6 years ago
Matthew Wild
bd51ccfbbc
mod_websocket: Fire event on session creation (thanks Aaron van Meerten)
6 years ago
Matthew Wild
37ba5f795f
mod_posix: Support for command-line flags to override 'daemonize' config option
...
-D / --daemonize
-F / --no-daemonize
6 years ago
Kim Alvefur
954b42849d
mod_websocket: Clear mask bit when reflecting ping frames ( fixes #1484 )
6 years ago
Matthew Wild
e2a48d60bb
mod_register_ibr: Add event for successful password reset
...
This is in addition to the existing event for password changes. This
one includes additional details about the actor, and only triggers
when the change is due to the account owner (presumably) resetting.
As example use case is to invalidate one-time password reset tokens.
6 years ago
Matthew Wild
2a5e57cf27
mod_register_ibr: Allow registration to reset an existing account password if permitted by a plugin
6 years ago
Kim Alvefur
2861bb873a
mod_admin_shell: Update for async.wait_for rename
6 years ago
Matthew Wild
6a126c350f
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Matthew Wild
c96212e146
mod_storage_sql: Fix incorrect results when fetching items before specific archive id
...
Copy/paste error, introduced in deb68066c7aa
6 years ago
Boris Grozev
68146065e1
mod_http: Support CIDR for trusted proxies.
6 years ago
Kim Alvefur
3405f0dfe7
mod_admin_shell: Fix display of units for some statistics
6 years ago
Kim Alvefur
f86aaa431f
mod_admin_shell: Skip multiplier adjustment for rates
6 years ago
Kim Alvefur
7c630e9183
mod_admin_shell: Format stats with util.human.units
6 years ago
Kim Alvefur
e3bb9434f1
mod_s2s: Move out of empty directory
...
mod_s2s.lua had been all alone in there since the removal of
s2sout.lib.lua in 756b8821007a
6 years ago
Kim Alvefur
5a58b068e1
mod_admin_shell: Fix error due to float passed to os.date in Lua 5.3
...
Thanks Martin
6 years ago