aboutsummaryrefslogtreecommitdiff
path: root/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Restore forgotten translations from previous commitEvgeniy Khramtsov2018-06-205-6/+6
|
* Update ejabberd.potEvgeniy Khramtsov2018-06-202-4/+5
|
* Move mod_irc to ejabberd-contribEvgeniy Khramtsov2018-06-209-2469/+0
|
* mod_push: Include a static body text by defaultHolger Weiss2018-06-191-1/+1
| | | | | | | Set the 'include_body' option to a static text by default. Some app servers check for the presence of a 'last-message-body' field to distinguish between notifications generated for actual chat messages and notifications triggered by other types of traffic.
* mod_push_keepalive: Increase default timeoutHolger Weiss2018-06-191-1/+1
| | | | | Set the default session timeout to three days. This way, sessions will survive a weekend without traffic, for example.
* Fix reset_stream in websocket using pre-rfc protocolPaweł Chmielowski2018-06-191-5/+9
|
* Render roomname, allowinvites and allowpm in room disco#infoEvgeniy Khramtsov2018-06-191-4/+16
|
* mod_push_mnesia: Simplify record matchingHolger Weiss2018-06-181-8/+2
| | | | Omit record fields that aren't used for matching.
* mod_push_mnesia: Fix lookup of all host sessionsHolger Weiss2018-06-181-2/+2
|
* mod_mam: Don't replace existing stanza IDHolger Weiss2018-06-161-0/+2
| | | | | Preserve the original stanza ID for resent messages. This avoids storing duplicates in the MAM archive.
* New shaper implementationPaweł Chmielowski2018-06-151-60/+59
|
* Make connected_users_info and user_sessions_info DB-agnostic (#2448)Badlop2018-06-152-69/+47
| | | | | | | The result returned by connected_users_info command has changed, and is now similar to the result of user_sessions_info. Notice that num_active_users and process_rosteritems still require Mnesia.
* Improve type specEvgeniy Khramtsov2018-06-141-1/+1
|
* Get rid of all calls to jlib.erl moduleEvgeniy Khramtsov2018-06-141-25/+5
|
* Get rid of jlib.hrl/jlib.erlEvgeniy Khramtsov2018-06-141-1002/+0
|
* Do not check for deprecated typesEvgeniy Khramtsov2018-06-146-21/+16
| | | | | Since we support only Erlang >= OTP-17.5, the check for old-style dict/queue/etc types is no longer needed
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-14143-368/+250
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Log modules startupEvgeniy Khramtsov2018-06-141-4/+13
|
* mod_push: Omit summary for outgoing messagesHolger Weiss2018-06-132-28/+54
| | | | | | | | Don't include a urn:xmpp:push:summary form in push notifications that are triggered by outgoing messages. App servers might use the form fields to generate user-visible notifications directly (as opposed to just waking the client app). This is usually not desired for outgoing messages.
* Advertise disco#info and disco#items features in mod_discoEvgeniy Khramtsov2018-06-133-6/+12
| | | | Fixes #2470
* mod_push: Further improve handling of carbonsHolger Weiss2018-06-131-2/+3
| | | | | Also check for carbon-copied messages (with a body) in the queue of unacknowledged stanzas.
* mod_push: Also include sender/body for carbonsHolger Weiss2018-06-121-1/+1
| | | | | | If the 'include_sender' and/or 'include_body' options are specified, also include a urn:xmpp:push:summary form in push notifications that are generated for carbon-copied messages (with a body).
* Avoid lager crash on external authentication failureEvgeniy Khramtsov2018-06-082-3/+3
| | | | Fixes #2463
* Add ability to modify version stringPaweł Chmielowski2018-06-071-3/+10
|
* Omit 'xmlns' field from 'feature_csi' recordHolger Weiss2018-06-041-1/+1
| | | | | The 'xmpp' library has been updated to omit the 'xmlns' field from the 'feature_csi' record.
* Return detailed error if HTTP upload is too largeHolger Weiss2018-06-041-8/+16
| | | | | If the file size specified in an HTTP upload slot request exceeds the the configured maximum size, include the limit with the stanza error.
* Also format gracefully errors returned during module reloadEvgeniy Khramtsov2018-06-031-25/+29
|
* Fix problem in commit 548ef7b835fbf2ad965bb4bb3a6f4e4905717002Paweł Chmielowski2018-06-011-1/+1
|
* Don't crash in bosh when we receive request with RID < prev_ridPaweł Chmielowski2018-06-011-9/+10
|
* Always display room's xdata in disco#infoEvgeniy Khramtsov2018-06-011-6/+12
|
* Display muc#roomconfig_changesubject in room's disco#infoEvgeniy Khramtsov2018-06-011-0/+1
| | | | Fixes #2449
* Send trailer and close socket explicitly on stream endEvgeniy Khramtsov2018-06-011-2/+1
|
* Improve indentationEvgeniy Khramtsov2018-05-301-12/+12
|
* Merge remote-tracking branch 'processone/pr/2446'Holger Weiss2018-05-301-10/+13
|\ | | | | | | | | * processone/pr/2446: Fix authentication for usernames containing uppercase characters
| * Fix authentication for usernames containing uppercase charactersStu Tomlinson2018-05-301-10/+13
| | | | | | | | | | | | | | Applies to authentication methods that compare User (normalized) and AuthzId (was not being normalized). These are external, ldap & pam. Fixes #2280
* | Get rid of direct calls to 'session' Mnesia tableEvgeniy Khramtsov2018-05-302-33/+21
|/ | | | Fixes #2439
* Support for roomconfig_lang/roominfo_langEvgeniy Khramtsov2018-05-302-3/+13
| | | | | | | | | | | Now room owners are able to set a preferred language for the discussions in the room, so other users can discover rooms based on the language they wish to talk. TODO: the language format should conform to RFC 5646. This check should be implemented in 'xmpp' library. Fixes #2436
* Use 'list-multi' type for XEP-0157 xdata fieldsEvgeniy Khramtsov2018-05-291-1/+3
| | | | Thanks to Jonas Wielicki for spotting this
* Better report errors of module startupEvgeniy Khramtsov2018-05-281-19/+38
|
* Don't call Mod:function() in xmpp_stream callbacksEvgeniy Khramtsov2018-05-262-190/+247
| | | | | | If a callback function is not defined by the `Mod` then a call to code_server process is performed. Under heavy load this may cause code_server to get overloaded. We now avoid this.
* mod_muc_sql: Fix export to SQLHolger Weiss2018-05-241-2/+2
| | | | The "host" column is supposed to hold the MUC host name.
* mod_push_mnesia: Apply cosmetic changesHolger Weiss2018-05-231-17/+15
| | | | Improve the readability of the 'max_user_sessions' check.
* mod_push_sql: Check 'max_user_sessions' limitHolger Weiss2018-05-231-0/+20
| | | | | Remove the oldest push session(s) of a user if the number of enabled sessions exceeds the 'max_user_sessions' limit.
* Handle "Expect: 100-continue" request header in ejabberd_httpPaweł Chmielowski2018-05-231-0/+7
|
* Export ext_mod:add_sources/1Rogério da Silva Yokomizo2018-05-221-1/+1
|
* Correctly calculate remaining bytes on file uploadEvgeniy Khramtsov2018-05-191-1/+1
|
* Add support for REST API custom headersChristophe Romain2018-05-171-10/+29
| | | | | | ext_api_headers can be defined as a single string. Headers are separated by comma. Definition MUST NOT contain spaces. Example "X-MyHead:test,X-Token:082748"
* Fix typo file:read() -> file:open()Evgeniy Khramtsov2018-05-171-1/+1
|
* Clean state between requests in ejabberd_httpPaweł Chmielowski2018-05-151-1/+1
|
* Optimize HTTP requests memory usageEvgeniy Khramtsov2018-05-145-193/+261
| | | | | | | | | | | | | | | Due to historical reasons, ejabberd loads the whole file/data into the memory when serving an HTTP request. This is now improved: 1) For GET requests ejabberd uses sendfile(2) if the underlying connection is HTTP and falls back to read/write loop with 64kb buffer for HTTPS connections. This type of requests are handled by mod_http_fileserver, mod_http_upload, ejabberd_captcha, etc 2) POST requests are now limited to 20Mb and are fully downloaded into the memory for further processing (by ejabberd_web_admin, mod_bosh, etc) 3) PUT requests (e.g. for mod_http_upload) are handled by read/write loop with 64kb buffer