]> granicus.if.org Git - ejabberd/log
ejabberd
7 years agoDon't set twice
Evgeniy Khramtsov [Sun, 24 Dec 2017 09:34:47 +0000 (12:34 +0300)]
Don't set  twice

7 years agoRely on Server Name Indication for incoming Direct-TLS connections
Evgeniy Khramtsov [Sun, 24 Dec 2017 09:27:51 +0000 (12:27 +0300)]
Rely on Server Name Indication for incoming Direct-TLS connections

This commit also deprecates `certfile` option for ejabberd_http
listener.

7 years agoDon't let privacy list prevent local roster update
Holger Weiss [Sat, 23 Dec 2017 21:45:01 +0000 (22:45 +0100)]
Don't let privacy list prevent local roster update

7 years agomod_muc_admin: Fix last timestamp retrieval
Holger Weiss [Fri, 22 Dec 2017 13:32:47 +0000 (14:32 +0100)]
mod_muc_admin: Fix last timestamp retrieval

7 years agoFix commands rooms_unused_list and _destroy
Badlop [Thu, 21 Dec 2017 16:00:43 +0000 (17:00 +0100)]
Fix commands rooms_unused_list and _destroy

7 years agoFix race between join_cluster and ejabberd_mnesia (#2079)
Christophe Romain [Thu, 21 Dec 2017 13:07:29 +0000 (14:07 +0100)]
Fix race between join_cluster and ejabberd_mnesia (#2079)

7 years agoDisable test for now
Paweł Chmielowski [Thu, 21 Dec 2017 10:49:33 +0000 (11:49 +0100)]
Disable test for now

7 years agoUpdate expected error type in test
Paweł Chmielowski [Thu, 21 Dec 2017 10:43:09 +0000 (11:43 +0100)]
Update expected error type in test

7 years agoLet mix aware of unpackaged hex.pm dependencies (#2170)
Christophe Romain [Thu, 21 Dec 2017 10:10:56 +0000 (11:10 +0100)]
Let mix aware of unpackaged hex.pm dependencies (#2170)

7 years agoAdd pubsub#multi-items to features list (#2162)
Christophe Romain [Wed, 20 Dec 2017 10:54:12 +0000 (11:54 +0100)]
Add pubsub#multi-items to features list (#2162)

7 years agoFix mix_sql features and options
Christophe Romain [Wed, 20 Dec 2017 10:53:18 +0000 (11:53 +0100)]
Fix mix_sql features and options

7 years agoMerge pull request #2164 from angelo-chan/master
badlop [Tue, 19 Dec 2017 22:10:20 +0000 (23:10 +0100)]
Merge pull request #2164 from angelo-chan/master

add muc_online_rooms_by_regex to mod_muc_admin to filter list online r…

7 years agoejabberd_sm: Fix get_session_sid/3
Holger Weiss [Tue, 19 Dec 2017 17:59:25 +0000 (18:59 +0100)]
ejabberd_sm: Fix get_session_sid/3

Let get_session_sid/3 cope with multiple session table entries for a
given resource.

7 years agoChange loglevel of TLS failures
Evgeniy Khramtsov [Tue, 19 Dec 2017 12:33:30 +0000 (15:33 +0300)]
Change loglevel of TLS failures

7 years agosend_direct_invitations accepts only user jids
Christophe Romain [Tue, 19 Dec 2017 09:24:07 +0000 (10:24 +0100)]
send_direct_invitations accepts only user jids

7 years agoSet disk_almost_full_threshold to 99%
Evgeniy Khramtsov [Tue, 19 Dec 2017 06:55:19 +0000 (09:55 +0300)]
Set disk_almost_full_threshold to 99%

7 years agoDon't crash on malformed IQ
Evgeniy Khramtsov [Tue, 19 Dec 2017 06:15:35 +0000 (09:15 +0300)]
Don't crash on malformed IQ

Fixes #2175

7 years agoLog a warning when a disk is almost full
Evgeniy Khramtsov [Mon, 18 Dec 2017 09:30:10 +0000 (12:30 +0300)]
Log a warning when a disk is almost full

7 years agoDisable default alarm handler
Evgeniy Khramtsov [Mon, 18 Dec 2017 09:15:49 +0000 (12:15 +0300)]
Disable default alarm handler

7 years agoHandle also process_memory_high_watermark alarm
Evgeniy Khramtsov [Mon, 18 Dec 2017 07:41:11 +0000 (10:41 +0300)]
Handle also process_memory_high_watermark alarm

7 years agoKill and restart lager when it's overloaded
Evgeniy Khramtsov [Sun, 17 Dec 2017 18:03:40 +0000 (21:03 +0300)]
Kill and restart lager when it's overloaded

7 years agoFix processing order
Evgeniy Khramtsov [Sun, 17 Dec 2017 17:19:44 +0000 (20:19 +0300)]
Fix processing order

7 years agoAvoid excessive logging of SQL failures
Evgeniy Khramtsov [Sun, 17 Dec 2017 16:46:55 +0000 (19:46 +0300)]
Avoid excessive logging of SQL failures

7 years agoRewrite ejabberd system monitor
Evgeniy Khramtsov [Sun, 17 Dec 2017 15:52:37 +0000 (18:52 +0300)]
Rewrite ejabberd system monitor

Previous version was inefficient: it had a lot of false positives
along with a lot of false negatives, making its usage pointless.
The new verion is based on memsup(3erl) application: the OOM watchdog is
only started when total OS memory consumption is more than 80%.
A watchdog periodically inspects all running processes and collects
statistics about overloaded ones (those queueing a lot of messages).
If the OOM killer is enabled (`oom_killer: true`), all overloaded
processes would be killed. By default, OOM killer is enabled.
When memory consumption is back to normal, the OOM watchdog is stopped.

7 years agoMerge pull request #2167 from weiss/last-pep-items-to-owner
Evgeny Khramtsov [Thu, 14 Dec 2017 07:30:03 +0000 (10:30 +0300)]
Merge pull request #2167 from weiss/last-pep-items-to-owner

Send last PEP items to owner on initial presence

7 years agoSend last PEP items to owner on initial presence
Holger Weiss [Wed, 13 Dec 2017 17:59:06 +0000 (18:59 +0100)]
Send last PEP items to owner on initial presence

Closes #2112.

7 years agoMerge pull request #2158 from bowlofeggs/su-with-sh
Christophe Romain [Wed, 13 Dec 2017 15:04:25 +0000 (16:04 +0100)]
Merge pull request #2158 from bowlofeggs/su-with-sh

Use /bin/sh as the explicit shell when using su in ejabberdctl.

7 years agoOnly allow compression after SASL
Evgeniy Khramtsov [Wed, 13 Dec 2017 13:52:44 +0000 (16:52 +0300)]
Only allow compression after SASL

See XEP-0170 for details
Thanks to Vitaly Takmazov for spotting this

7 years agoPubSub: Add missing Nidx building records from sql result
Christophe Romain [Wed, 13 Dec 2017 10:35:36 +0000 (11:35 +0100)]
PubSub: Add missing Nidx building records from sql result

7 years agoadd muc_online_room_by_regex to mod_muc_admin to filter list online rooms
Angelo Chan [Wed, 13 Dec 2017 03:07:12 +0000 (11:07 +0800)]
add muc_online_room_by_regex to mod_muc_admin to filter list online rooms

7 years agomod_pubsub: Send last items on initial presence
Holger Weiss [Tue, 5 Dec 2017 22:10:12 +0000 (23:10 +0100)]
mod_pubsub: Send last items on initial presence

Wait until we got initial presence from the client before sending the
last items of nodes the JID is subscribed to.

Closes #2132.

7 years agoMerge pull request #2160 from weiss/publish-options
Christophe Romain [Tue, 12 Dec 2017 09:53:17 +0000 (10:53 +0100)]
Merge pull request #2160 from weiss/publish-options

Support pubsub#publish-options PRECONDITIONs

7 years agoSupport pubsub#publish-options PRECONDITIONs
Holger Weiss [Tue, 12 Dec 2017 00:04:14 +0000 (01:04 +0100)]
Support pubsub#publish-options PRECONDITIONs

Support PubSub publishing options that are specified as PRECONDITIONs as
per XEP-0060 v1.14.

7 years agoRevert removal of certfile option on http listener
Christophe Romain [Mon, 11 Dec 2017 10:00:24 +0000 (11:00 +0100)]
Revert removal of certfile option on http listener

7 years agoUpdate example configuration
Christophe Romain [Mon, 11 Dec 2017 09:27:48 +0000 (10:27 +0100)]
Update example configuration

7 years agoFix typos in mod_legacy_auth and mod_register
Evgeniy Khramtsov [Mon, 11 Dec 2017 07:00:16 +0000 (10:00 +0300)]
Fix typos in mod_legacy_auth and mod_register

7 years agoUse xmpp:try_subtag/2 wherever possible
Evgeniy Khramtsov [Mon, 11 Dec 2017 06:46:26 +0000 (09:46 +0300)]
Use xmpp:try_subtag/2 wherever possible

7 years agoUse /bin/sh as the explicit shell when using su in ejabberdctl.
Randy Barlow [Sun, 10 Dec 2017 17:52:22 +0000 (12:52 -0500)]
Use /bin/sh as the explicit shell when using su in ejabberdctl.

Some distributions (such as Fedora) use /sbin/nologin as the login
shell for the ejabberd user. The newer version of ejabberdctl uses
su to perform the command if the INSTALLUSER invokes the script.
This commit adjusts the call to su so that it passes /bin/sh as
the shell to use so that it will work correctly when the ejabberd
user's shell is set to nologin.

Signed-off-by: Randy Barlow <randy@electronsweatshop.com>
7 years agoInclude <x/> tag in presence errors related to nick change
Evgeniy Khramtsov [Sat, 9 Dec 2017 20:13:20 +0000 (23:13 +0300)]
Include <x/> tag in presence errors related to nick change

Refer to example 52 and example 53 of XEP-0045 for details.
Thanks to Daniel Gultsch for spotting this.

7 years agoBetter process subtag decoding errors
Evgeniy Khramtsov [Sat, 9 Dec 2017 19:39:43 +0000 (22:39 +0300)]
Better process subtag decoding errors

7 years agoLog warning on empty wildcard paths
Evgeniy Khramtsov [Fri, 8 Dec 2017 09:50:10 +0000 (12:50 +0300)]
Log warning on empty wildcard paths

7 years agoDon't call pkix_is_self_signed/1 too frequently
Evgeniy Khramtsov [Thu, 7 Dec 2017 14:24:34 +0000 (17:24 +0300)]
Don't call pkix_is_self_signed/1 too frequently

7 years agoEat less memory during building certificates graph
Evgeniy Khramtsov [Thu, 7 Dec 2017 13:41:49 +0000 (16:41 +0300)]
Eat less memory during building certificates graph

7 years agoReplace s2s_cafile with ca_file in ejabberd.yml.example
Evgeniy Khramtsov [Thu, 7 Dec 2017 11:58:58 +0000 (14:58 +0300)]
Replace s2s_cafile with ca_file in ejabberd.yml.example

7 years agoSpeedup certificate chains creation and validation
Evgeniy Khramtsov [Thu, 7 Dec 2017 11:32:12 +0000 (14:32 +0300)]
Speedup certificate chains creation and validation

7 years agoCompile sql_pt early
Paweł Chmielowski [Thu, 7 Dec 2017 09:47:23 +0000 (10:47 +0100)]
Compile sql_pt early

7 years agoAvoid infinite loop between self-signed certs
Evgeniy Khramtsov [Wed, 6 Dec 2017 21:29:19 +0000 (00:29 +0300)]
Avoid infinite loop between self-signed certs

7 years agomod_muc_room: Fix typo
Holger Weiss [Wed, 6 Dec 2017 15:50:45 +0000 (16:50 +0100)]
mod_muc_room: Fix typo

Thanks to Evgeniy for spotting this.

7 years agoBump xmpp and fast_xml revisions
Evgeniy Khramtsov [Wed, 6 Dec 2017 15:36:04 +0000 (18:36 +0300)]
Bump xmpp and fast_xml revisions

7 years agoImprove code using new xmpp API
Evgeniy Khramtsov [Wed, 6 Dec 2017 14:21:57 +0000 (17:21 +0300)]
Improve code using new xmpp API

7 years agoUse ejabberd_cluster:send() in SM/C2S
Evgeniy Khramtsov [Wed, 6 Dec 2017 11:15:20 +0000 (14:15 +0300)]
Use ejabberd_cluster:send() in SM/C2S

7 years agomod_offline: Always ignore groupchat messages
Holger Weiss [Sat, 2 Dec 2017 20:35:09 +0000 (21:35 +0100)]
mod_offline: Always ignore groupchat messages

7 years agoSet executable permission on mac_listener when installing (#2138)
nosnilmot [Fri, 1 Dec 2017 16:28:31 +0000 (16:28 +0000)]
Set executable permission on mac_listener when installing (#2138)

7 years agomod_muc_room: Include 110 status on shutdown
Holger Weiss [Thu, 30 Nov 2017 22:58:01 +0000 (23:58 +0100)]
mod_muc_room: Include 110 status on shutdown

Add the 110 status code to the presence unavailable stanzas sent to room
occupants on system shutdown.

7 years agomod_mam: Never store MUC messages in user archives
Holger Weiss [Thu, 30 Nov 2017 21:15:33 +0000 (22:15 +0100)]
mod_mam: Never store MUC messages in user archives

Even if a groupchat message is tagged with a <store/> hint, don't store
it in a user archive.  The hint should only be honored by the MUC
archive.

7 years agoWindows does not have /tmp, fallback to /home/chris/conf
Christophe Romain [Thu, 30 Nov 2017 14:32:09 +0000 (15:32 +0100)]
Windows does not have /tmp, fallback to /home/chris/conf

7 years agoFix num_subscribers on node metadata (#2122)
Christophe Romain [Thu, 30 Nov 2017 14:27:34 +0000 (15:27 +0100)]
Fix num_subscribers on node metadata (#2122)

7 years agoFix session table cleanup
Alexey Shchepin [Thu, 30 Nov 2017 10:31:23 +0000 (13:31 +0300)]
Fix session table cleanup

7 years agoAdd missed server_host column in pg.new.sql
Alexey Shchepin [Thu, 30 Nov 2017 10:08:04 +0000 (13:08 +0300)]
Add missed server_host column in pg.new.sql

7 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Mon, 27 Nov 2017 10:09:53 +0000 (13:09 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

7 years agoAdapt test to changed error
Paweł Chmielowski [Mon, 27 Nov 2017 10:12:46 +0000 (11:12 +0100)]
Adapt test to changed error

7 years agoImprove muc#roominfo and muc#roomconfig forms
Evgeniy Khramtsov [Mon, 27 Nov 2017 10:07:10 +0000 (13:07 +0300)]
Improve muc#roominfo and muc#roomconfig forms

Now 'muc#roominfo_contactjid' and 'muc#roominfo_pubsub' fields
are returned within muc#roominfo form. Also, both 'muc#roominfo_pubsub'
and 'muc#roomconfig_pubsub' are now validated.

7 years agoIntroduce option 'ca_file'
Evgeniy Khramtsov [Sun, 26 Nov 2017 15:10:25 +0000 (18:10 +0300)]
Introduce option 'ca_file'

The option is supposed to be used as a fallback for certificates
validation. For instance, the option will be used if 's2s_cafile'
option is not set. The value should be a path to a file containing
CA certificate(s) in PEM format, e.g.:

ca_file: "/etc/ssl/certs/ca-bundle.pem"

7 years agoDon't crash on unexpected XML events
Evgeniy Khramtsov [Fri, 24 Nov 2017 16:38:20 +0000 (19:38 +0300)]
Don't crash on unexpected XML events

In fact, seems like this is a problem in the receiver code
(or fast_xml?) and should be fixed there

7 years agoFix minor typo in comment
Christophe Romain [Fri, 24 Nov 2017 16:17:48 +0000 (17:17 +0100)]
Fix minor typo in comment

7 years agoGet rid of unused variable compile warning
Evgeniy Khramtsov [Fri, 24 Nov 2017 09:11:01 +0000 (12:11 +0300)]
Get rid of unused variable compile warning

7 years agoFix function clause on filelib:wildcard/1
Evgeniy Khramtsov [Fri, 24 Nov 2017 09:10:03 +0000 (12:10 +0300)]
Fix function clause on filelib:wildcard/1

7 years agoFix SQL serialization
Evgeniy Khramtsov [Fri, 24 Nov 2017 06:45:22 +0000 (09:45 +0300)]
Fix SQL serialization

The regression is introduced in 11829906ac5a3145b862bd1bc55a088c1ad4fafb
Fixes #2121

7 years agoAdd Id attribute in stanza built by send_message command
Badlop [Thu, 23 Nov 2017 16:14:39 +0000 (17:14 +0100)]
Add Id attribute in stanza built by send_message command

7 years agoUse ejabberd_pkix API in mod_sip
Evgeniy Khramtsov [Thu, 23 Nov 2017 08:09:40 +0000 (11:09 +0300)]
Use ejabberd_pkix API in mod_sip

7 years agoMove 'certfile' based options in a single place
Evgeniy Khramtsov [Thu, 23 Nov 2017 08:04:47 +0000 (11:04 +0300)]
Move 'certfile' based options in a single place

7 years agoGet rid of meaningless log message
Evgeniy Khramtsov [Wed, 22 Nov 2017 07:12:49 +0000 (10:12 +0300)]
Get rid of meaningless log message

7 years agoFix a bug introduced in the previous commit in ejabberd_sql_pt 17.11
Alexey Shchepin [Mon, 20 Nov 2017 12:13:26 +0000 (15:13 +0300)]
Fix a bug introduced in the previous commit in ejabberd_sql_pt

7 years agoUpdate URL to IM Observatory
Evgeniy Khramtsov [Mon, 20 Nov 2017 12:07:06 +0000 (15:07 +0300)]
Update URL to IM Observatory

7 years agoAdd notes about s2s_cafile
Evgeniy Khramtsov [Mon, 20 Nov 2017 12:02:24 +0000 (15:02 +0300)]
Add notes about s2s_cafile

7 years agoFix filtering of rebar list-deps
Paweł Chmielowski [Mon, 20 Nov 2017 11:51:19 +0000 (12:51 +0100)]
Fix filtering of rebar list-deps

7 years agoModernize the example config a bit
Evgeniy Khramtsov [Mon, 20 Nov 2017 10:34:16 +0000 (13:34 +0300)]
Modernize the example config a bit

7 years agoUpdate deps
Paweł Chmielowski [Mon, 20 Nov 2017 09:42:05 +0000 (10:42 +0100)]
Update deps

7 years agoMake update-deps-releases.pl work with older perl
Paweł Chmielowski [Mon, 20 Nov 2017 09:41:52 +0000 (10:41 +0100)]
Make update-deps-releases.pl work with older perl

7 years agoChange file mode of ACME certficates
Evgeniy Khramtsov [Sun, 19 Nov 2017 07:10:21 +0000 (10:10 +0300)]
Change file mode of ACME certficates

7 years agoRe-read ACME certificates on config reload
Evgeniy Khramtsov [Sun, 19 Nov 2017 06:56:05 +0000 (09:56 +0300)]
Re-read ACME certificates on config reload

7 years agoFix renew_certificates ejabberdctl command
Evgeniy Khramtsov [Fri, 17 Nov 2017 15:37:49 +0000 (18:37 +0300)]
Fix renew_certificates ejabberdctl command

Thanks to Konstantinos Kallas

7 years agoLog a message when a user gets registered
Evgeniy Khramtsov [Fri, 17 Nov 2017 15:02:12 +0000 (18:02 +0300)]
Log a message when a user gets registered

7 years agoDon't forget to include intermediate ACME certificate
Evgeniy Khramtsov [Fri, 17 Nov 2017 14:17:19 +0000 (17:17 +0300)]
Don't forget to include intermediate ACME certificate

Thanks to Konstantinos Kallas

7 years agoFix ACME options validation
Evgeniy Khramtsov [Fri, 17 Nov 2017 12:55:33 +0000 (15:55 +0300)]
Fix ACME options validation

7 years agoPrepare user and host arguments in get_user_rooms command (#2064)
Badlop [Fri, 17 Nov 2017 12:23:27 +0000 (13:23 +0100)]
Prepare user and host arguments in get_user_rooms command (#2064)

7 years agoFix elixir tests
Paweł Chmielowski [Fri, 17 Nov 2017 11:18:23 +0000 (12:18 +0100)]
Fix elixir tests

7 years agoImprove ACME options validation
Evgeniy Khramtsov [Fri, 17 Nov 2017 10:06:04 +0000 (13:06 +0300)]
Improve ACME options validation

7 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Fri, 17 Nov 2017 09:50:38 +0000 (12:50 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

7 years agoSwitch riak backend to leveldb on travis
Paweł Chmielowski [Fri, 17 Nov 2017 09:54:28 +0000 (10:54 +0100)]
Switch riak backend to leveldb on travis

7 years agoMove ejabberdctl ACME commands to other location
Evgeniy Khramtsov [Fri, 17 Nov 2017 09:50:27 +0000 (12:50 +0300)]
Move ejabberdctl ACME commands to other location

7 years agoMake ACME code working with ejabberd_pkix
Evgeniy Khramtsov [Fri, 17 Nov 2017 08:59:40 +0000 (11:59 +0300)]
Make ACME code working with ejabberd_pkix

7 years agoFix sed invocation that was incompatible with FreeBSD sed
Paweł Chmielowski [Fri, 17 Nov 2017 08:50:10 +0000 (09:50 +0100)]
Fix sed invocation that was incompatible with FreeBSD sed

7 years agoPubSub: PEP services must send notifications to the account owner (#2108)
Christophe Romain [Thu, 16 Nov 2017 14:31:28 +0000 (15:31 +0100)]
PubSub: PEP services must send notifications to the account owner (#2108)

7 years agoAllow writing custom modules in own path (#1327)
Christophe Romain [Thu, 16 Nov 2017 13:48:47 +0000 (14:48 +0100)]
Allow writing custom modules in own path (#1327)

in ejabberdctl, just add this to EJABBERD_OPTS
external_beams /path/to/my/beams

then all beams file /path/to/my/beams/*.beam will be known
by ejabberd_config, and allowed to be loaded.

7 years agoPubSub: Cleanup tree requests, rename pubsub_node.type->pubsub_node.plugin
Christophe Romain [Thu, 16 Nov 2017 10:38:04 +0000 (11:38 +0100)]
PubSub: Cleanup tree requests, rename pubsub_node.type->pubsub_node.plugin

7 years agoLet validator know about c2s_dhfile
Evgeniy Khramtsov [Wed, 15 Nov 2017 21:40:36 +0000 (00:40 +0300)]
Let validator know about c2s_dhfile

7 years agoFix select_type race on plugin_init
Christophe Romain [Wed, 15 Nov 2017 18:04:47 +0000 (19:04 +0100)]
Fix select_type race on plugin_init

7 years agoCleanup pubsub subscriptions quering, fix pep case
Christophe Romain [Wed, 15 Nov 2017 10:16:15 +0000 (11:16 +0100)]
Cleanup pubsub subscriptions quering, fix pep case

7 years agoImprove ACME description
Evgeniy Khramtsov [Wed, 15 Nov 2017 09:57:53 +0000 (12:57 +0300)]
Improve ACME description