Kim Alvefur
933c048829
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
91d2ab9108
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
Emmanuel Gil Peyrot
0314b7063c
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
f1fcdfc246
mod_proxy65: Limit dump of invalid data to 300 bytes (like mod_c2s)
6 years ago
Kim Alvefur
d89a99eb43
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
1c0950bc36
mod_server_contact_info: Add status-addresses field
...
XEP-0157 version 1.1.0
6 years ago
Kim Alvefur
18525691a4
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
7fb1dd361b
mod_admin_shell: Handle server_epoll using monotonic time internally
6 years ago
Kim Alvefur
64614cb420
mod_admin_shell: Fix debug:timers to handle net.server native timers
6 years ago
Kim Alvefur
710339a838
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
7484fb15cb
mod_register_ibr: Add FORM_TYPE as required by XEP-0077 ( fixes #1511 )
...
Backport of f90abf142d53 from trunk
6 years ago
Kim Alvefur
65a654d726
mod_storage_sql: Add index covering sort_id to improve performance ( fixes #1505 )
6 years ago
Kim Alvefur
89af997157
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
520e494813
MUC: Persist affiliation_data in new MUC format!
6 years ago
Kim Alvefur
e3911ce5da
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
042b514235
mod_pubsub, mod_pep: Ensure correct number of children of <item/> ( fixes #1496 )
6 years ago
Kim Alvefur
2de7db5f8b
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
6e53a3a601
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
84e0c87b7e
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
ccc5516646
mod_muc: Allow control over the server-admins-are-room-owners feature (see #1174 )
6 years ago
Kim Alvefur
1d1491c01b
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
2418c3fe43
mod_websocket: Fire event on session creation (thanks Aaron van Meerten)
6 years ago
Matthew Wild
4167f630b8
mod_posix: Support for command-line flags to override 'daemonize' config option
...
-D / --daemonize
-F / --no-daemonize
6 years ago
Kim Alvefur
eb7a71a645
mod_websocket: Clear mask bit when reflecting ping frames ( fixes #1484 )
6 years ago
Matthew Wild
073a654eff
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
f480583839
mod_register_ibr: Allow registration to reset an existing account password if permitted by a plugin
6 years ago
Kim Alvefur
efcf7cb7d4
mod_admin_shell: Update for async.wait_for rename
6 years ago
Matthew Wild
0919bb30d3
mod_storage_internal, mod_storage_memory: Add support for query.before
...
Previously returned all results.
6 years ago
Matthew Wild
371d05a0c6
mod_storage_sql: Fix incorrect results when fetching items before specific archive id
...
Copy/paste error, introduced in deb68066c7aa
6 years ago
Boris Grozev
edd798dd98
mod_http: Support CIDR for trusted proxies.
6 years ago
Kim Alvefur
ababc84794
mod_admin_shell: Fix display of units for some statistics
6 years ago
Kim Alvefur
4a087da58e
mod_admin_shell: Skip multiplier adjustment for rates
6 years ago
Kim Alvefur
509549f679
mod_admin_shell: Format stats with util.human.units
6 years ago
Kim Alvefur
6b98a3f551
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
753836c876
mod_admin_shell: Fix error due to float passed to os.date in Lua 5.3
...
Thanks Martin
6 years ago
Kim Alvefur
aa8c162f11
mod_admin_socket: Use module API meant for file paths
...
Makes it so that a relative path in the config becomes relative to the
data directory.
6 years ago
Kim Alvefur
a78297bb6c
mod_vcard_legacy: Fix publishing vcard without avatar
6 years ago
Kim Alvefur
cd40d2a630
mod_vcard_legacy: Remove semi-broken support for multiple avatars
...
Nobody does this. If someone wants to they should go use the PEP method
directly instead.
Additionally, this got in the way of doing multiple avatars The PEP Way,
since it treated each 'data' as a distinct avatar with an optional
corresponding 'metadata', which is not how it works.
6 years ago
Matthew Wild
81457f2fff
mod_admin_shell: Remove old variable declaration [luacheck]
6 years ago
Kim Alvefur
5cdbe0edde
mod_admin_socket: Use wrapserver if available
...
Why have a custom accept function when this is net.server's entire
thing?
6 years ago
Matthew Wild
f554caa3ac
mod_admin_shell: Remove extra newline at end of help text
6 years ago
Matthew Wild
e703759258
mod_admin_shell, mod_admin_telnet, util.prosodyctl.shell: Separate output from final result
...
Fixes the client pausing for input after output from commands.
6 years ago
Matthew Wild
b0463f0290
mod_admin_telnet: Become a front for mod_admin_shell
6 years ago
Matthew Wild
9daa5c028c
mod_admin_shell: New module that implements the console interface over an admin socket
6 years ago
Matthew Wild
4c6992a00e
mod_admin_socket, util.adminstream: New module to manage a local unix domain socket for admin functionality
6 years ago
Kim Alvefur
5abc2e6a5c
mod_c2s,mod_s2s: Make stanza size limits configurable
6 years ago
Kim Alvefur
d22e85debc
mod_c2s,mod_s2s: Use a distinct stream error for hitting stanza size limit
...
Since this is not a real parse error, it should not be reported as such.
6 years ago
Kim Alvefur
29f51d7e6d
mod_admin_telnet: Update existing sessions on reload
...
This removes the need to disconnect and reconnect to the telnet console
for changes to take effect.
6 years ago
Kim Alvefur
d916ce38f6
mod_storage_internal: Fix keeping old timestamp in archive map API
...
This led to a missing 'when' field on changed items, which would cause a
traceack.
6 years ago
Kim Alvefur
d689f6c9a1
mod_http: Tell luacheck to ignore the long comment lines
6 years ago