Paweł Chmielowski
4247501dc6
Fix compilation on OTP < 21 and remove dialyzer warning
2022-02-18 17:21:22 +01:00
Paweł Chmielowski
b88fda9494
Fix sqlite schema
2022-02-18 16:24:34 +01:00
Paweł Chmielowski
f86055378d
Optimize room_unused_* commands
...
Previously to check if hibernated room was old enough we had to fetch info
about all rooms from database. Now we repurpose created_at field in sql
to store that info, that allow us to have more efficient query just for it.
2022-02-18 14:02:04 +01:00
Badlop
f20e9e9b66
Check producing and starting releases
2022-02-11 09:39:29 +01:00
Badlop
0ef2624b57
Provide proper path to the compiled libraries in relive's ejabberdctl
2022-02-11 09:39:28 +01:00
Badlop
b3211b1f71
Update copyright year to 2022
2022-02-11 09:39:25 +01:00
Badlop
f7c7d784c4
Detect debug option, and maybe disable debug_info
...
As explained in https://hexdocs.pm/mix/1.13.2/Mix.Tasks.Compile.Erlang.html
> The option :debug_info is always added to the end of it. You can disable that using:
> erlc_options: [debug_info: false]
2022-02-11 09:39:16 +01:00
Badlop
0b9263bc15
Add forgotten option NO_CUSTOMIZE_HOSTNAME_CHECK to mix.exs
2022-02-11 09:39:15 +01:00
Badlop
ba0d5e4dcf
Nowadays NEW_SQL_SCHEMA is only used to determine the default sql schema
2022-02-11 09:39:13 +01:00
Badlop
4d093ac03e
ejabberd_sql_pt got USE_NEW_SCHEMA in 78dfb83
and removed in e15595d
2022-02-11 09:39:11 +01:00
Badlop
e63e8a6d38
Fix typo introduced in 99fdba0
, present since 16.01
2022-02-11 09:39:09 +01:00
Badlop
37d2bdd90d
Some dependencies are optional, check them in mix.exs
2022-02-11 09:39:07 +01:00
Badlop
dda60fcf0d
Implement Get List of Registered/Online Users from XEP-0133
2022-02-11 09:39:05 +01:00
Badlop
9661d06334
Remove obsolete db_type defined environment
...
db_type as a compilation define was first introduced in 2006 in d0e2ac9
,
but was removed in 2015 in 25791cf
.
Nowadays: ./configure --enable-mssql will set {mssql, true} in vars.config;
That is read by ejabberd.app.src.script to set enabled_backends;
which is consulted by test/suite.erl to test only available backends.
2022-02-11 09:39:02 +01:00
Badlop
bdd1a129c0
Disable mssql in Actions: it's known mssql doesn't pass the tests
2022-02-03 20:10:01 +01:00
Badlop
965196a2e8
Ensure db_type default value is set when no mssql was defined. Fix typo
2022-02-03 19:17:16 +01:00
Badlop
a7912f5344
Fix configure when mssql option not set, and add it to --enable-all
2022-02-03 18:57:53 +01:00
Badlop
6279cac932
Reorganize and complete documentation of node start/debug commands
2022-02-03 18:21:55 +01:00
Badlop
25e0326f87
Improve explanation of s2s_access option. Add link to access_rules option
2022-02-03 18:21:53 +01:00
Badlop
c92478f7c2
Use the same wording in all the identical options db_type and ram_db_type
2022-02-03 18:21:51 +01:00
Badlop
3b30d5b0ed
Fix support for MSSQL testing
2022-02-03 18:21:49 +01:00
Badlop
adbccbe852
New "make relive" similar to "ejabberdctl live" without installing
...
Prepare with:
./autogen.sh && ./configure --with-rebar=./rebar3 && make
Or use this if you installed Elixir:
./autogen.sh && ./configure --with-rebar=mix && make
Start without installing (it recompiles when necessary):
make relive
It stores config, database and logs in _build/relive/
There's available the well-known script:
_build/relive/ejabberdctl
Please note this fails immediately:
r3:do(compile).
This crashes a few seconds later:
rebar3:run(["compile"]).
Workaround that works correctly:
ejabberd_admin:update().
2022-02-03 18:21:47 +01:00
Holger Weiss
67b5de05c7
mod_pubsub: Unsubscribe JID on whitelist removal
...
If a JID is removed from the affiliation lists of a node with access
model 'whitelist', remove it from the list of subscribers as well.
2022-02-02 22:35:28 +01:00
Paweł Chmielowski
11c725018b
Make dialyzer happy
2022-02-02 18:33:45 +01:00
Paweł Chmielowski
9542cca0db
One more place where we need to handle socket field not being available
2022-02-02 16:26:39 +01:00
Paweł Chmielowski
8824a912ef
Don't expect that socket will be available in c2s_terminated hook
...
For detached connection we free socket, so let's make code account for this
(and we really need it for printing debug informations).
This makes sure we call ejabberd_sm:close_session
2022-02-02 16:19:13 +01:00
Paweł Chmielowski
cae4fbb40b
Store all mucsub notifications not only message notifications
...
Previously we stored only message/subject change notifications, but if user
request also change notificaitons for affiliation/config/subscribers then
i don't see reason why we shouldn't store it as well.
2022-02-01 15:18:50 +01:00
Holger Weiss
52ac941034
mod_shared_roster: Adjust special group cache size
...
Let the size of the cache used for 'special' groups (such as @all@ or
@online@) depend on the number of virtual hosts, as the cache will
contain seperate entries per domain.
Thanks to Ingo Jrgensmann for reporting the issue.
2022-01-25 16:57:27 +01:00
Badlop
4579fd6ac7
Remove reference to the obsolete Vagrant environment
2022-01-25 13:46:27 +01:00
Badlop
7714046511
Run autoupdate to replace obsolete AC_HELP_STRING with AS_HELP_STRING
...
This change is required to work with autoconf 2.71 or higher,
and it works with autoconf 2.59 or higher.
2022-01-25 13:20:36 +01:00
Badlop
1b192987d2
Support MQTT subscriptions spread over the cluster ( #3750 )
2022-01-25 13:20:31 +01:00
Badlop
585afcbc77
Pass property name as expected in mqtt_codec (fixes login using MQTT 5)
2022-01-25 13:16:07 +01:00
badlop
78aa187067
Merge pull request #3757 from kianmeng/fix-typos
...
Fix typos
2022-01-25 13:13:10 +01:00
Kian-Meng Ang
adf0f87e99
Fix typos
2022-01-24 08:02:04 +08:00
Holger Weiss
0f2d36dc53
mod_pubsub: Allow for limiting item_expire value
...
If mod_pubsub's 'max_item_expire_node' option is specified, reject node
configurations with an 'item_expire' value that exceeds the specified
limit.
2022-01-17 19:08:36 +01:00
Holger Weiss
8e88fa3884
mod_shared_roster: Normalize JID on unset_presence
...
Don't forget to normalize the JID handed over from ejabberd_sm on
presence-unavailable. Without normalization, mod_shared_roster might
fail to look up the storage backend for the given host name, for
example.
Fixes #3752 .
2022-01-15 18:18:24 +01:00
Badlop
a9ac10e876
Document that 'unregister' command deletes data associated with the account
2022-01-13 19:34:37 +01:00
Badlop
1fb908b70f
Document option subscrube_room_many_max_users introduced in fc34661b6
2022-01-13 19:34:10 +01:00
Badlop
1ce3bd256b
Update section URLs in ldap documentation
2022-01-13 19:34:07 +01:00
Badlop
ce14c28faf
Fix version when this command was really updated
2022-01-11 17:28:36 +01:00
Badlop
03a11c63bd
Fix login when generating client id, keep connection record ( #3593 )
2022-01-11 17:19:12 +01:00
Paweł Chmielowski
9ba20d26cb
Add better descripion of subscribe_room_many command
2022-01-05 16:44:05 +01:00
Badlop
cc7ebb86b4
Fix Dialyzer, related to Luerl API update from 0.3 to 1.0
2022-01-04 23:06:30 +01:00
Badlop
79ddde3040
Workaround to support rebar2 git tag "1.0" and rebar3 hex version "1.0.0"
2022-01-04 21:56:31 +01:00
Badlop
61dc89a068
Update Luerl to 1.0.0, now available in Hex.pm ( rvirding/luerl#142 )
2022-01-04 21:32:23 +01:00
Badlop
7c9b47fb78
Fix "make rel" when using mix, broken after 94a733c66
2022-01-04 17:31:30 +01:00
Paweł Chmielowski
dc81966938
Fix 'make update' when used with rebar 3.18
2022-01-03 13:51:58 +01:00
Holger Weiss
59c9500944
mod_muc_room: Fix function name typo
2021-12-30 21:17:11 +01:00
Badlop
8ccad7fada
Publish CT logs and Cover on failure to an external GH Pages repo
2021-12-23 16:39:36 +01:00
Badlop
8a5d90797a
Check dialyzer results in its step when using rebar 2
2021-12-23 16:39:34 +01:00