]> granicus.if.org Git - ejabberd/log
ejabberd
5 years agoUpdate mix.lock 18.09
Paweł Chmielowski [Wed, 26 Sep 2018 13:01:01 +0000 (15:01 +0200)]
Update mix.lock

5 years agoAdd odbc connection robustness (#2428)
Christophe Romain [Tue, 25 Sep 2018 14:59:49 +0000 (16:59 +0200)]
Add odbc connection robustness (#2428)

5 years agoUpdate xmpp
Paweł Chmielowski [Tue, 25 Sep 2018 14:18:16 +0000 (16:18 +0200)]
Update xmpp

5 years agoUpdate deps in mix.lock
Paweł Chmielowski [Tue, 25 Sep 2018 12:31:22 +0000 (14:31 +0200)]
Update deps in mix.lock

5 years agoAllow a subscribed owner/admin to kick lower-affiliation moderator
Badlop [Tue, 25 Sep 2018 08:43:38 +0000 (10:43 +0200)]
Allow a subscribed owner/admin to kick lower-affiliation moderator

5 years agoAllow an occupant owner/admin to kick lower-affiliation moderator
Badlop [Tue, 25 Sep 2018 08:27:17 +0000 (10:27 +0200)]
Allow an occupant owner/admin to kick lower-affiliation moderator

5 years agoAllow a subscribed owner/admin to kick participants and visitors
Badlop [Mon, 24 Sep 2018 09:20:10 +0000 (11:20 +0200)]
Allow a subscribed owner/admin to kick participants and visitors

5 years agoAllow a subscribed owner/admin to change participant<->visitor
Badlop [Thu, 20 Sep 2018 09:14:11 +0000 (11:14 +0200)]
Allow a subscribed owner/admin to change participant<->visitor

5 years agoUpdate deps once more
Paweł Chmielowski [Mon, 24 Sep 2018 13:49:26 +0000 (15:49 +0200)]
Update deps once more

5 years agoIncrease validity of generated test ca cert and regenerate all certs
Paweł Chmielowski [Mon, 24 Sep 2018 13:19:19 +0000 (15:19 +0200)]
Increase validity of generated test ca cert and regenerate all certs

5 years agoUpdate deps
Paweł Chmielowski [Mon, 24 Sep 2018 12:37:42 +0000 (14:37 +0200)]
Update deps

5 years agoUpdate ISSUE_TEMPLATE
Evgeny Khramtsov [Fri, 21 Sep 2018 16:20:23 +0000 (19:20 +0300)]
Update ISSUE_TEMPLATE

5 years agoUpdate ISSUE_TEMPLATE
Evgeny Khramtsov [Fri, 21 Sep 2018 16:02:14 +0000 (19:02 +0300)]
Update ISSUE_TEMPLATE

5 years agoAllow changing invitation message from muc_invite hook
Paweł Chmielowski [Fri, 21 Sep 2018 14:37:52 +0000 (16:37 +0200)]
Allow changing invitation message from muc_invite hook

5 years agoRecognize more fields that aren't atom in format_room_option
Paweł Chmielowski [Thu, 20 Sep 2018 16:02:47 +0000 (18:02 +0200)]
Recognize more fields that aren't atom in format_room_option

5 years agoRemove forgotten debug line
Evgeny Khramtsov [Wed, 19 Sep 2018 20:17:04 +0000 (23:17 +0300)]
Remove forgotten debug line

5 years agoSwitch more log message to warning level
Evgeny Khramtsov [Wed, 19 Sep 2018 20:12:14 +0000 (23:12 +0300)]
Switch more log message to warning level

The commit is supposed to improve logging at loglevel 3, which
is the recommended level for high loaded ejabberd servers

5 years agoSwitch mod_fail2ban log messages to warning level
Evgeny Khramtsov [Wed, 19 Sep 2018 16:33:33 +0000 (19:33 +0300)]
Switch mod_fail2ban log messages to warning level

5 years agoResize SQL pool on configuration reload
Evgeny Khramtsov [Wed, 19 Sep 2018 08:55:40 +0000 (11:55 +0300)]
Resize SQL pool on configuration reload

Fixes #2541

5 years agoDon't hide 'undef' exceptions during config validation
Evgeny Khramtsov [Tue, 18 Sep 2018 22:00:50 +0000 (01:00 +0300)]
Don't hide 'undef' exceptions during config validation

5 years agoFail early when loading unavailable SIP or STUN modules
Evgeny Khramtsov [Tue, 18 Sep 2018 15:19:42 +0000 (18:19 +0300)]
Fail early when loading unavailable SIP or STUN modules

5 years agoReport real address of a listener
Evgeny Khramtsov [Tue, 18 Sep 2018 11:51:42 +0000 (14:51 +0300)]
Report real address of a listener

5 years agoRemove useless type specs
Evgeny Khramtsov [Tue, 18 Sep 2018 10:24:06 +0000 (13:24 +0300)]
Remove useless type specs

5 years agoFix listeners child specs creation
Evgeny Khramtsov [Tue, 18 Sep 2018 10:22:34 +0000 (13:22 +0300)]
Fix listeners child specs creation

5 years agoRemove forgotten debug line
Evgeny Khramtsov [Tue, 18 Sep 2018 09:58:29 +0000 (12:58 +0300)]
Remove forgotten debug line

5 years agoRefactor ejabberd_listener
Evgeny Khramtsov [Tue, 18 Sep 2018 09:53:36 +0000 (12:53 +0300)]
Refactor ejabberd_listener

5 years agoAdd ability to configure test to use new sql schema
Paweł Chmielowski [Tue, 18 Sep 2018 07:44:41 +0000 (09:44 +0200)]
Add ability to configure test to use new sql schema

5 years agomod_http_upload: Log error if 'put_url' is reused
Holger Weiss [Mon, 17 Sep 2018 19:46:37 +0000 (21:46 +0200)]
mod_http_upload: Log error if 'put_url' is reused

Log a proper [error] message if a single 'put_url' is used for multiple
virtual hosts.

5 years agoRevert "New option tombstone_expiry locks recent room creation after destroy (#2546)"
Badlop [Mon, 17 Sep 2018 10:28:39 +0000 (12:28 +0200)]
Revert "New option tombstone_expiry locks recent room creation after destroy (#2546)"

This reverts commit efb4fd0d1020faa105bf932c06cf4c67fb389952.

5 years agoImprove error formatting
Evgeny Khramtsov [Mon, 17 Sep 2018 09:08:04 +0000 (12:08 +0300)]
Improve error formatting

5 years agoRemove unused variables
Badlop [Mon, 17 Sep 2018 08:42:29 +0000 (10:42 +0200)]
Remove unused variables

5 years agoRefactor ejabberd listener API
Evgeny Khramtsov [Mon, 17 Sep 2018 08:21:02 +0000 (11:21 +0300)]
Refactor ejabberd listener API

5 years agoReintroduce change removed by mistake in 'Improve match macro'
Paweł Chmielowski [Mon, 17 Sep 2018 07:34:15 +0000 (09:34 +0200)]
Reintroduce change removed by mistake in 'Improve match macro'

5 years agoIncrease 'max_stanza_size' limit for c2s listener
Holger Weiss [Sun, 16 Sep 2018 22:18:38 +0000 (00:18 +0200)]
Increase 'max_stanza_size' limit for c2s listener

Specify a larger 'max_stanza_size' limit for c2s connections in the
default configuration in order to reduce the risk of this limit being
hit by legitimate traffic (such as avatar uploads).

5 years agoSet a 'max_stanza_size' for incoming s2s listener
Holger Weiss [Sun, 16 Sep 2018 21:57:44 +0000 (23:57 +0200)]
Set a 'max_stanza_size' for incoming s2s listener

Specify a 'max_stanza_size' limit for incoming s2s connections in the
example configuration, but use a relatively large value in order to
minimize the risk of this limit being hit by legitimate traffic.

5 years agoMySQL: Use MEDIUMTEXT for MAM/offline messages
Holger Weiss [Sun, 16 Sep 2018 18:42:37 +0000 (20:42 +0200)]
MySQL: Use MEDIUMTEXT for MAM/offline messages

Let MySQL/MariaDB accept message stanzas with a size of up to 16 MiB,
rather than truncating at 64 KiB.

5 years ago[test] Improve match macro
Paweł Chmielowski [Fri, 14 Sep 2018 18:27:59 +0000 (20:27 +0200)]
[test] Improve match macro

5 years ago[tests] Update stream_id from stream:stream after auth
Paweł Chmielowski [Fri, 14 Sep 2018 18:27:33 +0000 (20:27 +0200)]
[tests] Update stream_id from stream:stream after auth

5 years agomod_muc_room: Fix the room's CAPS hash
Holger Weiss [Thu, 13 Sep 2018 22:18:17 +0000 (00:18 +0200)]
mod_muc_room: Fix the room's CAPS hash

Don't forget the room's xdata when calculating the CAPS hash.

5 years agoMerge pull request #2605 from af8a524db1/remove_unused_error
Evgeny Khramtsov [Thu, 13 Sep 2018 19:36:59 +0000 (22:36 +0300)]
Merge pull request #2605 from af8a524db1/remove_unused_error

mod_register: Remove unused error 'too_many_users'

5 years agomod_register: Remove unused error 'too_many_users'
Marc Schink [Thu, 13 Sep 2018 19:23:40 +0000 (21:23 +0200)]
mod_register: Remove unused error 'too_many_users'

5 years agoTrigger hook for user_send_packet in send_message command (#2604)
Badlop [Thu, 13 Sep 2018 15:58:32 +0000 (17:58 +0200)]
Trigger hook for user_send_packet in send_message command (#2604)

5 years agoMerge pull request #2602 from aquarhead/expect-mnesia-up
Evgeny Khramtsov [Wed, 12 Sep 2018 14:15:04 +0000 (17:15 +0300)]
Merge pull request #2602 from aquarhead/expect-mnesia-up

Expect mnesia_up event when joining cluster

5 years agoExpect mnesia_up event when joining cluster
AquarHEAD Lou [Wed, 12 Sep 2018 11:01:05 +0000 (11:01 +0000)]
Expect mnesia_up event when joining cluster

5 years agoFix some dialyzer warnings
Evgeny Khramtsov [Sun, 9 Sep 2018 06:59:08 +0000 (09:59 +0300)]
Fix some dialyzer warnings

5 years agoMerge pull request #2597 from dmitryDemchenko/master
Evgeny Khramtsov [Fri, 7 Sep 2018 19:50:16 +0000 (22:50 +0300)]
Merge pull request #2597 from dmitryDemchenko/master

fix for freetds UTF-8 corruption

5 years agofix for freetds UTF-8 corruption
root [Fri, 7 Sep 2018 16:56:39 +0000 (19:56 +0300)]
fix for freetds UTF-8 corruption

5 years agoBump lager version
Evgeny Khramtsov [Fri, 7 Sep 2018 15:03:36 +0000 (18:03 +0300)]
Bump lager version

This is needed for OTP-21 compatibility

5 years agoAdd information about real sender to mucsub message meta
Paweł Chmielowski [Thu, 6 Sep 2018 10:40:05 +0000 (12:40 +0200)]
Add information about real sender to mucsub message meta

5 years agoUse newere fast_tls
Paweł Chmielowski [Wed, 5 Sep 2018 09:14:19 +0000 (11:14 +0200)]
Use newere fast_tls

5 years agoDon't stop sending pings when receiving timeout for timeout_action=none
Paweł Chmielowski [Tue, 4 Sep 2018 07:52:41 +0000 (09:52 +0200)]
Don't stop sending pings when receiving timeout for timeout_action=none

5 years agoCorrectly handle empty result with RSM
Evgeniy Khramtsov [Sat, 1 Sep 2018 21:37:07 +0000 (00:37 +0300)]
Correctly handle empty result with RSM

Fixes #2588

5 years agoGet stacktrace out of lager context
Evgeniy Khramtsov [Sat, 1 Sep 2018 16:37:26 +0000 (19:37 +0300)]
Get stacktrace out of lager context

Calling erlang:get_stacktrace() inside lager functions produces
stacktraces of the logging function itself, not the function which has failed.

5 years agoDon't set termination reason into presence-unavailable status
Evgeniy Khramtsov [Sat, 1 Sep 2018 14:39:39 +0000 (17:39 +0300)]
Don't set termination reason into presence-unavailable status

Fixes https://github.com/processone/xmpp/issues/35

5 years agoejabberd_s2s_in: Log message on connection close
Holger Weiss [Wed, 29 Aug 2018 14:23:56 +0000 (16:23 +0200)]
ejabberd_s2s_in: Log message on connection close

Log a message when an incoming s2s connection is closed, analogous to
the message on outgoing s2s connection close.

5 years agoSign certs used by tests with sha256
Paweł Chmielowski [Tue, 28 Aug 2018 09:07:31 +0000 (11:07 +0200)]
Sign certs used by tests with sha256

Seems that openssl1.1.1 (at least debian version) rejects certs signed with
md5 or sha1, so lets use something that works.

5 years agoBetter formatting of unexpected return from Module:start/2
Evgeniy Khramtsov [Tue, 28 Aug 2018 07:41:57 +0000 (10:41 +0300)]
Better formatting of unexpected return from Module:start/2

5 years agoFix max_user_conferences in Mnesia to consider only one MUC service (#2556)
Badlop [Mon, 20 Aug 2018 13:39:58 +0000 (15:39 +0200)]
Fix max_user_conferences in Mnesia to consider only one MUC service (#2556)

5 years agoUse "localhost" as a default host
Evgeniy Khramtsov [Fri, 17 Aug 2018 15:42:09 +0000 (18:42 +0300)]
Use "localhost" as a default host

5 years agoBump xmpp version
Evgeniy Khramtsov [Fri, 17 Aug 2018 15:16:14 +0000 (18:16 +0300)]
Bump xmpp version

5 years agoDisable cache for anonymous auth backend
Evgeniy Khramtsov [Fri, 17 Aug 2018 14:56:23 +0000 (17:56 +0300)]
Disable cache for anonymous auth backend

Fixes #2566

5 years agoUpdate xmpp
Paweł Chmielowski [Thu, 16 Aug 2018 09:59:26 +0000 (11:59 +0200)]
Update xmpp

5 years agoThird attempt to fix the typo!
Badlop [Wed, 15 Aug 2018 10:56:41 +0000 (12:56 +0200)]
Third attempt to fix the typo!

5 years agoFix typo from commit 0bf93eefc
Badlop [Wed, 15 Aug 2018 10:40:39 +0000 (12:40 +0200)]
Fix typo from commit 0bf93eefc

5 years agoHandle get_presence(Pid) when session doesn't exist (#2547)
Badlop [Wed, 15 Aug 2018 10:16:01 +0000 (12:16 +0200)]
Handle get_presence(Pid) when session doesn't exist (#2547)

5 years agoFix typo in command description
Badlop [Mon, 13 Aug 2018 14:42:16 +0000 (16:42 +0200)]
Fix typo in command description

5 years agoTry to update tests to handle recent MUC subscriptions change (#2272)
Badlop [Mon, 13 Aug 2018 13:26:40 +0000 (15:26 +0200)]
Try to update tests to handle recent MUC subscriptions change (#2272)

5 years agoReturn human error messages when calling export2sql with wrong path (#2480)
Badlop [Mon, 13 Aug 2018 11:56:29 +0000 (13:56 +0200)]
Return human error messages when calling export2sql with wrong path (#2480)

5 years agoIn response with list of room subscriptions include also events (#2272)
Badlop [Fri, 10 Aug 2018 15:46:47 +0000 (17:46 +0200)]
In response with list of room subscriptions include also events (#2272)

5 years agoRemove num_active_users as it uses calls to last_activity mnesia table (#2448)
Badlop [Wed, 8 Aug 2018 12:08:07 +0000 (14:08 +0200)]
Remove num_active_users as it uses calls to last_activity mnesia table (#2448)

5 years agoRemove direct calls to muc_room mnesia table in mod_muc_admin (#2448)
Badlop [Wed, 8 Aug 2018 12:05:04 +0000 (14:05 +0200)]
Remove direct calls to muc_room mnesia table in mod_muc_admin (#2448)

5 years agoAdd markdown options as specified in the docs git repo
Badlop [Tue, 7 Aug 2018 14:58:29 +0000 (16:58 +0200)]
Add markdown options as specified in the docs git repo

5 years agoAdd import_prosody explanation from docs git repo
Badlop [Tue, 7 Aug 2018 14:57:54 +0000 (16:57 +0200)]
Add import_prosody explanation from docs git repo

5 years agoAllow acme and oauth commands to be read by gen_markdown_doc_for_commands
Badlop [Tue, 7 Aug 2018 14:57:10 +0000 (16:57 +0200)]
Allow acme and oauth commands to be read by gen_markdown_doc_for_commands

5 years agoHandle ejabberd_captcha error reports in mod_register_web (#2553)
Badlop [Thu, 2 Aug 2018 16:36:41 +0000 (18:36 +0200)]
Handle ejabberd_captcha error reports in mod_register_web (#2553)

5 years agoMerge pull request #2551 from MarcelWaldvogel/configurable-extauth-pool
Evgeny Khramtsov [Tue, 31 Jul 2018 04:52:06 +0000 (07:52 +0300)]
Merge pull request #2551 from MarcelWaldvogel/configurable-extauth-pool

Make it possible to join extauth pools

5 years agoMake it possible to join extauth pools
Marcel Waldvogel [Mon, 30 Jul 2018 20:49:18 +0000 (22:49 +0200)]
Make it possible to join extauth pools

5 years agoNew option tombstone_expiry locks recent room creation after destroy (#2546)
Badlop [Mon, 30 Jul 2018 15:26:57 +0000 (17:26 +0200)]
New option tombstone_expiry locks recent room creation after destroy (#2546)

Setting the new mod_muc option tombstone_expiry to a positive integer
will make that any room destroyed gets replaced with a room tombstone.
That tombstone cannot be joined, so it blocks accessing the old room JID
until the expiry seconds have passed.
The default value is 0 seconds, so tombstones are not created.

5 years agomod_mam: Don't strip offline message stanza IDs
Holger Weiss [Thu, 26 Jul 2018 22:27:10 +0000 (00:27 +0200)]
mod_mam: Don't strip offline message stanza IDs

As mod_offline currently doesn't preserve metadata, add an explicit
check for messages retrieved from offline storage to avoid stripping
their stanza IDs.

Thanks to Zuglufttier for spotting this.

5 years agomod_mam: Make sure stanza IDs aren't reused
Holger Weiss [Thu, 26 Jul 2018 22:14:48 +0000 (00:14 +0200)]
mod_mam: Make sure stanza IDs aren't reused

Strip the stanza ID from the metadata of outgoing messages to make sure
it's not reused for the (local) recipient's MAM archive.

5 years agoejabberd_auth: Restore lost case clause
Holger Weiss [Thu, 26 Jul 2018 20:37:25 +0000 (22:37 +0200)]
ejabberd_auth: Restore lost case clause

Let check_password_with_authmodule/6 handle the case where
validate_credentials/2 returns an error.  This got lost in commit
4f8af723c6fc5dc4b689f0f1734d4e2b11dd4c82.

5 years agoWait for more data than just <stream:stream> before sending in bosh
Paweł Chmielowski [Thu, 26 Jul 2018 16:55:30 +0000 (18:55 +0200)]
Wait for more data than just <stream:stream> before sending in bosh

This fixes issue #2545

5 years agoMake sure that we always start inactivity timer from drop_holding_receiver
Paweł Chmielowski [Thu, 26 Jul 2018 15:29:20 +0000 (17:29 +0200)]
Make sure that we always start inactivity timer from drop_holding_receiver

5 years agoSet wait_timer to undefined when timer was triggered
Paweł Chmielowski [Thu, 26 Jul 2018 15:28:51 +0000 (17:28 +0200)]
Set wait_timer to undefined when timer was triggered

5 years agoFix search for User in vjud
Badlop [Tue, 24 Jul 2018 18:01:22 +0000 (20:01 +0200)]
Fix search for User in vjud

See https://stackoverflow.com/questions/51478247/ejabberd-search-module-failed-to-handle-the-query

5 years agoUpdate xmpp
Paweł Chmielowski [Mon, 23 Jul 2018 15:23:11 +0000 (17:23 +0200)]
Update xmpp

5 years agomod_http_upload: Adjust default value of 'put_url'
Holger Weiss [Wed, 18 Jul 2018 17:44:56 +0000 (19:44 +0200)]
mod_http_upload: Adjust default value of 'put_url'

Let the default 'put_url' point to the HTTPS listener specified in the
new default configuration.

5 years agoMerge pull request #2538 from weiss/tls-by-default
Evgeny Khramtsov [Wed, 18 Jul 2018 16:38:13 +0000 (19:38 +0300)]
Merge pull request #2538 from weiss/tls-by-default

Enable TLS by default (and require it for c2s)

5 years agoEnable TLS by default (and require it for c2s)
Holger Weiss [Wed, 18 Jul 2018 16:22:24 +0000 (18:22 +0200)]
Enable TLS by default (and require it for c2s)

5 years agomod_http_upload: Deprecate 'service_url' option
Holger Weiss [Wed, 18 Jul 2018 16:16:42 +0000 (18:16 +0200)]
mod_http_upload: Deprecate 'service_url' option

Users should migrate to the 'external_secret' interface.

5 years agoMerge pull request #2537 from rouen-sk/patch-1
Evgeny Khramtsov [Wed, 18 Jul 2018 15:37:30 +0000 (18:37 +0300)]
Merge pull request #2537 from rouen-sk/patch-1

Update mssql.sql

5 years agoUpdate mssql.sql
rouen-sk [Wed, 18 Jul 2018 15:12:17 +0000 (17:12 +0200)]
Update mssql.sql

Fixed:
- conflicting clustered indexes on 2 tables
- semicolon type
- Azure SQL incompatibility

5 years agomod_http_upload: Avoid function-like macros
Holger Weiss [Tue, 17 Jul 2018 20:28:31 +0000 (22:28 +0200)]
mod_http_upload: Avoid function-like macros

5 years agoMove cancel_timer/1 function into 'misc' module
Holger Weiss [Tue, 17 Jul 2018 18:50:58 +0000 (20:50 +0200)]
Move cancel_timer/1 function into 'misc' module

5 years agomod_http_upload: Add "Allow" to OPTIONS response
Holger Weiss [Tue, 17 Jul 2018 17:42:57 +0000 (19:42 +0200)]
mod_http_upload: Add "Allow" to OPTIONS response

RFC 2616 says: "A 200 response SHOULD include any header fields that
indicate optional features implemented by the server and applicable to
that resource (e.g., Allow) [...]."

5 years agomod_muc: Don't set default for muc#roomconfig_lang
Holger Weiss [Mon, 16 Jul 2018 13:15:36 +0000 (15:15 +0200)]
mod_muc: Don't set default for muc#roomconfig_lang

For the muc#roomconfig_lang setting, no default is preferable over a
possibly incorrect default value.

5 years agomod_http_upload: Avoid timers from timer module
Holger Weiss [Sun, 15 Jul 2018 22:17:11 +0000 (00:17 +0200)]
mod_http_upload: Avoid timers from timer module

Use erlang:start_timer/3 instead of timer:send_after/2, as the former is
more efficient.

5 years agomod_http_upload: Don't store "external" slots
Holger Weiss [Sun, 15 Jul 2018 19:53:50 +0000 (21:53 +0200)]
mod_http_upload: Don't store "external" slots

Don't store requested upload slots if an 'external_secret' is
configured.

5 years agoNote about Redis requirement in the test suite README
Evgeniy Khramtsov [Sun, 15 Jul 2018 07:14:47 +0000 (10:14 +0300)]
Note about Redis requirement in the test suite README

5 years agoRequire Redis version >= 3.2.0
Evgeniy Khramtsov [Sun, 15 Jul 2018 06:52:03 +0000 (09:52 +0300)]
Require Redis version >= 3.2.0

Since we now use Lua scripting for cleaning up c2s sessions
the minimum supported Redis version is 3.2.0 or above because
we need to work correctly with Redis replication mechanism.

****** BACKWARD INCOMPATIBILITY WARNING *******
** THIS SHOULD BE ADDED TO THE RELEASE NOTES **
*** PACKAGE MAINTAINERS SHOULD BE INFORMED  ***
***********************************************