]> granicus.if.org Git - ejabberd/log
ejabberd
5 years agoAdd tests for offline with mam storage
Paweł Chmielowski [Mon, 29 Apr 2019 14:40:47 +0000 (16:40 +0200)]
Add tests for offline with mam storage

5 years agoProperly handle infinity as max number of message in mam offline storage
Paweł Chmielowski [Mon, 29 Apr 2019 14:37:21 +0000 (16:37 +0200)]
Properly handle infinity as max number of message in mam offline storage

5 years agoSort messages by stanza_id when using mam storage in mod_offline
Paweł Chmielowski [Mon, 29 Apr 2019 14:32:19 +0000 (16:32 +0200)]
Sort messages by stanza_id when using mam storage in mod_offline

5 years agoReturn correct value from count_offline_messages with mam storage option
Paweł Chmielowski [Mon, 29 Apr 2019 14:31:37 +0000 (16:31 +0200)]
Return correct value from count_offline_messages with mam storage option

5 years agoMake mod_offline put msg ignored by mam in spool when mam storage is on
Paweł Chmielowski [Mon, 29 Apr 2019 14:30:45 +0000 (16:30 +0200)]
Make mod_offline put msg ignored by mam in spool when mam storage is on

5 years agoAdd tests for offline use_mam_for_storage
Paweł Chmielowski [Mon, 29 Apr 2019 09:35:18 +0000 (11:35 +0200)]
Add tests for offline use_mam_for_storage

5 years agoRemove TLS options from the example config
Evgeny Khramtsov [Sun, 28 Apr 2019 14:50:52 +0000 (17:50 +0300)]
Remove TLS options from the example config

The purpose is two-fold:

- To simplify the example config.
- To avoid old TLS configuration to be persistent across
  server updates: this might bring security problems, because
  what's considered "modern" now might be insecure in the future.

5 years agoRemove OMEMO related configuration from force_node_config section
Evgeny Khramtsov [Sun, 28 Apr 2019 14:45:41 +0000 (17:45 +0300)]
Remove OMEMO related configuration from force_node_config section

This doesn't work reliably and takes a lot of effort to change it back

5 years agoAdd mod_offline option for fetching data from mam instead of from spool table
Paweł Chmielowski [Fri, 26 Apr 2019 17:59:06 +0000 (19:59 +0200)]
Add mod_offline option for fetching data from mam instead of from spool table

This commit introduces `use_mam_for_storage` option that take boolean
argument. Enabling it will make mod_offline not use spool table for storing
offline message, but instead will use mam archive to retrieve messages
stored when offline.

Enabling this option have couple drawback currently, only messages that
were stored in mam will be available, most of flexible message retrieval
queries don't work (those that allow retrieval/deletion of messages by id).

5 years agoReturn "Bad request" error when origin in websocket connection doesn't match
Paweł Chmielowski [Fri, 26 Apr 2019 13:29:43 +0000 (15:29 +0200)]
Return "Bad request" error when origin in websocket connection doesn't match

This also allow websocket_origin option to accept multiple values instead
of just single one.

5 years agoAllow non-moderator subscribers to get list of room subscribers
Paweł Chmielowski [Thu, 25 Apr 2019 12:52:29 +0000 (14:52 +0200)]
Allow non-moderator subscribers to get list of room subscribers

5 years agoUse binary framing in MQTT WebSockets
Evgeny Khramtsov [Thu, 25 Apr 2019 11:30:42 +0000 (14:30 +0300)]
Use binary framing in MQTT WebSockets

5 years agoMerge pull request #2868 from rstgroup/fix-rfc-6455-violation
Evgeny Khramtsov [Wed, 24 Apr 2019 15:21:58 +0000 (18:21 +0300)]
Merge pull request #2868 from rstgroup/fix-rfc-6455-violation

Fix #2821 RFC6454 violation on websocket connection when validating Origin

5 years agoFix RFC6454 violation on websocket connection when validating Origin header
Paweł Dorofiejczyk [Wed, 24 Apr 2019 14:59:54 +0000 (16:59 +0200)]
Fix RFC6454 violation on websocket connection when validating Origin header

5 years agoCatch potential exceptions in gen_mod:wait_for_process
Paweł Chmielowski [Wed, 24 Apr 2019 11:46:09 +0000 (13:46 +0200)]
Catch potential exceptions in gen_mod:wait_for_process

Seems that at ejabberd shutdown, process may terminate before that function
is called, and in that case erlang:monitor throws exception.

5 years agoReformat try_set_password/4 function
Evgeny Khramtsov [Tue, 23 Apr 2019 18:25:10 +0000 (21:25 +0300)]
Reformat try_set_password/4 function

5 years agoDon't call to mod_register when it's not loaded
Evgeny Khramtsov [Tue, 23 Apr 2019 18:05:21 +0000 (21:05 +0300)]
Don't call to mod_register when it's not loaded

Fixes #2828

5 years agoAdd WebSockets support to mod_mqtt
Evgeny Khramtsov [Tue, 23 Apr 2019 16:18:22 +0000 (19:18 +0300)]
Add WebSockets support to mod_mqtt

Example configuration:

listen:
  ...
  -
    port: 5280
    module: ejabberd_http
    request_handlers:
      "/mqtt": mod_mqtt

modules:
  ...
  mod_mqtt: {}

5 years agoFix handling of list arguments on pgsql
Paweł Chmielowski [Tue, 23 Apr 2019 15:46:14 +0000 (17:46 +0200)]
Fix handling of list arguments on pgsql

5 years agoSupport other socket modules for MQTT
Evgeny Khramtsov [Tue, 23 Apr 2019 13:22:27 +0000 (16:22 +0300)]
Support other socket modules for MQTT

5 years agoMove websocket options
Evgeny Khramtsov [Tue, 23 Apr 2019 13:21:06 +0000 (16:21 +0300)]
Move websocket options

5 years agoImprove request_handlers validator
Evgeny Khramtsov [Tue, 23 Apr 2019 13:19:26 +0000 (16:19 +0300)]
Improve request_handlers validator

5 years agoBump pkix version
Evgeny Khramtsov [Fri, 19 Apr 2019 13:26:58 +0000 (16:26 +0300)]
Bump pkix version

5 years agoCorrectly support cache tags in ejabberd_auth
Evgeny Khramtsov [Fri, 19 Apr 2019 12:42:24 +0000 (15:42 +0300)]
Correctly support cache tags in ejabberd_auth

5 years agoAllow returning HTTP headers in REST responses
Evgeny Khramtsov [Fri, 19 Apr 2019 12:16:47 +0000 (15:16 +0300)]
Allow returning HTTP headers in REST responses

5 years agoUse new ets_cache api in ejabberd_auth
Evgeny Khramtsov [Fri, 19 Apr 2019 12:08:41 +0000 (15:08 +0300)]
Use new ets_cache api in ejabberd_auth

5 years agoAdd hook room_destroyed called when room gets destroyed
Paweł Chmielowski [Wed, 17 Apr 2019 15:23:21 +0000 (17:23 +0200)]
Add hook room_destroyed called when room gets destroyed

5 years agoChange implementation of misc:unique_timestamp()
Paweł Chmielowski [Tue, 16 Apr 2019 09:20:55 +0000 (11:20 +0200)]
Change implementation of misc:unique_timestamp()

5 years agoHandle cdata in initial data probe of ws module
Paweł Chmielowski [Tue, 16 Apr 2019 08:56:11 +0000 (10:56 +0200)]
Handle cdata in initial data probe of ws module

5 years agoMake misc:unique_timestamp not overflow microsecond part.
Paweł Chmielowski [Tue, 16 Apr 2019 08:24:28 +0000 (10:24 +0200)]
Make misc:unique_timestamp not overflow microsecond part.

This should fix issue #2860

5 years agoAdd hooks for tracking mucsub subscriptions changes
Paweł Chmielowski [Mon, 15 Apr 2019 10:02:43 +0000 (12:02 +0200)]
Add hooks for tracking mucsub subscriptions changes

5 years agoFeed whole image to eimp:identify/1
Evgeny Khramtsov [Sun, 14 Apr 2019 14:05:16 +0000 (17:05 +0300)]
Feed whole image to eimp:identify/1

Fixes #2859

5 years agoFix syntax in Elixir config file
Mickael Remond [Fri, 12 Apr 2019 08:40:46 +0000 (10:40 +0200)]
Fix syntax in Elixir config file

5 years agoHandle correctly case where ExtraUsername is empty
Paweł Chmielowski [Thu, 11 Apr 2019 10:00:13 +0000 (12:00 +0200)]
Handle correctly case where ExtraUsername is empty

5 years agoWhen making mucsub message from mam archive check for subject
Paweł Chmielowski [Tue, 9 Apr 2019 09:16:27 +0000 (11:16 +0200)]
When making mucsub message from mam archive check for subject

5 years agoUse xml:lang from stanza when it's missing in <command/> element
Evgeny Khramtsov [Sat, 6 Apr 2019 15:27:28 +0000 (18:27 +0300)]
Use xml:lang from stanza when it's missing in <command/> element

Thanks to Philipp Hörist for spotting this

5 years agoAdd 'sessionid' attribute when required
Evgeny Khramtsov [Sat, 6 Apr 2019 13:52:22 +0000 (16:52 +0300)]
Add 'sessionid' attribute when required

Fixes #2852

5 years agoUpdate mod_muc_riak
Evgeny Khramtsov [Wed, 3 Apr 2019 13:04:58 +0000 (16:04 +0300)]
Update mod_muc_riak

5 years agoUpdate mod_mam dependencies
Evgeny Khramtsov [Wed, 3 Apr 2019 12:01:20 +0000 (15:01 +0300)]
Update mod_mam dependencies

5 years agoDecrease ugliness of the ugly code
Evgeny Khramtsov [Wed, 3 Apr 2019 11:50:56 +0000 (14:50 +0300)]
Decrease ugliness of the ugly code

5 years agoChange mucsub API for database backends
Evgeny Khramtsov [Wed, 3 Apr 2019 11:20:37 +0000 (14:20 +0300)]
Change mucsub API for database backends

5 years agoAdd ext_mod paths before checking config (processone/ejabberd-contrib#263)
Badlop [Wed, 3 Apr 2019 10:50:28 +0000 (12:50 +0200)]
Add ext_mod paths before checking config (processone/ejabberd-contrib#263)

5 years agoReturn proper error message for duplicate or missing args in http_api call
Paweł Chmielowski [Wed, 3 Apr 2019 10:04:36 +0000 (12:04 +0200)]
Return proper error message for duplicate or missing args in http_api call

5 years agoLog message when trying to execute http_api command with extra arguments
Paweł Chmielowski [Wed, 3 Apr 2019 09:50:15 +0000 (11:50 +0200)]
Log message when trying to execute http_api command with extra arguments

5 years agoFormating fix
Paweł Chmielowski [Wed, 3 Apr 2019 09:48:59 +0000 (11:48 +0200)]
Formating fix

5 years agoMake http_api command execution exception catcher log also command and args
Paweł Chmielowski [Wed, 3 Apr 2019 09:33:07 +0000 (11:33 +0200)]
Make http_api command execution exception catcher log also command and args

5 years agocache_size not applied to mod_roster on reload_config (#2769)
Badlop [Tue, 2 Apr 2019 17:52:07 +0000 (19:52 +0200)]
cache_size not applied to mod_roster on reload_config (#2769)

5 years agoFix previous commit
Evgeny Khramtsov [Tue, 2 Apr 2019 06:58:12 +0000 (09:58 +0300)]
Fix previous commit

Fixes #2847

5 years agoRename listening callback from start/2 to start/3
Evgeny Khramtsov [Mon, 1 Apr 2019 13:53:28 +0000 (16:53 +0300)]
Rename listening callback from start/2 to start/3

This will prevent conflicts in callback names in mod_mqtt
Old callback function is still supported.

5 years agoFix issue with creating HostMatch in mod_mam_sql
Paweł Chmielowski [Mon, 1 Apr 2019 08:56:03 +0000 (10:56 +0200)]
Fix issue with creating HostMatch in mod_mam_sql

This fixes issue #2844

5 years agoUse xmpp:get_subtags/2
Evgeny Khramtsov [Mon, 1 Apr 2019 07:47:29 +0000 (10:47 +0300)]
Use xmpp:get_subtags/2

5 years agoDon't use deprecated gen_mod:db_type
Paweł Chmielowski [Fri, 29 Mar 2019 17:41:51 +0000 (18:41 +0100)]
Don't use deprecated gen_mod:db_type

5 years agoFix issue with mam tests
Paweł Chmielowski [Fri, 29 Mar 2019 16:18:30 +0000 (17:18 +0100)]
Fix issue with mam tests

Too much copy/paste...

5 years agoImplement mod_muc_sql:select_with_mucsub
Paweł Chmielowski [Fri, 29 Mar 2019 15:11:50 +0000 (16:11 +0100)]
Implement mod_muc_sql:select_with_mucsub

This allows us to limit number of issued queries required by
user_mucsub_from_muc_archive option

5 years agoMake misc:add_delay_info properly handle multiple delay tags in element
Paweł Chmielowski [Fri, 29 Mar 2019 10:25:35 +0000 (11:25 +0100)]
Make misc:add_delay_info properly handle multiple delay tags in element

5 years agoAdd option user_mucsub_from_muc_archive to mod_muc
Paweł Chmielowski [Thu, 28 Mar 2019 16:42:25 +0000 (17:42 +0100)]
Add option user_mucsub_from_muc_archive to mod_muc

This option disable storing separate mucsub message for each individual
subscriber but instead when user fetches archive virtual mucsub messages
are generated from muc archives.

5 years agoInclude id in mucsub notification message
Paweł Chmielowski [Thu, 28 Mar 2019 13:43:22 +0000 (14:43 +0100)]
Include id in mucsub notification message

5 years agoAdd 'config' tag to the reload_config command
Badlop [Wed, 27 Mar 2019 10:51:43 +0000 (11:51 +0100)]
Add 'config' tag to the reload_config command

5 years agoFix Register command to respect mod_register's Access option (#2837)
Badlop [Fri, 22 Mar 2019 13:02:03 +0000 (14:02 +0100)]
Fix Register command to respect mod_register's Access option (#2837)

5 years agoUpdate mysql driver in mix.lock also
Christophe Romain [Wed, 20 Mar 2019 12:46:43 +0000 (13:46 +0100)]
Update mysql driver in mix.lock also

5 years agoUpdate mysql driver
Paweł Chmielowski [Wed, 20 Mar 2019 12:28:13 +0000 (13:28 +0100)]
Update mysql driver

5 years agoFix crash in mod_muc_admin:web_page_main/2 caused by just_created (#2830)
Badlop [Mon, 18 Mar 2019 16:08:53 +0000 (17:08 +0100)]
Fix crash in mod_muc_admin:web_page_main/2 caused by just_created (#2830)

5 years agoOrigin header validation on websocket connection (#2821)
Paweł Dorofiejczyk [Fri, 15 Mar 2019 11:19:14 +0000 (12:19 +0100)]
Origin header validation on websocket connection (#2821)

5 years agoUpdate mysql dependency
Paweł Chmielowski [Fri, 15 Mar 2019 10:59:18 +0000 (11:59 +0100)]
Update mysql dependency

5 years agoAdd newline to error_logger log format
Christophe Romain [Fri, 15 Mar 2019 10:51:48 +0000 (11:51 +0100)]
Add newline to error_logger log format

5 years agoAdd check for ljid when setting up subscribers
Paweł Chmielowski [Thu, 14 Mar 2019 14:54:51 +0000 (15:54 +0100)]
Add check for ljid when setting up subscribers

5 years agoFlip default bounce_groupchat flag value, muc will drop bounces anyway
Paweł Chmielowski [Thu, 14 Mar 2019 14:40:34 +0000 (15:40 +0100)]
Flip default bounce_groupchat flag value, muc will drop bounces anyway

5 years agoAdd option to mod_offline to make it not bounce mucsub/groupchat messages
Paweł Chmielowski [Thu, 14 Mar 2019 14:12:39 +0000 (15:12 +0100)]
Add option to mod_offline to make it not bounce mucsub/groupchat messages

5 years agoUse jid() instead of ljid()
Evgeny Khramtsov [Thu, 14 Mar 2019 11:34:15 +0000 (14:34 +0300)]
Use jid() instead of ljid()

5 years agoImprove formatting of hook crashes
Evgeny Khramtsov [Thu, 14 Mar 2019 09:28:37 +0000 (12:28 +0300)]
Improve formatting of hook crashes

5 years agoDelete the ping timer only when timeout_action=kill (#2820)
Badlop [Wed, 13 Mar 2019 10:07:13 +0000 (11:07 +0100)]
Delete the ping timer only when timeout_action=kill (#2820)

5 years agomod_muc: Simplify room creation checks
Holger Weiss [Mon, 11 Mar 2019 23:05:59 +0000 (00:05 +0100)]
mod_muc: Simplify room creation checks

5 years agoMerge remote-tracking branch 'processone/pr/2811'
Holger Weiss [Mon, 11 Mar 2019 22:30:22 +0000 (23:30 +0100)]
Merge remote-tracking branch 'processone/pr/2811'

* processone/pr/2811:
  allow room recreate for admins even if nonempty

5 years agomod_push: Check for payload in encrypted messages
Holger Weiss [Mon, 11 Mar 2019 21:58:53 +0000 (22:58 +0100)]
mod_push: Check for payload in encrypted messages

While distinguishing actual chat messages from other message types,
don't classify all <encrypted/> messages as chat messages, but only
those that have a <payload/> element.

5 years agoFix cond_options with new options
Christophe Romain [Mon, 11 Mar 2019 15:58:26 +0000 (16:58 +0100)]
Fix cond_options with new options

5 years agoFix transaction aborting and restarting in ejabberd_sql
Alexey Shchepin [Thu, 7 Mar 2019 19:14:13 +0000 (22:14 +0300)]
Fix transaction aborting and restarting in ejabberd_sql

5 years agoallow room recreate for admins even if nonempty
Christoph Scholz [Fri, 1 Mar 2019 20:41:53 +0000 (21:41 +0100)]
allow room recreate for admins even if nonempty

5 years agoHandle info log level when using MySQL (#2541)
Badlop [Mon, 4 Mar 2019 17:02:02 +0000 (18:02 +0100)]
Handle info log level when using MySQL (#2541)

5 years agoFix incorrect capitalization in German translation
Holger Weiss [Thu, 28 Feb 2019 23:17:29 +0000 (00:17 +0100)]
Fix incorrect capitalization in German translation

5 years agoDocument required Erlang/OTP version bump
Holger Weiss [Thu, 28 Feb 2019 00:08:52 +0000 (01:08 +0100)]
Document required Erlang/OTP version bump

5 years agoBump required Erlang/OTP version to 19.1
Holger Weiss [Thu, 28 Feb 2019 00:00:05 +0000 (01:00 +0100)]
Bump required Erlang/OTP version to 19.1

Since 538f35d05a9bb25f24b30ea43b07a36cfc043e12, Erlang/OTP 19.1 is
required.

5 years agomod_http_upload: Log nicer warning on unknown host
Holger Weiss [Wed, 27 Feb 2019 23:28:46 +0000 (00:28 +0100)]
mod_http_upload: Log nicer warning on unknown host

If an HTTP client issues a request against an unknown host, log a
readable warning (rather than an unreadable error) and respond with a
404 (rather than a 500) status.

5 years agoAdd mqtree in included_applications
Christophe Romain [Wed, 27 Feb 2019 13:35:07 +0000 (14:35 +0100)]
Add mqtree in included_applications

5 years agoAdd SQL schemas for MQTT tables
Evgeny Khramtsov [Wed, 27 Feb 2019 10:06:17 +0000 (13:06 +0300)]
Add SQL schemas for MQTT tables

5 years agoCopy p1_time_compat:unique_timestamp() to misc and make use of it
Paweł Chmielowski [Wed, 27 Feb 2019 10:00:02 +0000 (11:00 +0100)]
Copy p1_time_compat:unique_timestamp() to misc and make use of it

5 years agoReplace code using p1_time_compat wrapper with native functions
Paweł Chmielowski [Wed, 27 Feb 2019 08:56:20 +0000 (09:56 +0100)]
Replace code using p1_time_compat wrapper with native functions

Since we now require R19, we shouldn't need that anymore.

There are still couple places where p1_time_compat:unique_timestamp() is
used as there is no direct equivalent.

5 years agoRemove now() calls that sneaked in in pull requests
Paweł Chmielowski [Tue, 26 Feb 2019 17:48:46 +0000 (18:48 +0100)]
Remove now() calls that sneaked in in pull requests

5 years agoAdd MQTT listener and module in example config 19.02
Christophe Romain [Tue, 26 Feb 2019 13:53:05 +0000 (14:53 +0100)]
Add MQTT listener and module in example config

5 years agoPrepare 19.02
Christophe Romain [Tue, 26 Feb 2019 13:40:21 +0000 (14:40 +0100)]
Prepare 19.02

5 years agoMySQL: Increase index prefix length for PEP nodes
Holger Weiss [Tue, 26 Feb 2019 12:13:04 +0000 (13:13 +0100)]
MySQL: Increase index prefix length for PEP nodes

For PEP nodes, the "host" column holds the user JID, where the first 20
characters may well not be unique.

5 years agoUpdate mqtree
Paweł Chmielowski [Tue, 26 Feb 2019 11:05:10 +0000 (12:05 +0100)]
Update mqtree

5 years agoCommit back, change reverted by mistake
Paweł Chmielowski [Tue, 26 Feb 2019 10:52:00 +0000 (11:52 +0100)]
Commit back, change reverted by mistake

5 years agoUpdate deps in mix.lock
Paweł Chmielowski [Tue, 26 Feb 2019 10:34:56 +0000 (11:34 +0100)]
Update deps in mix.lock

5 years agoUpdate mod_mqtt_mnesia.erl
Evgeny Khramtsov [Tue, 26 Feb 2019 10:45:53 +0000 (13:45 +0300)]
Update mod_mqtt_mnesia.erl

5 years agoUpdate deps
Paweł Chmielowski [Tue, 26 Feb 2019 09:31:50 +0000 (10:31 +0100)]
Update deps

5 years agoImprove update-deps-releases
Paweł Chmielowski [Tue, 26 Feb 2019 09:31:41 +0000 (10:31 +0100)]
Improve update-deps-releases

5 years agoMerge branch 'pr/2764'
Holger Weiss [Mon, 25 Feb 2019 21:22:02 +0000 (22:22 +0100)]
Merge branch 'pr/2764'

* pr/2764:
  acl for mam_preferences

5 years agoacl for mam_preferences
Christoph Scholz [Sun, 13 Jan 2019 10:37:08 +0000 (11:37 +0100)]
acl for mam_preferences

5 years agoUpdated fast_tls
Paweł Chmielowski [Mon, 25 Feb 2019 15:42:38 +0000 (16:42 +0100)]
Updated fast_tls

5 years agoAdd Accept header to requests issued by rest.erl
Paweł Chmielowski [Mon, 25 Feb 2019 15:18:13 +0000 (16:18 +0100)]
Add Accept header to requests issued by rest.erl