Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.human.io: Trim any broken UTF-8 from ellipsis | Kim Alvefur | 2021-11-12 | 1 | -1/+5 |
| | | | | | | | This should fix basic problems with multi-byte UTF-8 sequences getting cut in the middle. Down the rabbit hole we go... | ||||
* | util.human.io: Factor out ellipsis function | Kim Alvefur | 2021-11-12 | 1 | -1/+6 |
| | | | | Could be useful elsewhere | ||||
* | util.human.io: Support specifying column defaults in tables | Kim Alvefur | 2021-11-12 | 1 | -1/+1 |
| | |||||
* | util.human.io: Pass nil to cell mapper to signal missing value | Kim Alvefur | 2021-11-12 | 2 | -16/+22 |
| | | | | | 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. | ||||
* | util.prosodyctl.shell: Allow setting custom prompt (admin_shell_prompt) | Matthew Wild | 2021-11-11 | 1 | -4/+6 |
| | |||||
* | 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. | ||||
* | prosodyctl: Fix weird indentation | Kim Alvefur | 2021-11-06 | 1 | -2/+2 |
| | |||||
* | doap: Bump XEP-0313 version for going Stable | Kim Alvefur | 2021-11-03 | 1 | -1/+1 |
| | |||||
* | 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. | ||||
* | util.dataforms: Encode size attributes as integers in XEP-0221 media element | Kim Alvefur | 2021-10-28 | 1 | -1/+1 |
| | | | | Otherwise very large fields would be serialized in e notation | ||||
* | util.dataforms: Ensure larger integers are serialized as such | Kim Alvefur | 2021-10-28 | 2 | -1/+9 |
| | | | | | | | Assumes that most number fields are integers, as most numeric types listed in XEP-0122 are, as are all such fields in Prosody as of this. Otherwise %g produces something like 1.1259e+15 | ||||
* | util.dataforms: Scope integer handling tests | Kim Alvefur | 2021-10-26 | 1 | -26/+29 |
| | | | | | So they're separate from the datetime tests, and any future validation tests | ||||
* | util.dataforms: Turn number values into timestamps for datetime fields | Kim Alvefur | 2021-10-26 | 2 | -2/+4 |
| | | | | Makes it symmetric with parsing. | ||||
* | util.dataforms: Coerce number values for boolean fields | Kim Alvefur | 2021-10-26 | 2 | -2/+15 |
| | | | | | Makes more sense than coercing to a string, which would always be truthy. | ||||
* | 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 |
| | |||||
* | util.dataforms: Add support for datetime field types via XEP-0122 | Kim Alvefur | 2021-10-25 | 2 | -0/+22 |
| | |||||
* | 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. | ||||
* | ejabberd2prosody.lua: fix MUC subject conversion with appropriate destructuring | arcseconds | 2021-10-26 | 1 | -1/+2 |
| | |||||
* | util.startup: Understand -h, -? as --help in prosodyctl but ignore | Kim Alvefur | 2021-10-25 | 1 | -1/+1 |
| | | | | | prosodyctl -h showing an error was not very helpful, especially since prosodyctl shows its help for any unknown (or none) command. | ||||
* | util.startup: Show brief usage on `prosody -h|-?|--help` | Kim Alvefur | 2021-10-25 | 1 | -1/+8 |
| | | | | | Seems more suitable than asking if prosodyctl was meant to be used, or going ahead and starting. | ||||
* | 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. | ||||
* | util.startup: Skip config readability check in migrator (thanks eTaurus) | Kim Alvefur | 2021-10-23 | 1 | -1/+1 |
| | | | | | | This field is empty for reasons when invoked by prosody-migrator, which threw an error: > bad argument #1 to 'open' (string expected, got nil) | ||||
* | 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. | ||||
* | doap: Make note about missing 'restartlogic' from XEP-0206 | Kim Alvefur | 2021-10-21 | 1 | -1/+3 |
| | |||||
* | doap: Update versions of XEP-0178 | Kim Alvefur | 2021-10-21 | 1 | -1/+1 |
| | | | | Context in #1006 and revisions 89c42aff8510 e1d274001855 | ||||
* | doap: Update versions of XEPs | Kim Alvefur | 2021-10-21 | 1 | -13/+13 |
| | | | | | | | | Makes it easier to find XEPs that have had new revisions since we last looked at them and the corresponding code. A review of changelogs between these versions point to mostly editorial changes or otherwise without warrant for code changes. | ||||
* | doap: Fill in missing XEP versions | Kim Alvefur | 2021-10-21 | 1 | -0/+39 |
| | | | | | Makes it easier to find XEPs that have had new revisions since we last looked at them and the corresponding code. | ||||
* | 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. | ||||
* | net.server_epoll: Process all queued events from epoll before timers | Kim Alvefur | 2021-10-21 | 1 | -2/+4 |
| | | | | | | | Should call timers less frequently when many sockets are waiting for processing. May help under heavy load. Requested by Ge0rG | ||||
* | 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 | 6 | -6/+20 |
| | | | | | | 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 | 5 | -6/+19 |
| | | | | | | | 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 | 8 | -0/+226 |
| | | | | | | | | 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 | 3 | -254/+1 |
| | | | | mod_auth_ldap provides LDAP support without being tied to Cyrus | ||||
* | doap: Update XEP-0280 version, it's now Stable | Kim Alvefur | 2021-10-13 | 1 | -1/+1 |
| | |||||
* | 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. | ||||
* | ejabberd2prosody: Don't import disabled or empty passwords | Matthew Wild | 2021-10-13 | 1 | -1/+3 |
| | |||||
* | mod_mimicking: Correctly hook the *global* user-deleted event | Kim Alvefur | 2021-10-12 | 1 | -1/+2 |
| | |||||
* | util.startup: Only ask if 'prosodyctl' was meant instead of 'prosody' (fix ↵ | Kim Alvefur | 2021-10-12 | 1 | -1/+3 |
| | | | | #1692) | ||||
* | Merge 0.11->trunk | Kim Alvefur | 2021-10-12 | 1 | -1/+1 |
|\ |