Matthew Wild
1ab96f2289
tools.modtrace: Pass config to serialize()
5 years ago
Matthew Wild
7312a610d4
tools.modtrace: Library for tracing/debugging Lua module and method calls
5 years ago
Kim Alvefur
53e6579aab
tools/form2table: Convert XEP-0004 dataform from XML to util.dataforms Lua format
...
Used this to generate code for a number of PubSub forms IIRC
5 years ago
Kim Alvefur
4d9e30aff3
tools/linedebug: Print each line of source executed
...
The extremely verbose debug output. Nice for getting some idea which
code runs most often, or where it pauses for no reason etc.
5 years ago
Kim Alvefur
43ec58831c
tools/cfgdump: Reads Prosody config file and pretty-prints it back out
...
Useful for comparing what you think you have in your config with what
Prosody sees, e.g. wrt (lack of) significance of indentation, order of
options vs scope etc. (global options do not go at the end!)
Could probably be turned into a prosodyctl command, especially if it
learns to redact secrets and passwords.
5 years ago
Kim Alvefur
4cb9c49d95
tools/tb2err: Formats Lua traceback in errors.err format
...
Manually opening to the files and line numbers from a Lua traceback is
tedious. This tool converts tracebacks into a format that many compilers
and such tools use, which is also compatible with Vim (and possibly
other editors).
Thus if someone sends you a pastebin link with a traceback, a command
like the following gets you right to the relevant lines:
curl paste.example/abc123.txt | tb2err > errors.err; vim -q
5 years ago
Kim Alvefur
25685a3d1b
migrator: Don't create unused directory
...
I guess this contained the old per-store migrators
6 years ago
Kim Alvefur
8dceed3e9e
migrator: Inject data- and plugin paths during build
...
Same way as with the prosody and prosodyctl executables
6 years ago
João Duarte
8398643365
make_repo.lua: Moved to /tools/make_repo.lua
7 years ago
Kim Alvefur
037fc25b4c
migrator: Add support for archives ( fixes #651 )
7 years ago
Kim Alvefur
6041d3e4e8
migrator: Rewrite to use storage modules
...
This allows migrating to and from any storage module that supports the
right methods. Based on experimental mod_migrate work.
7 years ago
Kim Alvefur
f2dac55651
tools: Add a tool to generate net.http.codes from IANA registry
8 years ago
Kim Alvefur
91baabfede
SQL: Use standard quotes for columns and other identifiers, rewrite to grave accents for MySQL only ( fixes #885 )
9 years ago
Kim Alvefur
699dab7c6d
migration/prosody_sql: Commit transaction when all items have been processed
9 years ago
Kim Alvefur
6b3a33a083
migrator/prosody_sql: Abort and demand database be upgraded if it needs to be ( #635 )
9 years ago
Kim Alvefur
8a7bc589b3
migrator.prosody_sql: Switch to util.sql ( #635 )
9 years ago
Kim Alvefur
8716255d0c
migrator: Remove broken distinction between a load error or a missing storage handler (worked with module()?)
9 years ago
Kim Alvefur
fc7dadb6a7
migrator: Fix missing word
9 years ago
Kim Alvefur
00b6eff872
migrator: Fix argument parsing
9 years ago
Kim Alvefur
ff26455099
migrator: Unexpand whitespace
9 years ago
Kim Alvefur
0a385a3953
tools/migration/migrator/*: Remove use of module()
9 years ago
Kim Alvefur
f0918f4e1b
migrator: Remove wrapper around envloadfile since envloadfile does the right thing in a compatible way
9 years ago
Kim Alvefur
d3f66c0848
tools/erlparse: Remove use of deprecated module() function
9 years ago
Anton Shestakov
9129ea5b4c
ejabberdsql2prosody: rename variable 't' to prevent shadowing upvalues [luacheck]
...
Let's make the result of parseFile() have a more descriptive name.
10 years ago
Anton Shestakov
41c7847806
ejabberdsql2prosody: rename variable 'host' to prevent shadowing upvalue [luacheck]
...
Functions roster(), roster_pending(), roster_group(), private_storage() and
offline_msg() have argument named "host", which used to shadow upvalue of this
variable before this change. Instead of renaming this argument, let's rename
the variable to match what the script says in usage:
Usage: ejabberdsql2prosody.lua filename.txt hostname
10 years ago
Anton Shestakov
b6969ffbeb
ejabberdsql2prosody: remove unused one-letter loop variables [luacheck]
10 years ago
Anton Shestakov
0bbcab4e51
ejabberdsql2prosody: remove unused function pushback() [luacheck]
...
The same function seems to exist in tools/erlparse.lua, also unused.
10 years ago
Emmanuel Gil Peyrot
c6048a7cb4
Update every link to the documentation to use HTTPS
10 years ago
Kim Alvefur
a10c1e367f
xep227toprosody: Pass parser to callbacks (needed since addition of stanza size limits)
10 years ago
Kim Alvefur
6ec3c0bee0
ejabberd2prosody: Support password stored as SCRAM hashes
11 years ago
Matthew Wild
83ca1bd5d1
configure, Makefile: Add --libdir option to ./configure, allowing you to override the $PREFIX/lib/ default. Fixes #470 .
11 years ago
Kim Alvefur
42475293d1
tools/ejabberd2prosody.lua: Fix JID building, node-less jids became @hostname in some cases
12 years ago
Kim Alvefur
70b5195b4f
tools/jabberd14sql2prosody: Fix package.path (thanks daurnimator)
12 years ago
Waqas Hussain
9b804fffc8
tools/ejabberd2prosody: Don't throw an error if XML CDATA is null ([] in Erlang, instead of a string or being missing).
12 years ago
Kim Alvefur
6712a42066
tools/ejabberd2prosody: Handle new room member format.
12 years ago
Waqas Hussain
611b2eb4ed
tools/ejabberd2prosody: Disable generating a config, as the format it generates is completely out of date.
12 years ago
Waqas Hussain
796429efbe
tools/ejabberd2prosody: “xmlelement” can be “xmlel” in newer ejabberd (thanks cr).
12 years ago
Waqas Hussain
21f6eb82cf
tools/ejabberd2prosody: Add support for importing MUC rooms.
12 years ago
Waqas Hussain
0adfe40738
tools/ejabberdsql2prosody: Skip invalid XML in data, and print out errors.
12 years ago
Waqas Hussain
814d446911
tools/migration/migrator/prosody_files: Fix undefined global access of ‘error’, print the actual error message and correct file path in the error message when we fail to load a file, skip broken files instead of failing migration.
12 years ago
Florian Zeitz
1d833bb807
Remove all trailing whitespace
13 years ago
Vadim Misbakh-Soloviov
c633ac92a9
additional fix for erlparse loading in ejabberd2prosody.lua
13 years ago
Vadim Misbakh-Soloviov
a97742e477
additional fix for erlparse loading in ejabberd2prosody.lua
13 years ago
Vadim Misbakh-Soloviov
ceff8cb313
package{,c}path fixes for migration tools
13 years ago
Vadim Misbakh-Soloviov
5554e15437
package{,c}path fixes for migration tools
13 years ago
Kim Alvefur
4d156831cb
tools/migration/Makefile: Apply Lua runtime override (see 53f741a5a73a)
13 years ago
Kim Alvefur
f092adcb3c
ejabberd2prosody.lua: Don't make assumptions about file name.
13 years ago
Kim Alvefur
f766f157e7
ejabberd2prosody.lua: Replace util.logger with a dummy before requiring util.serialization
13 years ago
Waqas Hussain
20a28d166c
tools/migration/migrator/jabberd14: Use util.xml.
13 years ago
Waqas Hussain
997a920d80
tools/openfire2prosody: Use util.xml.
13 years ago