aboutsummaryrefslogtreecommitdiff
path: root/src (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-07Add ability to modify version stringPaweł Chmielowski1-3/+10
2018-06-04Omit 'xmlns' field from 'feature_csi' recordHolger Weiss1-1/+1
The 'xmpp' library has been updated to omit the 'xmlns' field from the 'feature_csi' record.
2018-06-04Return detailed error if HTTP upload is too largeHolger Weiss1-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.
2018-06-03Also format gracefully errors returned during module reloadEvgeniy Khramtsov1-25/+29
2018-06-01Fix problem in commit 548ef7b835fbf2ad965bb4bb3a6f4e4905717002Paweł Chmielowski1-1/+1
2018-06-01Don't crash in bosh when we receive request with RID < prev_ridPaweł Chmielowski1-9/+10
2018-06-01Always display room's xdata in disco#infoEvgeniy Khramtsov1-6/+12
2018-06-01Display muc#roomconfig_changesubject in room's disco#infoEvgeniy Khramtsov1-0/+1
Fixes #2449
2018-06-01Send trailer and close socket explicitly on stream endEvgeniy Khramtsov1-2/+1
2018-05-30Improve indentationEvgeniy Khramtsov1-12/+12
2018-05-30Fix authentication for usernames containing uppercase charactersStu Tomlinson1-10/+13
Applies to authentication methods that compare User (normalized) and AuthzId (was not being normalized). These are external, ldap & pam. Fixes #2280
2018-05-30Get rid of direct calls to 'session' Mnesia tableEvgeniy Khramtsov2-33/+21
Fixes #2439
2018-05-30Support for roomconfig_lang/roominfo_langEvgeniy Khramtsov2-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
2018-05-29Use 'list-multi' type for XEP-0157 xdata fieldsEvgeniy Khramtsov1-1/+3
Thanks to Jonas Wielicki for spotting this
2018-05-28Better report errors of module startupEvgeniy Khramtsov1-19/+38
2018-05-26Don't call Mod:function() in xmpp_stream callbacksEvgeniy Khramtsov2-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.
2018-05-24mod_muc_sql: Fix export to SQLHolger Weiss1-2/+2
The "host" column is supposed to hold the MUC host name.
2018-05-23mod_push_mnesia: Apply cosmetic changesHolger Weiss1-17/+15
Improve the readability of the 'max_user_sessions' check.
2018-05-23mod_push_sql: Check 'max_user_sessions' limitHolger Weiss1-0/+20
Remove the oldest push session(s) of a user if the number of enabled sessions exceeds the 'max_user_sessions' limit.
2018-05-23Handle "Expect: 100-continue" request header in ejabberd_httpPaweł Chmielowski1-0/+7
2018-05-22Export ext_mod:add_sources/1Rogério da Silva Yokomizo1-1/+1
2018-05-19Correctly calculate remaining bytes on file uploadEvgeniy Khramtsov1-1/+1
2018-05-17Add support for REST API custom headersChristophe Romain1-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"
2018-05-17Fix typo file:read() -> file:open()Evgeniy Khramtsov1-1/+1
2018-05-15Clean state between requests in ejabberd_httpPaweł Chmielowski1-1/+1
2018-05-14Optimize HTTP requests memory usageEvgeniy Khramtsov5-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
2018-05-14Handle muc_register_nick success correctly (#2415)Badlop1-1/+4
2018-05-11Disable thumbnails creation by defaultEvgeniy Khramtsov1-1/+1
2018-05-11Support IPv6 connections for PostgreSQL, MySQL and LDAPEvgeniy Khramtsov1-10/+69
Fixes #2411
2018-05-11Relax check for valid command name in access_persmissionsPaweł Chmielowski1-1/+1
2018-05-09Stop ejabberd initialization on invalid/unknown optionsEvgeniy Khramtsov3-128/+145
Since now, ejabberd doesn't ignore unknown options and doesn't allow to have options with malformed values. The rationale for this is to avoid unexpected behaviour during runtime, i.e. to conform to "fail early" approach. Note that it's safe to reload a configuration with potentialy invalid and/or unknown options: this will not halt ejabberd, but will only prevent the configuration from loading. ***NOTE FOR PACKAGE BUILDERS*** This new behaviour should be documented in the upgrade notes.
2018-05-09Reduce IQ handler code copyingEvgeniy Khramtsov5-124/+68
2018-05-09Fix a typoEvgeniy Khramtsov1-2/+2
2018-05-08Bypass account creation error when password is empty, caused by extauthBadlop1-0/+2
2018-05-08Get rid of ?FUNCTION_NAME macro (it's OTP19+ feature)Evgeniy Khramtsov1-5/+5
2018-05-08Improve logging of external authentication failuresEvgeniy Khramtsov1-8/+9
2018-05-07Don't stop on out-of-date requestsEvgeniy Khramtsov1-1/+1
2018-05-07Improve robustness of external authentication backendsEvgeniy Khramtsov4-141/+343
Now all external ports are attached to supervising processes and requests are balanced in round-robin manner until the pool is exhausted. The commit also deprecates `extauth_instances` option and introduces `extauth_pool_size` option instead, with the default value of a number of logical processors (i.e. CPU cores). Fixes #2403
2018-05-04Make trusted_proxied ejabberd_http option accept ip masksPaweł Chmielowski1-3/+22
2018-05-04Teach acl ip matching about ipv4 mapped ipv6 addressesPaweł Chmielowski1-7/+19
2018-05-03ejabberd_auth: Don't use cache if it's disabledHolger Weiss1-2/+4
Don't let the check whether a user exists use the cache if caching was disabled in the configuration.
2018-05-02mod_blocking: Use #block_item{} recordHolger Weiss1-6/+9
2018-04-30Add validator for 'accept_interval' listening optionEvgeniy Khramtsov9-37/+27
2018-04-24misc: Catch all Base64 decoding errorsHolger Weiss1-1/+1
2018-04-24mod_http_upload: Add MIME type for M4A filesHolger Weiss1-0/+1
2018-04-24PubSub purge_node must use a transaction (#2231)Christophe Romain1-1/+1
2018-04-24Introduce new mod_muc option: access_registerEvgeniy Khramtsov1-14/+31
The option is an ACL rule defining who is able to register nicknames within the conference service. The default is `all` (for backward compatibility).
2018-04-24Get rid of useless memory/disk usage warningsEvgeniy Khramtsov1-15/+1
2018-04-24Fix get_affiliation/2Evgeniy Khramtsov1-3/+5
2018-04-23Use httpc directly instead of using p1_http wrapperPaweł Chmielowski2-34/+45