Kim Alvefur
e98f777bb2
mod_storage_xep0227: Fix mapping of nodes without explicit configuration
...
Turns out this table was wrong, it's missing some fields which are
required and it's 'name', not 'node'. Setting it to the boolean true
invokes compatibility behavior in mod_pep which results in the correct
default structure.
4 years ago
Kim Alvefur
e626855282
mod_storage_xep0227: Fix conversion of SCRAM into internal format ( fix #1741 )
...
Looks like this function was a copy of hex_to_base64 without modifying
it to do its inverse.
4 years ago
Kim Alvefur
fc6f400997
mod_storage_xep0227: Support basic listing of PEP nodes in absence of pubsub#admin data
...
Allows migrating PEP nodes with default settings
4 years ago
Kim Alvefur
f67582a260
mod_storage_xep0227: Improve logging
...
What were we looking at?
4 years ago
Matthew Wild
ea30ed9428
mod_storage_xep0227: Handle missing {pubsub#owner}pubsub element ( fixes #1740 )
4 years ago
Matthew Wild
ab835fed13
util.hex: Deprecate to/from in favour of encode/decode, for consistency!
4 years ago
Kim Alvefur
7b32c69b43
mod_storage_xep0227: Use enum option method
3 years ago
Kim Alvefur
98922d54b1
plugins: Prefix module imports with prosody namespace
3 years ago
Kim Alvefur
5251c9b686
compat: Remove handling of Lua 5.1 location of 'unpack' function
4 years ago
Matthew Wild
d595ebf9e1
mod_storage_xep0227: Fix luacheck warning
4 years ago
Matthew Wild
2e538ffc6b
mod_storage_xep0227: Fix traceback during iteration of driver stores
...
:include(other_set), :add(item)
4 years ago
Matthew Wild
ee1f7077e3
mod_storage_xep0227: Fix file export (missing parameter) from refactor in 270047afa6af
4 years ago
Jonas Schäfer
91055b49bb
mod_storage_xep0227: treat roster metadata pseudo-entry correctly
...
The roster version is stored in a pseudo-item which has the key `false`.
The if condition in the touched code attempts to guard against this, but
it does not take into account that the jid prepping returns nil instead
of false.
By moving the jid prepping into the if, we can check for the metadata
entry safely.
4 years ago
Jonas Schäfer
bb100ed33e
mod_storage_xep0227: be defensive against empty vCard
...
An empty vCard store may look like the empty table, which does not have
the `attr` key, which would then blow up in util.stanza.deserialize.
4 years ago
Matthew Wild
9767804146
mod_storage_xep0227: Fix luacheck warnings
4 years ago
Matthew Wild
843e4ad49d
mod_storage_xep0227: Add API to iterate all stores of a user
4 years ago
Matthew Wild
2d0db1b0a3
mod_storage_xep0227: Skip self-contacts on roster import
4 years ago
Kim Alvefur
bdd8dddff5
mod_storage_xep0227: Fix writing non-user data
...
Attempt to concatenate nil 'user'
Not much data actually makes sense but the migrator tries to write or
clear these.
4 years ago
Matthew Wild
e65e3cad0f
mod_storage_xep0227: Ignore luacheck warning
4 years ago
Matthew Wild
68636e702c
mod_storage_xep0227: Support for exporting nodes with no stored configuration
4 years ago
Matthew Wild
65dff38bbb
mod_storage_xep0227: Allow overriding the input/output layer for XEP-0227 data
...
This can (and will) be used to support in-memory import/export functions.
4 years ago
Matthew Wild
5cb8d55857
mod_storage_xep0227: Replace custom tag-removal helpers with :remove_children()
4 years ago
Matthew Wild
eda4a96f2f
mod_storage_xep0227: Add scram-credentials to user element rather than server
4 years ago
Matthew Wild
d9a9e87af5
mod_storage_xep0227: Update for XEP-0227 r1.1: Support for SCRAM, MAM, PEP
4 years ago
Kim Alvefur
2455838c48
mod_storage_xep0227: Ignore unused 'self' argument [luacheck]
8 years ago
Kim Alvefur
227e6843e4
mod_storage_xep0227: Add roster storage ( fixes #1023 )
8 years ago
Kim Alvefur
07eb5f7f98
mod_storage_xep0227: Correctly report that only key-value stores are supported
8 years ago
Kim Alvefur
0ee5b781b8
mod_storage_xep0227: Silence luacheck warnings
11 years ago
Kim Alvefur
0eb8dc6b65
mod_storage_xep0227: Store data from mod_auth_internal_hashed in a private namespace
11 years ago
Kim Alvefur
b9384cee94
mod_storage_xep0227: Use the registered namespace
11 years ago
Kim Alvefur
f10a032507
mod_storage_xep0227: Update open method for current API
11 years ago
Kim Alvefur
33c20a1220
mod_storage_xep0227: Return error from io.open if unable to open file for writing
11 years ago
Kim Alvefur
d5624ca8e0
mod_storage_xep0227: Open file for writing even if removing so os.remove has a file to delete
11 years ago
Kim Alvefur
d2c03a1d00
mod_storage_xep0227: Close file handle after reading
11 years ago
Kim Alvefur
437ae6da46
mod_storage_xep0227: Use configured storage path
11 years ago
Kim Alvefur
e6aaeb7b84
mod_storage_xep0227: Rename to reflect current naming practices
11 years ago
Waqas Hussain
833573efa9
plugins/storage/mod_xep0227: Use util.xml.
13 years ago
Waqas Hussain
7daf3c7c14
core.storagemanager, mod_storage_*: "data-driver" -> "storage-provider", to allow using module:provides().
14 years ago
Waqas Hussain
a2bf92e4e3
storage/mod_xep0227: Initial commit.
16 years ago
Waqas Hussain
7af782ea9c
mod_storage, plus a bit of SQL and XML.
16 years ago