Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.human.io: Pass nil to cell mapper to signal missing value | Kim Alvefur | 2021-11-12 | 1 | -15/+13 |
| | | | | | Seems more like conventional Lua than passing an empty string to signal lack of value. | ||||
* | mod_admin_shell: Respect metatables in output serialization | Kim Alvefur | 2021-11-12 | 1 | -1/+7 |
| | | | | | Makes it so that returning e.g. util.cache :table() produces useful output, which otherwise would look like empty tables. | ||||
* | mod_admin_shell: Specify a width for cert column | Kim Alvefur | 2021-11-10 | 1 | -0/+1 |
| | | | | Avoids ellipsis | ||||
* | mod_admin_shell: Indicate bi-directional s2s connections | Kim Alvefur | 2021-11-10 | 1 | -1/+2 |
| | |||||
* | mod_admin_shell: Allow passing columns as a string for convenience | Kim Alvefur | 2021-11-10 | 1 | -0/+1 |
| | |||||
* | mod_admin_shell: Optionally group session listings by host when not included ↵ | Kim Alvefur | 2021-11-10 | 1 | -3/+33 |
| | | | | | | as column Similar to the earlier view | ||||
* | mod_admin_shell: New table based implementation of c2s and s2s:show() | Kim Alvefur | 2021-11-10 | 1 | -198/+245 |
| | | | | | | Nicer and more readable. Thanks jonas’ and prosody@ for JID length stats to inform column widths. | ||||
* | mod_pubsub: Return proper errors for disco queries on nodes | Kim Alvefur | 2021-11-01 | 1 | -2/+4 |
| | | | | | Previously this would return item-not-found, even when you could see the node in disco#items. | ||||
* | mod_muc_mam: Use util.dataforms timestamp validation | Kim Alvefur | 2021-10-26 | 1 | -14/+5 |
| | |||||
* | mod_mam: Use util.dataforms timestamp validation | Kim Alvefur | 2021-10-26 | 1 | -14/+5 |
| | |||||
* | mod_http_file_share: Move number coercion into util.dataforms | Kim Alvefur | 2021-10-25 | 1 | -2/+2 |
| | |||||
* | mod_admin_adhoc: Move number coercion into util.dataforms | Kim Alvefur | 2021-10-25 | 1 | -8/+8 |
| | | | | | Internal use of XEP-0122 to shift the responsibility for converting numbers to strings. | ||||
* | mod_c2s,etc: Identify stanza object with appropriate function | Kim Alvefur | 2021-10-24 | 4 | -9/+9 |
| | | | | | Better than duck typing, in case anyone ever passes a non-stanza table with a 'name' field. | ||||
* | mod_s2s: Fix logging of <stream:error> consistency with other mods | Kim Alvefur | 2021-10-24 | 1 | -1/+1 |
| | | | | | | | `reason` was often a table, so the log said "table: 0xptr" or such. mod_c2s, mod_bosh etc logs the stream error stanza object, so better do the same. It would be nicer if this was an util.error object, but that will have to be a future change. | ||||
* | mod_http_file_share: Silence luacheck warning | Kim Alvefur | 2021-10-23 | 1 | -1/+1 |
| | |||||
* | mod_http_file_share: Clean up incomplete uploads | Kim Alvefur | 2021-10-23 | 1 | -0/+7 |
| | | | | | | | If the request fails in the middle then the file~ could be left behind because no code was invoked to delete it then. This gets rid of it when the request is removed. It may still be left in case of an unclean shutdown. | ||||
* | mod_s2s: Don't pass unknown hostnames as stats label | Kim Alvefur | 2021-10-21 | 1 | -0/+1 |
| | | | | | Labels are supposed to be fixed sets of things, so defined hosts are okay, but not unknown hosts. | ||||
* | mod_http_file_share: Allow 'Authorization' header via CORS (thanks kawaii) | Kim Alvefur | 2021-10-20 | 1 | -0/+3 |
| | | | | | | Can't find anything saying anything on whether this is needed or not. kawaii reported that both Chrome and Firefox complained unless the header was added to the list of allowed headers. | ||||
* | mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122 | Kim Alvefur | 2021-10-20 | 2 | -0/+14 |
| | | | | | | Clients would generally be using the "max" symbol instead of discovering this, but this also gets us validation and earlier rejection of out of bounds values. | ||||
* | mod_pubsub: Prevent max_items from being set to zero | Kim Alvefur | 2021-10-20 | 1 | -0/+1 |
| | | | | | | | Disable persistence instead if no items should be persisted. XEP-0060 is not entirely clear on what either of those option really mean. | ||||
* | mod_pubsub,mod_pep: Implement 'send_last_published_item' option #1436 | Kim Alvefur | 2021-10-19 | 2 | -0/+19 |
| | | | | | | | | Default left as 'never' in mod_pubsub to preserve the previous behavior. Unclear if this is desirable, but can always be changed later. In mod_pep this allows turning off the automatic resending of most recent item. | ||||
* | mod_http_file_share: return 401 instead of 403 if authentication failed | Jonas Schäfer | 2021-10-19 | 1 | -1/+1 |
| | | | | | | | This is as per the HTTP standards [1]. Thankfully, the REQUIRED www-authenticate header is already generated by the code. [1]: https://datatracker.ietf.org/doc/html/rfc7235#section-3.1 | ||||
* | mod_auth_cyrus: Remove (move to community modules) | Kim Alvefur | 2021-10-17 | 1 | -85/+0 |
| | | | | mod_auth_ldap provides LDAP support without being tied to Cyrus | ||||
* | mod_admin_shell: Show HTTP base-URLs in module:info() | Kim Alvefur | 2021-10-13 | 1 | -1/+2 |
| | | | | | Because it's nice, not having to find it in http:list(), which could have a lot of items. | ||||
* | mod_mimicking: Correctly hook the *global* user-deleted event | Kim Alvefur | 2021-10-12 | 1 | -1/+2 |
| | |||||
* | mod_storage_xep0227: Add scram-credentials to user element rather than server | Matthew Wild | 2021-09-22 | 1 | -1/+1 |
| | |||||
* | mod_auth_ldap: Import from prosody-modules rev f52452911187 | Kim Alvefur | 2021-10-05 | 1 | -0/+154 |
| | |||||
* | mod_carbons: Advertise following of recommended rules (closes #1486) | Kim Alvefur | 2021-10-05 | 1 | -0/+2 |
| | | | | We're doing our best! | ||||
* | mod_s2s_auth_certs: Collect stats on validation results (for #975) | Kim Alvefur | 2021-10-05 | 1 | -0/+4 |
| | |||||
* | mod_csi_simple: Provide custom set of timing buckets | Kim Alvefur | 2021-10-05 | 1 | -1/+2 |
| | | | | | | The default of 0.001..100.0 did not feel suitable here. This might be better. Longer is better and hold times less than a few seconds is generally undesirable. | ||||
* | mod_admin_shell: Allow passing an exit code to server:shutdown() | Kim Alvefur | 2021-09-30 | 1 | -2/+2 |
| | | | | Mirroring the internal API | ||||
* | mod_posix: Exit with non-zero status code on problems | Kim Alvefur | 2021-09-30 | 1 | -4/+4 |
| | | | | | Previously it would default to exit with 0 as status code, meaning success, which is weird. | ||||
* | mod_http_errors: Make it easier to override 'http-message' handler | Kim Alvefur | 2021-09-24 | 1 | -1/+1 |
| | | | | | | Per the unspoken internal standard of -1 as priority for most built-in event handlers, since this makes it easy for 3rd party plugins to override behavior by hooking at the default priority of 0. | ||||
* | mod_mam: Merge main and RSM-specific log message here too | Kim Alvefur | 2021-09-23 | 1 | -10/+10 |
| | |||||
* | mod_muc_mam: Fix reference to "user" in debug message copied from mod_mam | Kim Alvefur | 2021-09-23 | 1 | -1/+1 |
| | |||||
* | mod_muc_mam: Merge main and RSM-specific log message into a single one | Kim Alvefur | 2021-09-23 | 1 | -9/+7 |
| | |||||
* | mod_muc_mam: Fix copypaste mistake in debug logging | Kim Alvefur | 2021-09-23 | 1 | -1/+1 |
| | | | | | This line was copied from mod_mam, where `origin.username` made sense, less so here. | ||||
* | mod_message: Fire event for groupchat messages sent to bare JID | Matthew Wild | 2021-09-22 | 1 | -0/+9 |
| | | | | | | | | This is becoming more common in XMPP as people experiment with a MIX-like model where the bare JID joins a group chat instead of a full JID. Specifically right now this is being added to help with processing notifications from mod_muc_offline_delivery. | ||||
* | mod_bosh: Fix typo in comment | Kim Alvefur | 2021-09-19 | 1 | -1/+1 |
| | |||||
* | mod_register_limits: Reword some options | Kim Alvefur | 2021-09-19 | 1 | -19/+21 |
| | | | | Remember to remove the compatibility things in some future version | ||||
* | MUC: Reject full JID in affiliation queries | Kim Alvefur | 2021-09-17 | 1 | -0/+3 |
| | | | | | | | | | | XEP-0045 states: > Affiliations are granted, revoked, and maintained based on the user's > bare JID, not the nick as with roles. Therefore inclusion of a full JID in affiliation queries is invalid. Thanks to Ge0rG and Poezio for discovering this issue. | ||||
* | mod_pubsub: Advertise support for 'max' as value for max_items | Kim Alvefur | 2021-09-15 | 1 | -0/+4 |
| | | | | Ref #1643 | ||||
* | mod_http_file_share: Fix measuring how long periodic task take | Kim Alvefur | 2021-09-14 | 1 | -2/+6 |
| | |||||
* | mod_message: Clarify purpose of username field in offline message event | Kim Alvefur | 2021-09-12 | 1 | -2/+2 |
| | | | | | Added in 03714861f8fc but it did not appear to be used anywhere until offline message "handling" was added to mod_mam in 8141645e3865 | ||||
* | mod_carbons: Reduce line count using new util.stanza attr method | Kim Alvefur | 2021-09-12 | 1 | -4/+2 |
| | |||||
* | mod_mam: Reduce line count using new util.stanza attr method | Kim Alvefur | 2021-09-12 | 1 | -4/+2 |
| | | | | | Since this stanza-id was generated elsewhere in mod_mam, there should be no need for normalization. | ||||
* | mod_http_file_share: Measure current total usage | Kim Alvefur | 2021-09-12 | 1 | -0/+7 |
| | | | | | In order to allow monitoring. Especially as there's not much in the way of hard numbers on how much space gets used. | ||||
* | mod_storage_xep0227: Update for XEP-0227 r1.1: Support for SCRAM, MAM, PEP | Matthew Wild | 2021-09-12 | 1 | -23/+495 |
| | |||||
* | mod_pubsub/pubsub.lib: Export config forms for use by other modules | Matthew Wild | 2021-09-11 | 1 | -0/+3 |
| | | | | In this case I need them for 227 import/export. | ||||
* | mod_http_file_share: Fix traceback in global quota debug logging (thanks Martin) | Kim Alvefur | 2021-09-12 | 1 | -2/+4 |
| | | | | | Error in util.human.units.format because of B(nil) when the global quota is unset. |