Kim Alvefur
c5d487e42d
mod_storage_sql: Handle Lua 5.3 move of unpack function
8 years ago
Kim Alvefur
687384a94a
storagemanager: Fix tests on Lua 5.3
...
_G.unpack moved to table.unpack
8 years ago
Kim Alvefur
e8bab7fadf
mod_storage_memory: Adapt archive deletion code from mod_storage_internal
8 years ago
Kim Alvefur
534dae7164
mod_storage_memory: Fix overwriting old keys
...
Test fixed is: spec/core_storagemanager_spec.lua:309: Expected objects to be equal.
8 years ago
Kim Alvefur
03151ec6d5
mod_storage_memory: Remove compat for very early argument order
8 years ago
Matthew Wild
2029dbf496
MUC: Add function to retrieve affiliation data for a given JID
8 years ago
Matthew Wild
58d6d5c41d
MUC: Include affiliation data when iterating over affiliations with a room
8 years ago
Matthew Wild
9825eee8c1
MUC: Use the bare JID when performing a lookup for COMPAT with clients that don't set it ( fixes #1224 )
...
The full JID is never meant to be the target of affiliation changes.
8 years ago
Matthew Wild
e12a6cdb99
util.array: Add __div for parity with util.set
8 years ago
Matthew Wild
fbb11b868f
util.array: Break long line
8 years ago
Kim Alvefur
49c6847837
stanza_router: Remove deprecation warning for core routing functions from global scope (deprecated in 0.9)
8 years ago
Kim Alvefur
88cbaf2067
mod_compression: Remove tombstone (deprecated in 0.10)
8 years ago
Kim Alvefur
e04f6c2900
mod_privacy: Remove tombstone (deprecated in 0.10)
8 years ago
Kim Alvefur
023e5839c2
tests: Add some comments to xep54 test
8 years ago
Kim Alvefur
006a19da77
tests: Remove initial read since XEP is unclear (see #1104 )
...
If the store is empty then either this empty vCard element or an
item-not-found error is acceptable.
8 years ago
Kim Alvefur
bf624bbe1c
tests: Set a proper title for vCard test
8 years ago
Kim Alvefur
eff1cf4481
tests: Add simple test case for XEP-0054
8 years ago
Kim Alvefur
376f1e9b65
mod_vcard_legacy: Pass node defaults to publish instead of create
...
The create calls were introduced in 62fa766d8f3 but work on this started
a while before 038446c50630 allowed passing the _defaults_only flag to
publish.
8 years ago
Kim Alvefur
839e3f37db
CHANGES: Mention server_epoll
8 years ago
Kim Alvefur
c98a0e56bf
mod_vcard_legacy: Create nodes with open access ( fixes #1221 )
...
Less drastic change from mod_vcard where everything is always public.
This allows users to configure nodes without needing to for the old
behaviour.
Thanks to 038446c50630 users may still override this.
Due to #1222 this may still not apply if the node has already been
created by an automatic subscription
8 years ago
Matthew Wild
05b4064188
util.promise: Add promise.try()
8 years ago
Matthew Wild
44b3954d56
util.pubsub: Allow publishing with a config that should be used as defaults only
8 years ago
Kim Alvefur
dd2f749996
util.promise: Add a string representation
8 years ago
Matthew Wild
681b25e427
util.promise: Add promise:finally()
8 years ago
Matthew Wild
894fe1b808
util.promise: Some code relocation
8 years ago
Matthew Wild
7bcf751702
util.promise: Also support automatic resolution by returning a promise from an on_reject handler
...
Originally unimplemented because it wasn't clear to me what the correct behaviour was, but the A+
spec is clear that both onFulfilled and onRejected may return a promise.
8 years ago
Matthew Wild
0d3fa64b96
util.promise: Add additional test for promise.reject()
8 years ago
Matthew Wild
ef7d6ba99e
util.promise: Fix promise.reject() to return a rejected promise, and fix buggy test for it
8 years ago
Kim Alvefur
2de254acf7
core.moduleapi: Remove redundant condition
8 years ago
Kim Alvefur
2bb3772374
net.server_epoll: Special handling of signal interrupts
8 years ago
Kim Alvefur
afeb1f6f02
net.server_epoll: Ignore ENOENT when deregitering socket
...
It should not really happen
8 years ago
Kim Alvefur
bbf669b2c5
net.server_epoll: Graceful handling of registering already added socket
8 years ago
Kim Alvefur
ba2688c78d
util.http: Add tests for normalize_path
8 years ago
Kim Alvefur
0247a0e904
mod_http: Move normalize_path to util.http
8 years ago
Kim Alvefur
29c9d1f508
Merge 0.10->trunk
8 years ago
Kim Alvefur
2a573e5c5e
mod_http: Make sure path from http_external_url always ends with a slash ( fixes #1183 )
8 years ago
Matthew Wild
fcdc8d9ff1
mod_storage_sql: Fix issue number in comment that was fixed by 55b40f3fa659 ( fixes #1073 )
8 years ago
Matthew Wild
1faf1773a3
mod_storage_sql: Keep prosodyarchive_index unique constraint on non-MySQL DBs
8 years ago
Kim Alvefur
0ac9ea3a74
net.server: Swich method for connecting sockets with remotes
...
LuaSocket TCP sockets have have both :connect and :setpeername, which
are the exact same function, however UDP sockets only have :setpeername.
Switching to :setpeername allows most of this code to be generic wrt
TCP/UDP.
8 years ago
Kim Alvefur
e1aa03deaa
net.server_epoll: Check return conditions of early socket setup
8 years ago
Kim Alvefur
f2d9638627
net.server_epoll: Add support for the conn_type argument to addclient
8 years ago
Kim Alvefur
83e1a2af50
net.resolvers.basic: Suffix IPv4 TCP socket types with '4' to match eg 'tcp6'
8 years ago
Kim Alvefur
2104ac9fb0
net.server: Remove socket constructor fallback
...
Should no longer be needed
8 years ago
Kim Alvefur
284152ba25
util.dependencies: Add compat code for normalization of socket constructors
...
Old LuaSocket had only tcp() which was IPv4-only. LuaSocket ~3.0 adds a
tcp6() that creates a IPv6 socket. Some version moves tcp() to tcp4()
and adds an IP-version-agnostic tcp() constructor.
8 years ago
Matthew Wild
06cdd9edcd
mod_storage_sql: Change prosodyarchive_index to be non-unique ( fixes #1087 )
...
MySQL requires that the first 20 bytes are unique, even if they differ after
the first 20 bytes. This breaks e.g. pubsub/PEP nodes longer than 20 characters
that have common prefixes.
8 years ago
Matthew Wild
9423dbfdb3
mod_storage_sql: Have :users() throw an error on failure instead of returning non-iterator values
8 years ago
Kim Alvefur
93aa49462f
storagemanager tests: Also cover memory driver
8 years ago
Kim Alvefur
0f11cd3a54
mod_c2s: Fix fallback for missing session logger
8 years ago
Kim Alvefur
e2321c4d37
util.stanza: Set preserialize as freeze metamethod
8 years ago
Kim Alvefur
1ab9729aac
util.set: Add freeze metamethod
8 years ago