Kim Alvefur <zash@zash.se> [Fri, 21 Sep 2018 21:19:44 +0200] rev 9339
mod_http: Hook the host-less event if hooked from a global module
Kim Alvefur <zash@zash.se> [Fri, 21 Sep 2018 21:19:41 +0200] rev 9338
net.http.server: Move handling of hosts to mod_http
Now an event like `GET /path` is fired at first, and mod\_http
dispatches the old `GET host/path` events.
Kim Alvefur <zash@zash.se> [Fri, 21 Sep 2018 15:34:45 +0200] rev 9337
mod_server_contact_info: Update copyright header
Kim Alvefur <zash@zash.se> [Sun, 16 Sep 2018 22:40:35 +0200] rev 9336
mod_server_contact_info: Simplify
This relies on the new name mapping in util.dataforms
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:37:47 +0100] rev 9335
mod_admin_telnet: Split out sort function for clarity
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:37:18 +0100] rev 9334
mod_adhoc: Use util.iterators.sorted_pairs() to sort commands
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:36:29 +0100] rev 9333
mod_admin_telnet: Make use of util.iterators.sorted_pairs()
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:35:35 +0100] rev 9332
util.json: Use util.iterators.sorted_pairs() in ordered mode
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:30:20 +0100] rev 9331
util.iterators tests: Check value matches expected [luacheck]
Matthew Wild <mwild1@gmail.com> [Fri, 21 Sep 2018 14:27:46 +0100] rev 9330
util.iterators: Add sorted_pairs() method
Matthew Wild <mwild1@gmail.com> [Mon, 17 Sep 2018 15:28:53 +0100] rev 9329
util.json tests: Add [luacheck] annotation to mark intentionally-empty if branch
Matthew Wild <mwild1@gmail.com> [Mon, 17 Sep 2018 15:27:01 +0100] rev 9328
.luacheckrc: Remove util_cache_spec.lua from the ignore list
Kim Alvefur <zash@zash.se> [Fri, 21 Sep 2018 14:23:21 +0200] rev 9327
util.jid: Add missing semicolon
Matthew Wild <mwild1@gmail.com> [Mon, 17 Sep 2018 15:25:47 +0100] rev 9326
util.cache tests: Add annotation to fix [luacheck] warning
Matthew Wild <mwild1@gmail.com> [Mon, 17 Sep 2018 15:18:54 +0100] rev 9325
scansion: muc_register.scs: Test to ensure MUC registration by unaffiliated users is disabled by default
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 14:27:38 +0200] rev 9324
net.server_epoll: Simplify minimal string representation
.conn might just be the FD sometimes
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 14:24:09 +0200] rev 9323
net.server_epoll: Add back setflags API for compat
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 14:20:01 +0200] rev 9322
net.server_epoll: Fix write signal handling in watchfd API
The main loop calls :onwritable but here it was spelled :onwriteable
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 01:17:53 +0200] rev 9321
util.poll: Lua 5.1 compat
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 01:05:59 +0200] rev 9320
util.poll: Remove 'inline' from function declaration
Why does this fix building?
Kim Alvefur <zash@zash.se> [Sat, 15 Sep 2018 01:01:04 +0200] rev 9319
util.poll: Test that it loads after being compiled
Matthew Wild <mwild1@gmail.com> [Fri, 14 Sep 2018 18:06:12 +0100] rev 9318
MUC: Don't kick user of a reserved nick if it's theirs (thanks pep.)
Kim Alvefur <zash@zash.se> [Wed, 16 May 2018 23:57:09 +0200] rev 9317
net.server_epoll: Use util.poll
Kim Alvefur <zash@zash.se> [Wed, 16 May 2018 23:56:34 +0200] rev 9316
util.poll: Import poll library with epoll and select support
Matthew Wild <mwild1@gmail.com> [Fri, 14 Sep 2018 12:05:47 +0100] rev 9315
MUC: Include 'nick' attribute in affiliation lists (thanks jc)
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 21:09:55 +0200] rev 9314
net.server_epoll: Make read_size a server-wide option
Can still be overriden per connection
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 21:07:44 +0200] rev 9313
net.server_epoll: Rename pattern to read_size
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 20:37:43 +0200] rev 9312
net.server_epoll: Refactor Direct TLS assumptions outwards
The assumption that connections are "Direct TLS" when a TLS context is
supplided should be broken. The goal is to make it easy to add a new API
that can be given a TLS context at creation even if it should do
STARTTLS.
With this commit, only the exposed server_select-compatible API assumes
Direct TLS when a TLS context is included.
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 16:45:18 +0100] rev 9311
util.stanza tests: Remove unused variable #luacheck
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 16:35:48 +0100] rev 9310
util.stanza: Don't automatically generate ids for iq stanzas
Users of this API should provide their own id attribute that meets their
uniqueness requirements.
The current implementation leaks information (i.e. how many iq stanzas
have been sent by the server to other JIDs). Providing any strong
guarantees of randomness here would need to pull in additional
dependencies that we don't want in this simple library.
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 17:28:50 +0200] rev 9309
net.server_epoll: Factor Direct TLS handling out of connection initialization
Eventually it should be possible to create a socket that has a TLS
context but that does not automatically start TLS on connect.
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 16:18:59 +0100] rev 9308
spec/scansion/basic_roster.scs: Add tests for actually modifying the roster
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 16:17:46 +0100] rev 9307
.luacheckrc: Remove aspirational goals from strict check, keep it simple for now
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 16:08:38 +0100] rev 9306
rostermanager: Use util.id to generate ids for roster pushed
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 15:37:42 +0100] rev 9305
util.stanza tests: Fix test name (copy/paste error?)
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 17:02:26 +0200] rev 9304
net.server_epoll: Remove coercion of connections to strings
No longer needed since util.logger does this now
Kim Alvefur <zash@zash.se> [Thu, 13 Sep 2018 16:50:23 +0200] rev 9303
net.server_epoll: Rename all variables holding TLS contexts for consistency
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 15:11:08 +0100] rev 9302
MUC: Fix to correctly return 'node' in disco#info responses (thanks jc)
Matthew Wild <mwild1@gmail.com> [Thu, 13 Sep 2018 14:46:24 +0100] rev 9301
MUC: If a user with an existing affiliation registers, preserve that affiliation (thanks jc)
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 14:59:52 +0100] rev 9300
spec/scansion/prosody.cfg.lua: daemonize by default
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 14:44:40 +0100] rev 9299
spec/scansion/prosody.cfg.lua: Add pidfile option so Prosody can be daemonized
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 14:27:01 +0100] rev 9298
doc/net.server.lua: Not an actual source file, instruct luacheck to ignore it
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 13:49:53 +0100] rev 9297
spec/scansion/prosody.cfg.lua: Config file to be used for integration tests
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 13:44:03 +0100] rev 9296
mod_storage_memory: Import from prosody-modules 4c3230c22c18
Matthew Wild <mwild1@gmail.com> [Wed, 12 Sep 2018 13:43:18 +0100] rev 9295
mod_auth_insecure: Fix module provider name
Matthew Wild <mwild1@gmail.com> [Tue, 11 Sep 2018 20:57:23 +0100] rev 9294
spec/scansion: Ensure all scripts have sensible titles
Matthew Wild <mwild1@gmail.com> [Mon, 10 Sep 2018 14:58:44 +0100] rev 9293
spec/scansion: Multiple fixes to make all tests pass in latest (c35386e4b456) scansion
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 19:34:59 +0200] rev 9292
GNUmakefile: Tell Mercurial to behave consistenly
See `hg help environment.HGPLAIN`
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 19:23:52 +0200] rev 9291
GNUmakefile: Allow overriding path to busted
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 19:23:26 +0200] rev 9290
GNUmakefile: Allow overriding path to luacheck
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 17:47:47 +0200] rev 9289
mod_vcard_legacy: Add some notes
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 02:43:45 +0200] rev 9288
mod_vcard_legacy: Fix EXTVAL conversion (thanks pep.)
Good thing uri and url doesn't look similar at all!
Kim Alvefur <zash@zash.se> [Sun, 09 Sep 2018 02:14:44 +0200] rev 9287
mod_vcard_legacy: Fix uppercase tag name (thanks pep.)
Must have slipped on my shift key
Kim Alvefur <zash@zash.se> [Sat, 08 Sep 2018 16:49:29 +0200] rev 9286
mod_vcard4: Advertise feature on account instead of host
Kim Alvefur <zash@zash.se> [Sat, 08 Sep 2018 11:52:44 +0200] rev 9285
util.pposix: Allow _DARWIN_C_SOURCE to be overriden
Like the others there
Kim Alvefur <zash@zash.se> [Sat, 08 Sep 2018 11:51:52 +0200] rev 9284
Merge 0.10->trunk
Kim Alvefur <zash@zash.se> [Sat, 08 Sep 2018 11:46:02 +0200] rev 9283
util.pposix: Fix or silence a warning on OS X (#1202)
Kim Alvefur <zash@zash.se> [Sat, 08 Sep 2018 11:42:22 +0200] rev 9282
Merge 0.10->trunk
Kim Alvefur <zash@zash.se> [Sat, 18 Aug 2018 12:07:40 +0200] rev 9281
util.pposix: Fix building on OS X (#1202)
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 15:50:12 +0200] rev 9280
util.pposix: Restrict use of malloc_info to glibc
Fixes build on musl based distros like Alpine linux
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 15:25:33 +0200] rev 9279
util.pposix: Do not attempt to assign to stdio variables [pedantic]
Fixes build on gcc 6.4.0
See also https://stackoverflow.com/a/586416
Matthew Wild <mwild1@gmail.com> [Fri, 07 Sep 2018 10:46:30 +0100] rev 9278
mod_auth_insecure: Accept any username/password (import of mod_auth_any from prosody-modules)
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 02:25:39 +0200] rev 9277
mod_pubsub: Exclude value of FORM_TYPE from stored data
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 01:08:27 +0200] rev 9276
mod_vcard_legacy: Include avatar data even if metadata can't be loaded
Normally both nodes should have the same configuration and matching
items, but we can't depend on it without having some code that enforces
it, which does not exist at the time of this commit.
Including the avatar itself should be prioritised. The image format can
be derived from magic bytes.
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 01:06:27 +0200] rev 9275
mod_vcard_legacy: Return old vcard if neither vcard4 or avatar available
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 01:04:53 +0200] rev 9274
mod_vcard_legacy: Handle avatar without vcard4
Since vcards are just avatar containers in many modern clients, aborting
in case of no vcard4 data is not optimal.
The upgrade mechanism needs further tweaks.
Kim Alvefur <zash@zash.se> [Fri, 07 Sep 2018 00:36:31 +0200] rev 9273
mod_vcard_legacy: Rename variable for consistency
The variable holding the PEP service was `pep_service`, except in the
XEP-0153 section.
Kim Alvefur <zash@zash.se> [Thu, 06 Sep 2018 23:51:03 +0200] rev 9272
mod_vcard_legacy: Return error in case saving avatar fails
Kim Alvefur <zash@zash.se> [Thu, 06 Sep 2018 23:33:44 +0200] rev 9271
mod_vcard_legacy: Factor out error handling into a function
This is a lite version of pubsub_error_reply() in mod_pubsub
Kim Alvefur <zash@zash.se> [Thu, 06 Sep 2018 23:05:38 +0200] rev 9270
mod_vcard_legacy: Use correct method to clear avatar data
Matthew Wild <mwild1@gmail.com> [Thu, 06 Sep 2018 16:44:48 +0100] rev 9269
spec/scansion: Add scansion scripts used for testing
All past, except issue978-multi which fails randomly
based on ordering of elements - this is a scansion issue
to be resolved.
Matthew Wild <mwild1@gmail.com> [Tue, 04 Sep 2018 21:55:40 +0100] rev 9268
MUC: Initialize room with empty affiliation_data if none stored
Kim Alvefur <zash@zash.se> [Tue, 04 Sep 2018 18:00:43 +0200] rev 9267
MUC: Allow vCard4 requests trough
Matthew Wild <mwild1@gmail.com> [Tue, 04 Sep 2018 11:59:17 +0100] rev 9266
MUC: Allow admins to include a registered nick when setting affiliation
This is defined by XEP-0045 section 9.3 "Granting Membership"
Matthew Wild <mwild1@gmail.com> [Tue, 04 Sep 2018 11:57:41 +0100] rev 9265
MUC: Move comment for clarity
Kim Alvefur <zash@zash.se> [Sat, 18 Aug 2018 13:48:38 +0200] rev 9264
mod_vcard4: Allow access to the vcard4 PEP node via iq syntax
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 22:06:25 +0200] rev 9263
mod_vcard_legacy: Announce feature on bare JID per XEP
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 18:10:33 +0200] rev 9262
mod_vcard_legacy: Clear avatars on setting a vcard-temp
Otherwise it is not possible to remove avatars
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 23:43:19 +0200] rev 9261
mod_vcard_legacy: Support external avatars
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 23:42:33 +0200] rev 9260
mod_vcard_legacy: Handle incomplete avatar info
Kim Alvefur <zash@zash.se> [Tue, 21 Aug 2018 17:16:30 +0200] rev 9259
mod_vcard_legacy: Respond with old vcard
Kim Alvefur <zash@zash.se> [Tue, 21 Aug 2018 17:16:27 +0200] rev 9258
mod_vcard_legacy: Respond to attempts to set the legacy vcard-temp
Kim Alvefur <zash@zash.se> [Tue, 21 Aug 2018 16:34:46 +0200] rev 9257
mod_vcard_legacy: Add support for address field
Kim Alvefur <zash@zash.se> [Mon, 20 Aug 2018 09:18:21 +0200] rev 9256
mod_vcard_legacy: Include avatar data from XEP-0084 PEP node
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 23:46:19 +0200] rev 9255
mod_vcard_legacy: Add translation of telephone field
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 23:45:58 +0200] rev 9254
mod_vcard_legacy: Add translation of email field
Kim Alvefur <zash@zash.se> [Mon, 20 Aug 2018 07:36:03 +0200] rev 9253
mod_vcard_legacy: Attach vcard-temp avatar hash to outgoing presence
Kim Alvefur <zash@zash.se> [Tue, 21 Aug 2018 16:40:40 +0200] rev 9252
mod_vcard_legacy: Responds to vcard-temp queries with translated vcard4 data
Kim Alvefur <zash@zash.se> [Thu, 15 Feb 2018 03:00:32 +0100] rev 9251
mod_blocklist: Store timestamp of blocking to allow age to be determined
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 21:18:30 +0200] rev 9250
mod_pubsub: Fix dataforms error handling
The :data method returns the table holding parsed values always. The
second return value is a table in case some fields had problems.
Kim Alvefur <zash@zash.se> [Mon, 03 Sep 2018 19:44:28 +0200] rev 9249
util.dataforms: Improve default error message for failed datatype validation
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 03:02:44 +0200] rev 9248
mod_pubsub: Use dataforms validation to specify that max_items is an integer
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 03:01:55 +0200] rev 9247
mod_pubsub: Use field mapping in util.dataforms
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 03:10:09 +0200] rev 9246
util.dataforms: Add support for XEP-0122: Data Forms Validation
Initially only basic validation of xs:integer
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 01:24:46 +0200] rev 9245
util.dataforms: Allow field names to be different from the 'var' attribute
This should allow the usage of long prefixes and namespace-like names to
be contained to the XML representation of the form, so that the code can
use more convenient names.
Matthew Wild <mwild1@gmail.com> [Mon, 03 Sep 2018 17:45:30 +0100] rev 9244
configmanager: Allow referencing environment variables in the config as as ENV_<name>
Matthew Wild <mwild1@gmail.com> [Mon, 03 Sep 2018 12:26:25 +0100] rev 9243
MUC: Add support for registering with a MUC, including reserving a nickname as per XEP-0045
Matthew Wild <mwild1@gmail.com> [Mon, 03 Sep 2018 12:19:42 +0100] rev 9242
MUC: Add some comments for clarity
Matthew Wild <mwild1@gmail.com> [Mon, 03 Sep 2018 12:19:20 +0100] rev 9241
MUC: Add support for separate events for disco#info queries with a 'node'
Reserved nickname discovery uses this
Matthew Wild <mwild1@gmail.com> [Mon, 03 Sep 2018 12:18:13 +0100] rev 9240
MUC: Add support for storing additional data with MUC affiliations
XEP-0045 registration provides examples of registering a nickname
and various other details. This also allows modules to store arbitrary
private data about an affiliated entity.
Kim Alvefur <zash@zash.se> [Sat, 01 Sep 2018 00:45:51 +0200] rev 9239
util.pubsub: Expand comment on return type from get_items
Kim Alvefur <zash@zash.se> [Fri, 31 Aug 2018 23:54:13 +0200] rev 9238
mod_pubsub: Preserve current subscription options if given a partial form
Kim Alvefur <zash@zash.se> [Fri, 31 Aug 2018 21:57:04 +0200] rev 9237
mod_pubsub: Fix summary generation for Atom entries to use the correct field
Kim Alvefur <zash@zash.se> [Fri, 31 Aug 2018 17:49:14 +0200] rev 9236
util.pubsub: Explicitly add all capabilities to the 'outcast' affiliation for completeness
Kim Alvefur <zash@zash.se> [Wed, 22 Aug 2018 13:27:36 +0200] rev 9235
util.pubsub: Comments describing the return values of methods
Kim Alvefur <zash@zash.se> [Thu, 30 Aug 2018 00:17:54 +0200] rev 9234
prosodyctl: Also look for options that belong in global section under disabled hosts (fixes #1207)
Thanks ivucica
Matthew Wild <mwild1@gmail.com> [Mon, 27 Aug 2018 14:07:28 +0100] rev 9233
util.pubsub: Add 'service' field to all events
Kim Alvefur <zash@zash.se> [Fri, 24 Aug 2018 21:04:27 +0200] rev 9232
mod_version: Remove redundant
What else would @to be in a iq/host event?
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:36:06 +0200] rev 9231
mod_private, mod_vcard: Use the usual comment on non-get received iqs.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:35:33 +0200] rev 9230
mod_version: Simplify iq handling by hooking on iq-get/ instead of iq/.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:35:17 +0200] rev 9229
mod_uptime: Simplify iq handling by hooking on iq-get/ instead of iq/.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:35:03 +0200] rev 9228
mod_time: Simplify iq handling by hooking on iq-get/ instead of iq/.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:34:34 +0200] rev 9227
mod_lastactivity: Simplify iq handling by hooking on iq-get/ instead of iq/.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:34:18 +0200] rev 9226
mod_disco: Simplify iq handling by hooking on iq-get/ instead of iq/.
Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> [Fri, 24 Aug 2018 20:34:00 +0200] rev 9225
mod_adhoc: Simplify iq handling by hooking on iq-set/ instead of iq/.
Kim Alvefur <zash@zash.se> [Wed, 22 Aug 2018 14:50:07 +0200] rev 9224
MUC: Normalize indentation
Kim Alvefur <zash@zash.se> [Tue, 21 Aug 2018 19:48:08 +0200] rev 9223
util.pubsub: Remove unused argument
I think this was probably a copy-paste mistake.
Matthew Wild <mwild1@gmail.com> [Sun, 19 Aug 2018 23:44:01 +0100] rev 9222
mod_vcard: Remove 0.8 COMPAT code
Matthew Wild <mwild1@gmail.com> [Sun, 19 Aug 2018 23:37:19 +0100] rev 9221
util.pubsub: Fire item-published/<node> to allow for easier handling of per-node items
Matthew Wild <mwild1@gmail.com> [Sun, 19 Aug 2018 21:56:33 +0100] rev 9220
util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981