]> granicus.if.org Git - ejabberd/log
ejabberd
8 years agoLet mod_carboncopy mark copied messages
Holger Weiss [Tue, 22 Nov 2016 21:21:34 +0000 (22:21 +0100)]
Let mod_carboncopy mark copied messages

Carbon copies are now marked with a 'carbon_copy' flag.  This makes it
easier to identify them.

8 years agoLet ejabberd_sm mark copied messages
Holger Weiss [Tue, 22 Nov 2016 18:25:20 +0000 (19:25 +0100)]
Let ejabberd_sm mark copied messages

When multiple resources have the same (highest) priority, ejabberd_sm
dispatches messages addressed to the bare JID (or to an unavailable
resource) to each of these resources.  Such messages are now marked with
an 'sm_copy' flag for all but one of the resources.  This makes it
easier for other modules to identify those duplicates.

Resolves #1356.

8 years agoFix xref issue injected by fbfbb96
Christophe Romain [Tue, 22 Nov 2016 16:51:21 +0000 (17:51 +0100)]
Fix xref issue injected by fbfbb96

8 years agoFix get_roster issue injected by fbfbb96
Christophe Romain [Tue, 22 Nov 2016 15:59:02 +0000 (16:59 +0100)]
Fix get_roster issue injected by fbfbb96

8 years agoFix vcard_ldap exports
Christophe Romain [Tue, 22 Nov 2016 15:23:02 +0000 (16:23 +0100)]
Fix vcard_ldap exports

8 years agoAdd missing export
Christophe Romain [Tue, 22 Nov 2016 15:12:19 +0000 (16:12 +0100)]
Add missing export

8 years agoFix issues on import improvements
Christophe Romain [Tue, 22 Nov 2016 15:01:08 +0000 (16:01 +0100)]
Fix issues on import improvements

8 years agoAdd missing include file
Paweł Chmielowski [Tue, 22 Nov 2016 14:35:47 +0000 (15:35 +0100)]
Add missing include file

8 years agoNew bosh module
Paweł Chmielowski [Tue, 22 Nov 2016 12:17:05 +0000 (13:17 +0100)]
New bosh module

8 years agoImprove ODBC import
Christophe Romain [Tue, 22 Nov 2016 13:48:01 +0000 (14:48 +0100)]
Improve ODBC import

8 years agoAdd new xmpp repo as dependency in mix.exs
Christophe Romain [Tue, 22 Nov 2016 13:43:10 +0000 (14:43 +0100)]
Add new xmpp repo as dependency in mix.exs

8 years agoRemove now() from mod_offline.hrl
Paweł Chmielowski [Tue, 22 Nov 2016 12:15:16 +0000 (13:15 +0100)]
Remove now() from mod_offline.hrl

8 years agoAdd OTP 19.1 to Travis' testing platforms
Evgeniy Khramtsov [Tue, 22 Nov 2016 06:52:26 +0000 (09:52 +0300)]
Add OTP 19.1 to Travis' testing platforms

8 years agoFix logging in tests on R17
Evgeniy Khramtsov [Mon, 21 Nov 2016 19:04:25 +0000 (22:04 +0300)]
Fix logging in tests on R17

8 years agoSet 'sql_pool_size' to 1 by default for sqlite
Evgeniy Khramtsov [Mon, 21 Nov 2016 18:34:56 +0000 (21:34 +0300)]
Set 'sql_pool_size' to 1 by default for sqlite

8 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Mon, 21 Nov 2016 13:55:28 +0000 (16:55 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

8 years agoSet 'sql_pool_size' to 1 for sqlite tests
Evgeniy Khramtsov [Mon, 21 Nov 2016 13:55:18 +0000 (16:55 +0300)]
Set 'sql_pool_size' to 1 for sqlite tests

8 years agoFix elixir tests
Paweł Chmielowski [Mon, 21 Nov 2016 11:25:50 +0000 (12:25 +0100)]
Fix elixir tests

8 years agoFix non-empty disco-nodes processing
Evgeniy Khramtsov [Mon, 21 Nov 2016 11:21:34 +0000 (14:21 +0300)]
Fix non-empty disco-nodes processing

8 years agoFix s2s test
Paweł Chmielowski [Mon, 21 Nov 2016 11:06:45 +0000 (12:06 +0100)]
Fix s2s test

8 years agoFix handling mod_http_upload disco#info queries: need decoded elements
Badlop [Mon, 21 Nov 2016 11:06:11 +0000 (12:06 +0100)]
Fix handling mod_http_upload disco#info queries: need decoded elements

As reported in
https://www.ejabberd.im/forum/28605/ejabberd-modhttpupload-error-405-not-allowed

8 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Mon, 21 Nov 2016 09:14:37 +0000 (12:14 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

8 years agoFix conference disco#items when running multiple virtual hosts
Evgeniy Khramtsov [Mon, 21 Nov 2016 09:14:24 +0000 (12:14 +0300)]
Fix conference disco#items when running multiple virtual hosts

8 years agoDo not send empty <after/> tag
Evgeniy Khramtsov [Mon, 21 Nov 2016 09:13:34 +0000 (12:13 +0300)]
Do not send empty <after/> tag

8 years agoLog more data for failed s2s connection
Paweł Chmielowski [Mon, 21 Nov 2016 08:52:29 +0000 (09:52 +0100)]
Log more data for failed s2s connection

8 years agoDon't forget to start XMPP application
Evgeniy Khramtsov [Mon, 21 Nov 2016 07:23:09 +0000 (10:23 +0300)]
Don't forget to start XMPP application

8 years agoFix RSM for conference disco#items
Evgeniy Khramtsov [Sun, 20 Nov 2016 15:08:49 +0000 (18:08 +0300)]
Fix RSM for conference disco#items

8 years agoUse xmpp_util.erl from XMPP library
Evgeniy Khramtsov [Sat, 19 Nov 2016 10:57:25 +0000 (13:57 +0300)]
Use xmpp_util.erl from XMPP library

8 years agoTransform ejabberd_commands on the start
Evgeniy Khramtsov [Sat, 19 Nov 2016 10:05:13 +0000 (13:05 +0300)]
Transform ejabberd_commands on the start

8 years agoSwitch to stand-alone XMPP library
Evgeniy Khramtsov [Sat, 19 Nov 2016 10:03:33 +0000 (13:03 +0300)]
Switch to stand-alone XMPP library

8 years agoFix includes in eunit compilation flags
Paweł Chmielowski [Fri, 18 Nov 2016 13:02:47 +0000 (14:02 +0100)]
Fix includes in eunit compilation flags

8 years agoFix elixir tests
Paweł Chmielowski [Fri, 18 Nov 2016 11:54:06 +0000 (12:54 +0100)]
Fix elixir tests

8 years agoRemove useless NO_EXT_LIB flag
Christophe Romain [Fri, 18 Nov 2016 11:25:01 +0000 (12:25 +0100)]
Remove useless NO_EXT_LIB flag

8 years agoGet rid of substitute_forwarded
Paweł Chmielowski [Fri, 18 Nov 2016 10:51:57 +0000 (11:51 +0100)]
Get rid of substitute_forwarded

8 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Fri, 18 Nov 2016 10:39:10 +0000 (13:39 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

Conflicts:
test/ejabberd_SUITE.erl

8 years agoMake common tests working again
Evgeniy Khramtsov [Fri, 18 Nov 2016 10:38:08 +0000 (13:38 +0300)]
Make common tests working again

8 years agoAdd auth to mod_http_fileserver
Paweł Chmielowski [Thu, 17 Nov 2016 11:59:27 +0000 (12:59 +0100)]
Add auth to mod_http_fileserver

8 years agoFix typo
Christophe Romain [Wed, 16 Nov 2016 17:24:12 +0000 (18:24 +0100)]
Fix typo

8 years agoRemove obsolete/temp file
Christophe Romain [Wed, 16 Nov 2016 13:18:51 +0000 (14:18 +0100)]
Remove obsolete/temp file

8 years agoEnsure that presence_broadcast room option is stored (#1380)
Badlop [Wed, 16 Nov 2016 12:35:50 +0000 (13:35 +0100)]
Ensure that presence_broadcast room option is stored (#1380)

8 years agoTell git to ignore the example file ejabberd.service
Badlop [Wed, 16 Nov 2016 12:12:57 +0000 (13:12 +0100)]
Tell git to ignore the example file ejabberd.service

8 years agoHandle correctly p1_http:request result
Badlop [Wed, 16 Nov 2016 12:11:23 +0000 (13:11 +0100)]
Handle correctly p1_http:request result

8 years agoMinor cosmetic changes on pubsub code
Christophe Romain [Tue, 15 Nov 2016 17:35:20 +0000 (18:35 +0100)]
Minor cosmetic changes on pubsub code

8 years agoCosmetic validator changes
Christophe Romain [Tue, 15 Nov 2016 17:14:21 +0000 (18:14 +0100)]
Cosmetic validator changes

8 years agoAdd missing verbs for RESTfull operation
Christophe Romain [Tue, 9 Aug 2016 08:53:58 +0000 (10:53 +0200)]
Add missing verbs for RESTfull operation

8 years agoapply string optimizations
Christophe Romain [Mon, 16 Jun 2014 17:49:08 +0000 (19:49 +0200)]
apply string optimizations

8 years agoAdd configurable weight for commands
Christophe Romain [Tue, 15 Nov 2016 13:18:34 +0000 (14:18 +0100)]
Add configurable weight for commands

8 years agoFix tests that use #forwarded
Paweł Chmielowski [Tue, 15 Nov 2016 08:59:40 +0000 (09:59 +0100)]
Fix tests that use #forwarded

8 years agoUse new version of fast_xml
Paweł Chmielowski [Tue, 15 Nov 2016 08:59:04 +0000 (09:59 +0100)]
Use new version of fast_xml

8 years agoFix types in check_password_hash
Paweł Chmielowski [Thu, 10 Nov 2016 10:20:57 +0000 (11:20 +0100)]
Fix types in check_password_hash

8 years agoMake string args in http_api be list strings
Paweł Chmielowski [Thu, 10 Nov 2016 10:15:34 +0000 (11:15 +0100)]
Make string args in http_api be list strings

8 years agoUse p1_http from p1_utils 1.0.6
Christophe Romain [Mon, 14 Nov 2016 15:52:03 +0000 (16:52 +0100)]
Use p1_http from p1_utils 1.0.6

8 years agoFix IQ result processing
Evgeniy Khramtsov [Sun, 13 Nov 2016 13:56:05 +0000 (16:56 +0300)]
Fix IQ result processing

8 years agoAdd some copyright notices
Evgeniy Khramtsov [Sun, 13 Nov 2016 13:46:04 +0000 (16:46 +0300)]
Add some copyright notices

8 years agoMake xref working again if elixir is disabled
Evgeniy Khramtsov [Sun, 13 Nov 2016 11:29:52 +0000 (14:29 +0300)]
Make xref working again if elixir is disabled

8 years agoAdd more control for decoding IQ payloads
Evgeniy Khramtsov [Sun, 13 Nov 2016 11:17:21 +0000 (14:17 +0300)]
Add more control for decoding IQ payloads

8 years agoDon't auto-decode forwarded payload
Evgeniy Khramtsov [Sun, 13 Nov 2016 10:41:04 +0000 (13:41 +0300)]
Don't auto-decode forwarded payload

8 years agoRemove unused header file
Evgeniy Khramtsov [Sun, 13 Nov 2016 07:57:53 +0000 (10:57 +0300)]
Remove unused header file

8 years agoDon't use jlib.hrl outside of jlib.erl
Evgeniy Khramtsov [Sun, 13 Nov 2016 07:56:36 +0000 (10:56 +0300)]
Don't use jlib.hrl outside of jlib.erl

8 years agoDeprecate most of the functions from jlib.erl
Evgeniy Khramtsov [Sun, 13 Nov 2016 07:44:53 +0000 (10:44 +0300)]
Deprecate most of the functions from jlib.erl

8 years agoUncomment forgotten block of code
Evgeniy Khramtsov [Sat, 12 Nov 2016 11:51:43 +0000 (14:51 +0300)]
Uncomment forgotten block of code

8 years agoRevert "Support to provide password when subscribing to a room (#1306)"
Evgeniy Khramtsov [Sat, 12 Nov 2016 11:47:29 +0000 (14:47 +0300)]
Revert "Support to provide password when subscribing to a room (#1306)"

This reverts commit 566ac872fe396a6d41296d9cfbc6ed5859a0eeed.

8 years agoMerge branch 'master' into xml-ng
Evgeniy Khramtsov [Sat, 12 Nov 2016 11:41:37 +0000 (14:41 +0300)]
Merge branch 'master' into xml-ng

8 years agoMerge branch 'master' into xml-ng
Evgeniy Khramtsov [Sat, 12 Nov 2016 10:27:15 +0000 (13:27 +0300)]
Merge branch 'master' into xml-ng

Conflicts:
src/adhoc.erl
src/cyrsasl_oauth.erl
src/ejabberd_c2s.erl
src/ejabberd_config.erl
src/ejabberd_service.erl
src/gen_mod.erl
src/mod_admin_extra.erl
src/mod_announce.erl
src/mod_carboncopy.erl
src/mod_client_state.erl
src/mod_configure.erl
src/mod_echo.erl
src/mod_mam.erl
src/mod_muc.erl
src/mod_muc_room.erl
src/mod_offline.erl
src/mod_pubsub.erl
src/mod_stats.erl
src/node_flat_sql.erl
src/randoms.erl

8 years agoSupport to provide password when subscribing to a room (#1306)
Badlop [Thu, 10 Nov 2016 19:48:43 +0000 (20:48 +0100)]
Support to provide password when subscribing to a room (#1306)

8 years agoAdd more tests for offline storage
Evgeniy Khramtsov [Tue, 8 Nov 2016 12:15:19 +0000 (15:15 +0300)]
Add more tests for offline storage

8 years agoMerge branch 'xml-ng' of github.com:processone/ejabberd into xml-ng
Evgeniy Khramtsov [Mon, 7 Nov 2016 07:11:40 +0000 (10:11 +0300)]
Merge branch 'xml-ng' of github.com:processone/ejabberd into xml-ng

8 years agoAdd roster tests
Evgeniy Khramtsov [Mon, 7 Nov 2016 07:10:57 +0000 (10:10 +0300)]
Add roster tests

8 years agoSupport several groups separated by ; in add_rosteritem command
Badlop [Fri, 4 Nov 2016 17:44:15 +0000 (18:44 +0100)]
Support several groups separated by ; in add_rosteritem command

8 years agoThrow error if room name or host has invalid characters (#1360)
Badlop [Fri, 4 Nov 2016 16:28:28 +0000 (17:28 +0100)]
Throw error if room name or host has invalid characters (#1360)

8 years agoFix reading room jids from file for create and destroy_rooms_file commands
Badlop [Fri, 4 Nov 2016 15:54:31 +0000 (16:54 +0100)]
Fix reading room jids from file for create and destroy_rooms_file commands

8 years agoReplace ctlscriptpath and produce ejabberd.service file (#434)
Badlop [Fri, 4 Nov 2016 15:35:59 +0000 (16:35 +0100)]
Replace ctlscriptpath and produce ejabberd.service file (#434)

8 years agoMerge mod_opt_type from db sub-modules to main module mod_opt_type
Paweł Chmielowski [Fri, 4 Nov 2016 11:57:57 +0000 (12:57 +0100)]
Merge mod_opt_type from db sub-modules to main module mod_opt_type

8 years agomod_mam: Use user JID for stanza ID 'by' attribute
Holger Weiss [Tue, 1 Nov 2016 07:47:08 +0000 (08:47 +0100)]
mod_mam: Use user JID for stanza ID 'by' attribute

Use the user (or room) JID instead of the server JID for the 'by'
attribute of <stanza-id/> and <archived/> tags.  That's what the
examples in XEP-0313 v0.2 and XEP-0359 v0.3.0 suggest.

8 years agoAppend ; to privacy_list_data exporting lines (thanks to Marcio Luciano Donada)
Badlop [Mon, 24 Oct 2016 11:42:33 +0000 (13:42 +0200)]
Append ; to privacy_list_data exporting lines (thanks to Marcio Luciano Donada)

8 years agoUse base64:mime_decode/1 for SASL packets
Evgeniy Khramtsov [Sat, 22 Oct 2016 10:09:11 +0000 (13:09 +0300)]
Use base64:mime_decode/1 for SASL packets

It will be now possible to accept SASL packets with only
single '=' character set as required by RFC6120

8 years agoAdd more tests for privacy lists and blocking command
Evgeniy Khramtsov [Sat, 22 Oct 2016 10:01:45 +0000 (13:01 +0300)]
Add more tests for privacy lists and blocking command

8 years agoMerge pull request #1349 from prasadvaidya/master
badlop [Fri, 21 Oct 2016 11:32:29 +0000 (13:32 +0200)]
Merge pull request #1349 from prasadvaidya/master

Fix: Replace erlang function with fail-safe jlib function.

8 years agoRollback minor change, to avoid redundant use of fail-safe function
Prasad Vaidya [Fri, 21 Oct 2016 09:32:39 +0000 (15:02 +0530)]
Rollback minor change, to avoid redundant use of fail-safe function

8 years agoFix: Replace erlang function with fail-safe jlib function.
Prasad Vaidya [Fri, 21 Oct 2016 08:27:47 +0000 (13:57 +0530)]
Fix: Replace erlang function with fail-safe jlib function.

8 years agoNidx may be integer or binary, so use jlib:i2l instead
Badlop [Thu, 20 Oct 2016 19:56:19 +0000 (21:56 +0200)]
Nidx may be integer or binary, so use jlib:i2l instead

As reported in
https://www.ejabberd.im/forum/28580/erlang-function-integertobinary1-throwing-badargs-exception

8 years agoIf a participant can change subject, let asubscriber too (#1345)
Badlop [Thu, 20 Oct 2016 18:34:48 +0000 (20:34 +0200)]
If a participant can change subject, let asubscriber too (#1345)

8 years agoLet mix be able to cope with configured deps
Christophe Romain [Wed, 19 Oct 2016 11:57:19 +0000 (13:57 +0200)]
Let mix be able to cope with configured deps

8 years agoMerge pull request #1343 from gardenia/mod_muc_configurable_max_discoitems
badlop [Wed, 19 Oct 2016 10:32:09 +0000 (12:32 +0200)]
Merge pull request #1343 from gardenia/mod_muc_configurable_max_discoitems

New option max_rooms_discoitems instead of constant (#1236)

8 years agomod_muc: made the constant MAX_ROOMS_DISCOITEMS configurable
colm [Tue, 18 Oct 2016 20:59:34 +0000 (21:59 +0100)]
mod_muc: made the constant MAX_ROOMS_DISCOITEMS configurable

8 years agoFix randoms:uniform/1 return
Evgeniy Khramtsov [Tue, 18 Oct 2016 05:35:47 +0000 (08:35 +0300)]
Fix randoms:uniform/1 return

Make sure randoms:uniform/1 returns values from the same interval
as deprecated random:uniform/1

8 years agoGet rid of compile warnings for random/crypto modules on R19
Evgeniy Khramtsov [Tue, 18 Oct 2016 05:17:21 +0000 (08:17 +0300)]
Get rid of compile warnings for random/crypto modules on R19

8 years agoMerge pull request #1338 from marcphilipp/muc_invite_hook
badlop [Mon, 17 Oct 2016 15:46:25 +0000 (17:46 +0200)]
Merge pull request #1338 from marcphilipp/muc_invite_hook

Introduce muc_invite hook

8 years agoFix delete_old_messages command for SQL backends
Jerome Sautret [Mon, 10 Oct 2016 09:32:36 +0000 (11:32 +0200)]
Fix delete_old_messages command for SQL backends

8 years agoAdd more MUC tests
Evgeniy Khramtsov [Mon, 17 Oct 2016 10:37:23 +0000 (13:37 +0300)]
Add more MUC tests

8 years agoConvert ejabberd_xmlrpc to new api_permissions
Paweł Chmielowski [Fri, 14 Oct 2016 11:55:50 +0000 (13:55 +0200)]
Convert ejabberd_xmlrpc to new api_permissions

8 years agoIntroduce muc_invite hook
Marc Philipp [Fri, 14 Oct 2016 10:52:59 +0000 (12:52 +0200)]
Introduce muc_invite hook

This adds a new hook that is triggered for each invite to an MUC room:

- muc_invite(RoomJID, RoomConfig, From, To, Reason) -> ok

where

- RoomJID = From = To = #jid (see jlib.h)
- RoomConfig = #config (see mod_muc_room.hrl)
- Reason = binary()

8 years agoAlways include <actions/> with ad-hoc responses
Holger Weiss [Thu, 13 Oct 2016 20:34:29 +0000 (22:34 +0200)]
Always include <actions/> with ad-hoc responses

XEP-0050 says: "The result for each stage (other than the last) of a
command's execution SHOULD include an <actions/> element."  Some clients
insist on this.

8 years agoDon't let MAM messages go into offline storage
Holger Weiss [Wed, 12 Oct 2016 21:10:25 +0000 (23:10 +0200)]
Don't let MAM messages go into offline storage

8 years agoMerge pull request #1331 from weiss/send-message-omit-copies
badlop [Wed, 12 Oct 2016 11:52:27 +0000 (13:52 +0200)]
Merge pull request #1331 from weiss/send-message-omit-copies

Don't let "send_message" duplicate the message

8 years agoIgnore offline sessions in statistics
Holger Weiss [Tue, 11 Oct 2016 20:20:22 +0000 (22:20 +0200)]
Ignore offline sessions in statistics

Offline sessions should not be counted when reporting the number of
connected resources.

Apart from that, this number is now also reported when using a
non-default session management backend.

8 years agoUpdate riakc to support r19
Christophe Romain [Fri, 16 Sep 2016 12:59:06 +0000 (14:59 +0200)]
Update riakc to support r19

8 years agoCreate room on configuration request as per XEP-0045, 10.1.3
Evgeniy Khramtsov [Wed, 7 Sep 2016 08:15:19 +0000 (11:15 +0300)]
Create room on configuration request as per XEP-0045, 10.1.3

8 years agoDon't let "send_message" duplicate the message
Holger Weiss [Sun, 9 Oct 2016 22:17:17 +0000 (00:17 +0200)]
Don't let "send_message" duplicate the message

In the past, the "send_message" command sent a copy of the message to
each resource if the message was addressed to the bare JID of a local
online user.  When message carbons are enabled, this creates duplicates;
and with MAM enabled, each copy is archived.  Therefore, "send_message"
no longer creates copies of the message.

8 years agoAdd xdata generator and make some code using it
Evgeniy Khramtsov [Fri, 7 Oct 2016 07:31:03 +0000 (10:31 +0300)]
Add xdata generator and make some code using it