]> granicus.if.org Git - ejabberd/log
ejabberd
8 years agoProcess cover information on travis only if cover support is enabled
Paweł Chmielowski [Tue, 31 May 2016 10:12:32 +0000 (12:12 +0200)]
Process cover information on travis only if cover support is enabled

8 years agoFix set_presence API
Christophe Romain [Tue, 31 May 2016 09:47:08 +0000 (11:47 +0200)]
Fix set_presence API

8 years agoDisable cover analyzys on R17 as this causes problems with elixir tests
Paweł Chmielowski [Tue, 31 May 2016 09:29:19 +0000 (11:29 +0200)]
Disable cover analyzys on R17 as this causes problems with elixir tests

8 years agoUpdate test after roster code reorganization
Paweł Chmielowski [Mon, 30 May 2016 22:09:26 +0000 (00:09 +0200)]
Update test after roster code reorganization

8 years agoUpdate test
Paweł Chmielowski [Mon, 30 May 2016 22:07:26 +0000 (00:07 +0200)]
Update test

8 years agoFix mod_http_api_test.exs
Paweł Chmielowski [Mon, 30 May 2016 21:04:29 +0000 (23:04 +0200)]
Fix mod_http_api_test.exs

8 years agoMore strict check for commands with policy user
Paweł Chmielowski [Mon, 30 May 2016 21:03:38 +0000 (23:03 +0200)]
More strict check for commands with policy user

8 years agoFix tests
Paweł Chmielowski [Mon, 30 May 2016 19:45:12 +0000 (21:45 +0200)]
Fix tests

8 years agoBetter code for setting up ejabberd app location
Paweł Chmielowski [Mon, 30 May 2016 21:05:45 +0000 (23:05 +0200)]
Better code for setting up ejabberd app location

8 years agoUpdate acl tests to new internal access rules syntax
Paweł Chmielowski [Mon, 30 May 2016 12:36:17 +0000 (14:36 +0200)]
Update acl tests to new internal access rules syntax

8 years agoMake tests run correctly even when ejabberd src in not in ejabberd-xxx dir
Paweł Chmielowski [Mon, 30 May 2016 12:35:53 +0000 (14:35 +0200)]
Make tests run correctly even when ejabberd src in not in ejabberd-xxx dir

8 years agoAllow @ inside acl user{,_glob,_regexp} to pass both user and server in single string
Paweł Chmielowski [Mon, 30 May 2016 10:30:44 +0000 (12:30 +0200)]
Allow @ inside acl user{,_glob,_regexp} to pass both user and server in single string

8 years agoConvert example config to use new syntax for access rules
Paweł Chmielowski [Thu, 26 May 2016 08:37:00 +0000 (10:37 +0200)]
Convert example config to use new syntax for access rules

8 years agoAllow passing username and ip to ejabberd_comamnds, and use it in mod_http_api
Paweł Chmielowski [Wed, 25 May 2016 11:01:07 +0000 (13:01 +0200)]
Allow passing username and ip to ejabberd_comamnds, and use it in mod_http_api

8 years agoUse acl:access_matches in c2s
Paweł Chmielowski [Wed, 25 May 2016 11:00:16 +0000 (13:00 +0200)]
Use acl:access_matches in c2s

8 years agoNew ACL infrastructure
Paweł Chmielowski [Wed, 25 May 2016 07:19:46 +0000 (09:19 +0200)]
New ACL infrastructure

8 years agoDo not call transform_terms multiple times on configs when merging them
Paweł Chmielowski [Wed, 25 May 2016 07:19:29 +0000 (09:19 +0200)]
Do not call transform_terms multiple times on configs when merging them

8 years agoCopy lite.sql to place where tests expect it in failback mode
Paweł Chmielowski [Thu, 26 May 2016 09:05:44 +0000 (11:05 +0200)]
Copy lite.sql to place where tests expect it in failback mode

8 years agoRetrieve parenthesis for easy reading, lost in old commit 9deb294
Badlop [Wed, 25 May 2016 10:44:05 +0000 (12:44 +0200)]
Retrieve parenthesis for easy reading, lost in old commit 9deb294

8 years agoMerge pull request #1131 from weiss/failed-resume-h
Evgeny Khramtsov [Wed, 25 May 2016 07:56:47 +0000 (11:56 +0400)]
Merge pull request #1131 from weiss/failed-resume-h

XEP-0198: Indicate number of handled stanzas if resumption fails

8 years agoMerge pull request #1126 from weiss/muc-send-affiliation
Evgeny Khramtsov [Wed, 25 May 2016 07:55:06 +0000 (11:55 +0400)]
Merge pull request #1126 from weiss/muc-send-affiliation

Notify on MUC affiliation changes of non-occupants

8 years agoMerge pull request #1132 from weiss/publish-options
Christophe Romain [Wed, 25 May 2016 07:49:55 +0000 (07:49 +0000)]
Merge pull request #1132 from weiss/publish-options

Add support for PubSub publishing options

8 years agoAdd support for PubSub publishing options
Holger Weiss [Wed, 1 Jul 2015 15:18:32 +0000 (17:18 +0200)]
Add support for PubSub publishing options

Add code necessary to support publishing options as described in
XEP-0060, #7.1.5.  A node plugin that expects publishing options must
add <<"publish-options">> to the features/0 list and then handle the
publishing options handed over to the publish_item/7 call.

Signed-off-by: Christian Ulrich <christian@rechenwerk.net>
8 years agoXEP-0198: Add 'h' attribute to <failed/> element
Holger Weiss [Tue, 24 May 2016 20:20:58 +0000 (22:20 +0200)]
XEP-0198: Add 'h' attribute to <failed/> element

If a resume request is rejected because the session timed out, indicate
the number of handled stanzas as per version 1.5 of XEP-0198.

8 years agomod_mam_mnesia: Clarify error message
Holger Weiss [Tue, 24 May 2016 05:58:07 +0000 (07:58 +0200)]
mod_mam_mnesia: Clarify error message

8 years agoejabberd_auth*: Fix indentation
Holger Weiss [Mon, 23 May 2016 22:40:25 +0000 (00:40 +0200)]
ejabberd_auth*: Fix indentation

8 years agomod_mam_mnesia: Don't exceed table size limit
Holger Weiss [Mon, 23 May 2016 22:25:52 +0000 (00:25 +0200)]
mod_mam_mnesia: Don't exceed table size limit

Don't write MAM messages into an Mnesia archive if the size of the table
comes close to the 2 GB limit for tables with disc-only copies.  That
way, the table is at least not corrupted when the limit is reached.

8 years agomod_mam_mnesia: Use transactions when writing
Holger Weiss [Mon, 23 May 2016 22:08:23 +0000 (00:08 +0200)]
mod_mam_mnesia: Use transactions when writing

Let mod_mam_mnesia use transactions when storing or deleting messages.

If old messages of a user are to be removed, delete the user's archive
and rewrite it from scratch, as that seems to be much faster than
removing individual records with delete_object/1.

Closes #1065.

8 years agomod_register: Only set timeout on success
Holger Weiss [Mon, 23 May 2016 21:27:42 +0000 (23:27 +0200)]
mod_register: Only set timeout on success

Don't set the registration timeout if the password was rejected for
being too weak.

8 years agoMerge remote-tracking branch 'processone/pr/1122'
Holger Weiss [Fri, 20 May 2016 07:57:07 +0000 (09:57 +0200)]
Merge remote-tracking branch 'processone/pr/1122'

* processone/pr/1122:
  mod_client_state: Add function specifications
  mod_client_state: Add "queue_pep" option
  mod_client_state: Queue chat state notifications
  Move CSI queue handling into mod_client_state

8 years agomod_muc_room: Notify on affiliation changes
Holger Weiss [Thu, 19 May 2016 23:28:16 +0000 (01:28 +0200)]
mod_muc_room: Notify on affiliation changes

Notify the current room occupants if the affiliation of a non-occupant
is changed as per example 195 of XEP-0045.  In anonymous rooms, only
moderators are notified, though.

8 years agomod_client_state: Add function specifications
Holger Weiss [Wed, 18 May 2016 19:30:38 +0000 (21:30 +0200)]
mod_client_state: Add function specifications

Add function specifications and apply cosmetic changes to
mod_client_state.

8 years agomod_client_state: Add "queue_pep" option
Holger Weiss [Tue, 17 May 2016 20:12:04 +0000 (22:12 +0200)]
mod_client_state: Add "queue_pep" option

If the new "queue_pep" option is enabled and the client is inactive, PEP
notifications are throttled in a similar way to presence stanzas and
chat states.  Only the most recent notification of a given node and
payload type will be queued from a given contact.

8 years agomod_client_state: Queue chat state notifications
Holger Weiss [Tue, 17 May 2016 18:55:45 +0000 (20:55 +0200)]
mod_client_state: Queue chat state notifications

Queue standalone chat states instead of simply dropping them when the
client is inactive.  Only the most recent chat state of a given client
is queued.

8 years agoMove CSI queue handling into mod_client_state
Holger Weiss [Tue, 17 May 2016 17:27:18 +0000 (19:27 +0200)]
Move CSI queue handling into mod_client_state

Let mod_client_state handle the queueing of stanzas, not just their
classification.  This simplifies the ejabberd_c2s code and gives
(custom) CSI modules more flexibility.

8 years agoDelete duplicated command export_sql, use export2sql instead (#1118)
Badlop [Mon, 16 May 2016 15:57:57 +0000 (17:57 +0200)]
Delete duplicated command export_sql, use export2sql instead (#1118)

8 years agoFix jid:from_string/1 function specification
Holger Weiss [Sun, 15 May 2016 14:19:13 +0000 (16:19 +0200)]
Fix jid:from_string/1 function specification

8 years agoFix a typo
Alexey Shchepin [Fri, 13 May 2016 15:22:59 +0000 (18:22 +0300)]
Fix a typo

8 years agoLess strict extauth.py
Alexey Shchepin [Fri, 13 May 2016 14:26:15 +0000 (17:26 +0300)]
Less strict extauth.py

8 years agoUpdate SQL escaping
Alexey Shchepin [Thu, 12 May 2016 15:32:13 +0000 (18:32 +0300)]
Update SQL escaping

8 years agoFix C2S session data leak (#1078)
Evgeniy Khramtsov [Mon, 9 May 2016 11:18:47 +0000 (14:18 +0300)]
Fix C2S session data leak (#1078)

8 years agoHandle Redis connection in a separate module
Evgeniy Khramtsov [Mon, 9 May 2016 05:36:30 +0000 (08:36 +0300)]
Handle Redis connection in a separate module

8 years agomod_client_state: Delete only the configured hooks
Holger Weiss [Sun, 8 May 2016 14:45:31 +0000 (16:45 +0200)]
mod_client_state: Delete only the configured hooks

8 years agoLet client retry HTTP upload on file size mismatch
Holger Weiss [Sun, 8 May 2016 13:36:51 +0000 (15:36 +0200)]
Let client retry HTTP upload on file size mismatch

Let the main mod_http_upload process look at the size of an HTTP upload
rather than performing this check in the ejabberd_http handler.  This
way, the upload slot won't be invalidated if the size of the uploaded
file doesn't match the size requested for the slot.  The PUT request is
still rejected, but the client now has a chance to retry the upload.

8 years agoAvoid error bounces when testing stream management
Holger Weiss [Fri, 6 May 2016 14:37:17 +0000 (16:37 +0200)]
Avoid error bounces when testing stream management

The test suite sends messages to the server JID while checking whether
the stream management code counts outgoing stanzas correctly.  We now
set type='headline' for those messages to avoid error bounces.

8 years agoXEP-0198: Use different error message for bounces
Holger Weiss [Fri, 6 May 2016 12:12:22 +0000 (14:12 +0200)]
XEP-0198: Use different error message for bounces

When stanzas are bounced from the stream management queue (because the
session timed out or was closed for some other reason), use a different
error message so that this situation can be distinguished from other
cases.

8 years agoBounce messages sent to server JID
Holger Weiss [Fri, 6 May 2016 11:59:21 +0000 (13:59 +0200)]
Bounce messages sent to server JID

If a message is sent to the server JID (without node part), generate an
error message rather than dropping the message silently.

8 years agoDon't require ejabberd to be installed to run "make translations"
Badlop [Fri, 6 May 2016 11:47:02 +0000 (13:47 +0200)]
Don't require ejabberd to be installed to run "make translations"

8 years agoAdd missed jlib:term_to_expr and jlib:expr_to_term functions
Alexey Shchepin [Thu, 5 May 2016 13:42:48 +0000 (16:42 +0300)]
Add missed jlib:term_to_expr and jlib:expr_to_term functions

8 years agoUpdate more SQL queries
Alexey Shchepin [Wed, 4 May 2016 18:01:05 +0000 (21:01 +0300)]
Update more SQL queries

8 years agoMerge remote-tracking branch 'processone/pr/1088'
Holger Weiss [Wed, 4 May 2016 22:20:15 +0000 (00:20 +0200)]
Merge remote-tracking branch 'processone/pr/1088'

* processone/pr/1088:
  Process messages of unknown type consistently

8 years agoAdd missing odbc->sql in comment from commit 1aae8a9f
Christophe Romain [Wed, 4 May 2016 07:11:18 +0000 (09:11 +0200)]
Add missing odbc->sql in comment from commit 1aae8a9f

8 years agoMerge remote-tracking branch 'processone/pr/1087'
Holger Weiss [Tue, 3 May 2016 22:16:56 +0000 (00:16 +0200)]
Merge remote-tracking branch 'processone/pr/1087'

* processone/pr/1087:
  Return error when blocking last activity request

8 years agoCosmetic change: Make variable names consistent
Holger Weiß [Tue, 3 May 2016 17:12:57 +0000 (19:12 +0200)]
Cosmetic change: Make variable names consistent

Use the same variable names in both mod_mam:select/8 clauses to avoid
confusion.

8 years agoMerge remote-tracking branch 'processone/pr/1102'
Holger Weiss [Tue, 3 May 2016 17:07:11 +0000 (19:07 +0200)]
Merge remote-tracking branch 'processone/pr/1102'

* processone/pr/1102:
  Fix ejabberdctl.template duplication

8 years agoFix ejabberdctl.template duplication
Matthias Rieber [Tue, 3 May 2016 14:36:20 +0000 (16:36 +0200)]
Fix ejabberdctl.template duplication

8 years agoMerge remote-tracking branch 'processone/pr/1086'
Holger Weiss [Mon, 2 May 2016 19:08:06 +0000 (21:08 +0200)]
Merge remote-tracking branch 'processone/pr/1086'

* processone/pr/1086:
  Return error when blocking message to offline user

8 years agoAdd ability to configure server loglevel when running tests
Paweł Chmielowski [Fri, 8 Apr 2016 09:36:15 +0000 (11:36 +0200)]
Add ability to configure server loglevel when running tests

8 years agoPass noauth when auth isn't provided
Christophe Romain [Wed, 6 Apr 2016 10:43:07 +0000 (12:43 +0200)]
Pass noauth when auth isn't provided

8 years agoUse MEDIUMTEXT type for muc_room.opts in MySQL schema
Juan Pablo Carlino [Tue, 29 Mar 2016 18:58:15 +0000 (15:58 -0300)]
Use MEDIUMTEXT type for muc_room.opts in MySQL schema

8 years agoFix sender in case of explicit pep subscriptions
Christophe Romain [Fri, 25 Mar 2016 16:52:08 +0000 (17:52 +0100)]
Fix sender in case of explicit pep subscriptions

8 years agoDon't halt program when include_config_file is missing/can't be read
Paweł Chmielowski [Fri, 29 Jan 2016 13:49:27 +0000 (14:49 +0100)]
Don't halt program when include_config_file is missing/can't be read

8 years agoDon't forget to import mod_opt_type/1 in mod_metrics
Evgeniy Khramtsov [Mon, 2 May 2016 09:18:18 +0000 (12:18 +0300)]
Don't forget to import mod_opt_type/1 in mod_metrics

8 years agoAdd mod_opt_type/1 callback to gen_mod behaviour
Holger Weiss [Sun, 1 May 2016 20:09:40 +0000 (22:09 +0200)]
Add mod_opt_type/1 callback to gen_mod behaviour

8 years agoCope with modules that don't export mod_opt_type/1
Holger Weiss [Sun, 1 May 2016 20:06:15 +0000 (22:06 +0200)]
Cope with modules that don't export mod_opt_type/1

8 years agoejabberdctl: Fix path to epmd
Holger Weiss [Sun, 1 May 2016 19:29:59 +0000 (21:29 +0200)]
ejabberdctl: Fix path to epmd

8 years agoAdd tests for MUC MAM
Evgeniy Khramtsov [Sun, 1 May 2016 09:48:23 +0000 (12:48 +0300)]
Add tests for MUC MAM

8 years agoAdd behaviour to mod_vcard_xupdate DB modules
Evgeniy Khramtsov [Sun, 1 May 2016 08:03:20 +0000 (11:03 +0300)]
Add behaviour to mod_vcard_xupdate DB modules

8 years agoFix typo in mod_mam:select() (#1098)
Evgeniy Khramtsov [Sat, 30 Apr 2016 18:37:18 +0000 (21:37 +0300)]
Fix typo in mod_mam:select() (#1098)

8 years agoLet shaper cope with low resolution system clock
Christophe Romain [Fri, 29 Apr 2016 08:57:34 +0000 (10:57 +0200)]
Let shaper cope with low resolution system clock

We no longer rely on getting unique values from clock source, so we need
to handle cope with systems which does not have a microsecond resolution
on system clock (such as MS Windows)

8 years agoAdd pubsub subscribe/unsubscribe hook 16.04
Christophe Romain [Thu, 28 Apr 2016 13:57:55 +0000 (15:57 +0200)]
Add pubsub subscribe/unsubscribe hook

8 years agoBetter formatting of configuration problem log message
Evgeniy Khramtsov [Thu, 28 Apr 2016 06:03:05 +0000 (09:03 +0300)]
Better formatting of configuration problem log message

8 years agoUpdate esip and stun to match Fast TLS version
Mickael Remond [Wed, 27 Apr 2016 14:22:47 +0000 (16:22 +0200)]
Update esip and stun to match Fast TLS version

8 years agoUse fast_tls 1.0.3
Christophe Romain [Wed, 27 Apr 2016 14:18:24 +0000 (16:18 +0200)]
Use fast_tls 1.0.3

8 years agoImprove detection of databases supported by modules (#1092)
Evgeniy Khramtsov [Wed, 27 Apr 2016 14:10:50 +0000 (17:10 +0300)]
Improve detection of databases supported by modules (#1092)

8 years agoForce ERL_PATH for elixir
Christophe Romain [Wed, 27 Apr 2016 10:32:01 +0000 (12:32 +0200)]
Force ERL_PATH for elixir

8 years agoUpdate stun and esip dependencies
Mickael Remond [Wed, 27 Apr 2016 10:19:55 +0000 (12:19 +0200)]
Update stun and esip dependencies

8 years agoPrepare 16.04 release
Mickael Remond [Wed, 27 Apr 2016 09:59:05 +0000 (11:59 +0200)]
Prepare 16.04 release

8 years agoWe now use fast_tls 1.0.2
Mickael Remond [Wed, 27 Apr 2016 09:54:50 +0000 (11:54 +0200)]
We now use fast_tls 1.0.2

8 years agoGet rid of "internal" DB type. This also fixes #1092
Evgeniy Khramtsov [Wed, 27 Apr 2016 06:44:32 +0000 (09:44 +0300)]
Get rid of "internal" DB type. This also fixes #1092

8 years agoSCRIPT_DIR needed for release
Christophe Romain [Mon, 25 Apr 2016 13:26:23 +0000 (15:26 +0200)]
SCRIPT_DIR needed for release

8 years agoRemove useless variable and quote EPMD and SPOOL_DIR
Christophe Romain [Mon, 25 Apr 2016 12:26:04 +0000 (14:26 +0200)]
Remove useless variable and quote EPMD and SPOOL_DIR

8 years agoFix use of pubsub node plugin when configured with default_node_config
Christophe Romain [Mon, 25 Apr 2016 07:44:46 +0000 (09:44 +0200)]
Fix use of pubsub node plugin when configured with default_node_config

8 years agoReturn error when blocking last activity request
Holger Weiss [Mon, 25 Apr 2016 07:33:47 +0000 (09:33 +0200)]
Return error when blocking last activity request

As per XEP-0016 and XEP-0191, return a service-unavailable error when an
incoming last activity query was blocked by a privacy list (just as we
do for other IQ requests).

8 years agoProcess messages of unknown type consistently
Holger Weiss [Sun, 24 Apr 2016 23:13:41 +0000 (01:13 +0200)]
Process messages of unknown type consistently

If an incoming message sent to an unavailable resource has an unknown
type, handle it like messages of type "normal" (as mandated by RFC 6121,
section 5.2.2).  The same is already done for messages of unknown type
sent to the bare JID of an offline user.

8 years agoFix error text for message bounces
Holger Weiss [Sun, 24 Apr 2016 22:53:48 +0000 (00:53 +0200)]
Fix error text for message bounces

8 years agoDrop headline messages sent to offline resources
Holger Weiss [Sun, 24 Apr 2016 22:02:12 +0000 (00:02 +0200)]
Drop headline messages sent to offline resources

Don't bounce an error when a message of type "headline" is sent to an
unavailable resource.  This is consistent with how headline messages
sent to the bare JID of an offline user are dropped, and it avoids a
presence leak.

8 years agoDon't omit bounces for messages of type "result"
Holger Weiss [Sun, 24 Apr 2016 20:47:53 +0000 (22:47 +0200)]
Don't omit bounces for messages of type "result"

8 years agoReturn error when blocking message to offline user
Holger Weiss [Sun, 24 Apr 2016 20:00:15 +0000 (22:00 +0200)]
Return error when blocking message to offline user

As per XEP-0016 and XEP-0191, return a service-unavailable error when an
incoming message sent to an offline user was blocked by a privacy list.
The same is done for a message sent to an online user, so this avoids a
presence leak.

8 years agoMatch namespace when checking for chat states
Holger Weiss [Sun, 24 Apr 2016 15:16:28 +0000 (17:16 +0200)]
Match namespace when checking for chat states

When checking for standalone chat states, match the namespace rather
than the names of the elements defined in the current XEP-0085 revision.

8 years agoFix check for standalone chat state notifications
Holger Weiss [Sun, 24 Apr 2016 15:09:56 +0000 (17:09 +0200)]
Fix check for standalone chat state notifications

Ignore whitespace (and other XML CDATA) when checking whether a message
stanza is a standalone chat state notification.

8 years agoMerge pull request #931 from cclam0827/dev/mod_ping
badlop [Fri, 22 Apr 2016 11:07:03 +0000 (13:07 +0200)]
Merge pull request #931 from cclam0827/dev/mod_ping

change mod_ping Timers using maps instead of dict

8 years agoSet default value for pubsub#itemreply option
Holger Weiss [Thu, 21 Apr 2016 21:47:07 +0000 (23:47 +0200)]
Set default value for pubsub#itemreply option

8 years agoFix node ping command
Christophe Romain [Thu, 21 Apr 2016 10:16:21 +0000 (12:16 +0200)]
Fix node ping command

8 years agoUse UUID for ctl node name (#1021)
Christophe Romain [Thu, 21 Apr 2016 10:00:51 +0000 (12:00 +0200)]
Use UUID for ctl node name (#1021)

8 years agoAccept commands: add_commands syntax (along commands: - add_commands)
Paweł Chmielowski [Thu, 21 Apr 2016 09:15:53 +0000 (11:15 +0200)]
Accept commands: add_commands syntax (along commands: - add_commands)

8 years agoRename odbc to sql everywhere
Evgeniy Khramtsov [Wed, 20 Apr 2016 09:27:32 +0000 (12:27 +0300)]
Rename odbc to sql everywhere

8 years agoRename ejabberd_sm_odbc -> ejabberd_sm_sql
Evgeniy Khramtsov [Wed, 20 Apr 2016 06:10:34 +0000 (09:10 +0300)]
Rename ejabberd_sm_odbc -> ejabberd_sm_sql

8 years agoFix hometree root check (#1070)
Christophe Romain [Tue, 19 Apr 2016 13:18:32 +0000 (15:18 +0200)]
Fix hometree root check (#1070)

8 years agoSpecify type of second terminate/2 parameter
Holger Weiss [Tue, 19 Apr 2016 07:15:09 +0000 (09:15 +0200)]
Specify type of second terminate/2 parameter