]> granicus.if.org Git - ejabberd/log
ejabberd
6 years agoFix some dialyzer warnings
Evgeny Khramtsov [Sun, 9 Sep 2018 06:59:08 +0000 (09:59 +0300)]
Fix some dialyzer warnings

6 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

6 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

6 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

6 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

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

6 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

6 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

6 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.

6 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

6 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.

6 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.

6 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

6 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)

6 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

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

6 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

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

6 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!

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

6 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)

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

6 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)

6 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)

6 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)

6 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)

6 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)

6 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

6 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

6 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

6 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)

6 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

6 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

6 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.

6 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.

6 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.

6 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.

6 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

6 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

6 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

6 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

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

6 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.

6 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)

6 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)

6 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.

6 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

6 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

6 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

6 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

6 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) [...]."

6 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.

6 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.

6 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.

6 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

6 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  ***
***********************************************

6 years agoAvoid "ejabberdctl status" crash
Holger Weiss [Sat, 14 Jul 2018 18:27:30 +0000 (20:27 +0200)]
Avoid "ejabberdctl status" crash

6 years agoDon't forget to remove Lua scripts on uninstall
Evgeniy Khramtsov [Sat, 14 Jul 2018 15:02:50 +0000 (18:02 +0300)]
Don't forget to remove Lua scripts on uninstall

6 years agoClean up contributed code for Redis SM
Evgeniy Khramtsov [Sat, 14 Jul 2018 14:53:00 +0000 (17:53 +0300)]
Clean up contributed code for Redis SM

6 years agoMerge pull request #2525 from satish-olx/master
Evgeny Khramtsov [Sat, 14 Jul 2018 13:53:45 +0000 (16:53 +0300)]
Merge pull request #2525 from satish-olx/master

Use lua scripting to clear redis sessions.

6 years agoImprove wording
Evgeniy Khramtsov [Sat, 14 Jul 2018 13:52:09 +0000 (16:52 +0300)]
Improve wording

6 years agoMerge pull request #2526 from nosnilmot/enforce-pubsub-option-attributes
Evgeny Khramtsov [Sat, 14 Jul 2018 13:42:15 +0000 (16:42 +0300)]
Merge pull request #2526 from nosnilmot/enforce-pubsub-option-attributes

Enforce pubsub option required/rejected attributes

6 years agoEnforce pubsub option required/rejected attributes
Stu Tomlinson [Fri, 13 Jul 2018 18:15:17 +0000 (19:15 +0100)]
Enforce pubsub option required/rejected attributes

XEP-0060 states that 'node' and 'jid' attributes to <options> element MUST NOT
be included when <options> are specified at same time as <subscribe> :

https://xmpp.org/extensions/xep-0060.html#subscriber-configure-subandconfig

mod_pubsub will require 'node' and 'jid' attributes on standalone pubsub
options requests, and reject subscribe requests that have options that include
either 'node' or 'jid'

6 years agoMerge pull request #2522 from weiss/bump-max-user-conferences
Evgeny Khramtsov [Sat, 14 Jul 2018 05:51:11 +0000 (08:51 +0300)]
Merge pull request #2522 from weiss/bump-max-user-conferences

mod_muc: Increase default 'max_user_conferences' value

6 years agoEnsure that returned priority in a number in mod_admin_extra
Paweł Chmielowski [Fri, 13 Jul 2018 07:50:38 +0000 (09:50 +0200)]
Ensure that returned priority in a number in mod_admin_extra

6 years agoUpdate ejabberd_sm_redis.erl
satish-olx [Thu, 12 Jul 2018 10:44:26 +0000 (16:14 +0530)]
Update ejabberd_sm_redis.erl

6 years agoLua script for cleaning redis sessions
satish-olx [Thu, 12 Jul 2018 10:40:24 +0000 (16:10 +0530)]
Lua script for cleaning redis sessions

Changes:
1. Added extra keys for tracking node -> session mapping
2. Lua script for clearing the sessions in redis itself.

6 years agoAdopt code that uses parse_listener_portip after result change
Paweł Chmielowski [Wed, 11 Jul 2018 12:07:24 +0000 (14:07 +0200)]
Adopt code that uses parse_listener_portip after result change

6 years agoFix piefxis import of privacy lists (thanks to crosser)(#2412)
Badlop [Wed, 11 Jul 2018 10:02:09 +0000 (12:02 +0200)]
Fix piefxis import of privacy lists (thanks to crosser)(#2412)

6 years agoFix piefxis import of vCard elements (#2514)
Badlop [Wed, 11 Jul 2018 09:38:17 +0000 (11:38 +0200)]
Fix piefxis import of vCard elements (#2514)

6 years agoImprove listener errors formatting
Evgeniy Khramtsov [Wed, 11 Jul 2018 06:29:55 +0000 (09:29 +0300)]
Improve listener errors formatting

6 years agoFix compiler warnings regarding test cases
Holger Weiss [Tue, 10 Jul 2018 22:07:57 +0000 (00:07 +0200)]
Fix compiler warnings regarding test cases

6 years agopubsub_tests: Fix race condition
Holger Weiss [Tue, 10 Jul 2018 19:25:06 +0000 (21:25 +0200)]
pubsub_tests: Fix race condition

6 years agomod_http_upload_quota: Fix process name lookup
Holger Weiss [Tue, 10 Jul 2018 19:19:15 +0000 (21:19 +0200)]
mod_http_upload_quota: Fix process name lookup

Fix mod_http_upload_quota's process name lookup for the case where a
slot is requested by a JID whose domain part is not the virtual host the
mod_http_upload_quota process is running on.

6 years agoFix regression: list SASL EXTERNAL mechanism for inbound s2s
Evgeniy Khramtsov [Tue, 10 Jul 2018 07:14:08 +0000 (10:14 +0300)]
Fix regression: list SASL EXTERNAL mechanism for inbound s2s

6 years agomod_muc: Increase 'max_user_conferences' default
Holger Weiss [Mon, 9 Jul 2018 23:00:06 +0000 (01:00 +0200)]
mod_muc: Increase 'max_user_conferences' default

Let up to 100 clients of a given account join MUC rooms by default.  The
old default value can be too small, e.g., when users join many (private)
rooms with multiple devices.

6 years agomod_stream_mgmt: Remove dead case clauses
Holger Weiss [Mon, 9 Jul 2018 22:52:27 +0000 (00:52 +0200)]
mod_stream_mgmt: Remove dead case clauses

6 years agomod_stream_mgmt: Add descriptive text to errors
Holger Weiss [Mon, 9 Jul 2018 22:46:48 +0000 (00:46 +0200)]
mod_stream_mgmt: Add descriptive text to errors

Closes #2485.

6 years agoImprove value formatting
Evgeniy Khramtsov [Mon, 9 Jul 2018 17:32:01 +0000 (20:32 +0300)]
Improve value formatting

6 years agoUse ejabberd_config:get_version in ejabberdctl status
Paweł Chmielowski [Mon, 9 Jul 2018 15:11:24 +0000 (17:11 +0200)]
Use ejabberd_config:get_version in ejabberdctl status

6 years agoMerge pull request #2516 from licaon-kter/patch-6
Evgeny Khramtsov [Mon, 9 Jul 2018 07:08:00 +0000 (10:08 +0300)]
Merge pull request #2516 from licaon-kter/patch-6

Remove vcard search default value

6 years agoRemove vcard search default value
Licaon_Kter [Sun, 8 Jul 2018 23:48:08 +0000 (23:48 +0000)]
Remove vcard search default value

6 years agoBetter format invalid values when logging them
Evgeniy Khramtsov [Sun, 8 Jul 2018 17:42:53 +0000 (20:42 +0300)]
Better format invalid values when logging them

6 years agoBetter detection of duplicated routes/hosts
Evgeniy Khramtsov [Sun, 8 Jul 2018 17:28:11 +0000 (20:28 +0300)]
Better detection of duplicated routes/hosts

6 years agoReload internal room's configuration when mod_muc is reloaded
Evgeniy Khramtsov [Sun, 8 Jul 2018 11:52:12 +0000 (14:52 +0300)]
Reload internal room's configuration when mod_muc is reloaded

Fixes #2513

6 years agoMerge pull request #2511 from licaon-kter/patch-5
Evgeny Khramtsov [Sun, 8 Jul 2018 07:43:25 +0000 (10:43 +0300)]
Merge pull request #2511 from licaon-kter/patch-5

Remove stats and time from template

6 years agoMerge pull request #2515 from ChaosKid42/fix_HMAC_in_http_upload
Evgeny Khramtsov [Sun, 8 Jul 2018 07:42:55 +0000 (10:42 +0300)]
Merge pull request #2515 from ChaosKid42/fix_HMAC_in_http_upload

fix generation of HMAC for external_secret

6 years agofix HMAC for external_secret
Christoph Scholz [Sat, 7 Jul 2018 15:01:39 +0000 (17:01 +0200)]
fix HMAC for external_secret

6 years agoRemove cyrsasl elixir tests, we no longer have it
Paweł Chmielowski [Fri, 6 Jul 2018 07:49:30 +0000 (09:49 +0200)]
Remove cyrsasl elixir tests, we no longer have it

6 years agoOnly lookup FQDN at configuration (re)loading
Evgeniy Khramtsov [Fri, 6 Jul 2018 06:18:27 +0000 (09:18 +0300)]
Only lookup FQDN at configuration (re)loading

6 years agoRemove stats and time from template
Licaon_Kter [Fri, 6 Jul 2018 01:33:41 +0000 (01:33 +0000)]
Remove stats and time from template

Are these important for a new admin?

6 years agoMove XMPP stream and SASL processing to xmpp repo
Evgeniy Khramtsov [Thu, 5 Jul 2018 22:07:36 +0000 (01:07 +0300)]
Move XMPP stream and SASL processing to xmpp repo

6 years agoUse p1_rand in the test suite
Evgeniy Khramtsov [Thu, 5 Jul 2018 08:53:04 +0000 (11:53 +0300)]
Use p1_rand in the test suite

6 years agoMove move randoms module to p1_utils repo
Evgeniy Khramtsov [Thu, 5 Jul 2018 08:51:49 +0000 (11:51 +0300)]
Move move randoms module to p1_utils repo

6 years agoMove shaper to p1_utils repo
Evgeniy Khramtsov [Thu, 5 Jul 2018 06:31:55 +0000 (09:31 +0300)]
Move shaper to p1_utils repo

6 years agoSet 'from' attribute for client connections when it is absent
Evgeniy Khramtsov [Wed, 4 Jul 2018 05:59:14 +0000 (08:59 +0300)]
Set 'from' attribute for client connections when it is absent

6 years agoDon't set from/to attributes in resource binding iq
Evgeniy Khramtsov [Wed, 4 Jul 2018 05:57:28 +0000 (08:57 +0300)]
Don't set from/to attributes in resource binding iq

6 years agomod_http_upload: Treat file and network errors differently
Evgeniy Khramtsov [Wed, 4 Jul 2018 05:55:52 +0000 (08:55 +0300)]
mod_http_upload: Treat file and network errors differently

6 years agoMerge pull request #2495 from rodrigues/update_ptbr
badlop [Tue, 3 Jul 2018 14:50:29 +0000 (16:50 +0200)]
Merge pull request #2495 from rodrigues/update_ptbr

Update pt-br translations

6 years agoDon't ignore send() result
Evgeniy Khramtsov [Tue, 3 Jul 2018 10:44:58 +0000 (13:44 +0300)]
Don't ignore send() result