summaryrefslogtreecommitdiffstats
path: root/app
Commit message (Collapse)AuthorAgeFilesLines
* Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-074-7/+64
| | | | | | | | | | | | | | | | | Only a handful of critical errors are present in the codebase. They all occur during server startup (in `app.StartServer()`). Currently, when one of these critical error occurs, it is simpled mentionned in the logs – then the error is discarded, and the app attempts to continue the execution (and probably fails pretty quickly in a weird way). Rather than continuing operations in an unknow state, these errors should trigger a clean exit. This commit rewrites critical startup errors to be correctly propagated, logged, and then terminate the command execution. Additionnaly, it makes the server return a proper error code to the shell.
* add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-0615-38/+45
|
* handle RateLimiter initialization errors (#8199)Pierre de La Morinerie2018-02-053-9/+28
| | | | | Previously, an error occuring in NewRateLimiter would return a nil reference – which would be de-referenced just after, making the server crash.
* Add missing diagnostics for v4.7 (#8195)Jason Blais2018-02-051-1/+5
|
* ABC-179: check email verification last (#8172)Jesse Hallam2018-02-051-5/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | * ABC-179: check email verification last This change changes the authentication checks to be: * "preflight checks" ** mfa ** not disabled ** login attempts * password * "postflight checks" ** email verified Checking whether the email is verified or not last avoids the weird edge case where entering any bogus password for an account with an unverified email shows a message about verifying the email and offering to resend. * fix invalid unit test assertion Client.CreateUser returns a user whose password has been sanitized. Adopt the pattern in the previous assertions to use a new variable name and test the password on the original model.User object. This didn't expose any underlying broken behaviour, but the test wouldn't have caught it if it had regressed. Also fix a minor typo.
* Update zoom plugin to latest (#8194)Joram Wilander2018-02-023-6/+6
|
* Fix panic when invalid types used in post props (#8191)Joram Wilander2018-02-021-6/+6
|
* ABC-153: don't use http redirects with 4xx/5xx status codes (#8178)Chris2018-02-021-1/+1
| | | | | | * don't use http redirects with 4xx/5xx status codes * minor html syntax fix
* fix image url replacement for blank urls (#8184)Chris2018-02-012-1/+7
|
* [PLT-8494] Add delete_team websocket event (#8167)Saturnino Abril2018-02-011-4/+8
| | | | | | * add delete_team websocket event * add to PermanentDeleteTeam
* User based rate limiting (#8152)Christopher Speller2018-01-315-30/+318
|
* ABC-79: Optimize channel autocomplete query (#8163)Chris2018-01-311-0/+8
| | | | | | * optimize channel autocomplete query * move to new autocomplete endpoint
* Moving to golang.org/x/crypto/acme/autocert for Let's Encrypt functionality. ↵Christopher Speller2018-01-301-13/+28
| | | | (#8165)
* Used a consistent tense for system messages (#8079)Harrison Healey2018-01-261-1/+1
|
* PLT-3658 Added support for Slack attachments in outgoing webhook response ↵Joey Lee2018-01-261-2/+13
| | | | (#7774) (#8102)
* XYZ-32: Increases size of position to 128 characters. (#8148)Martin Kraft2018-01-261-1/+1
| | | | | | | | | | * XYZ-32: Changes type of 'position' column on 'users' table. * XYZ-32: Uncomment to run on CI and pre-release. * XYZ-32: Reverts translation changes. * XYZ-32: Fix for gofmt.
* Add GET /emojis/name/{emoji_name} API endpoint (#8142)Joram Wilander2018-01-241-0/+16
|
* [ICU-621] Add ExperimentalGroupUnreadChannels setting (#8127)enahum2018-01-231-0/+1
| | | | | | * Add ExperimentalGroupUnreadChannels setting * track ExperimentalGroupUnreadChannels in diagnostics
* Merge branch 'release-4.6'Harrison Healey2018-01-233-33/+64
|\
| * Update diagnostics.go for 4.6 release (#8082)Jason Blais2018-01-101-27/+40
| | | | | | | | | | | | * Update diagnostics.go * Fix formatting error
| * PLT-8522 Added separate messages for being removed from channel or team (#8078)Harrison Healey2018-01-102-6/+24
| |
* | use markdown parsing to identify mentions (#8139)Chris2018-01-232-392/+338
| |
* | set from_webhook if a builtin slash command overrides username or icon (#8143)Chris2018-01-231-3/+9
| |
* | ABC-90 Add POST /emoji/search and GET /emoji/autocomplete API endpoints (#8125)Joram Wilander2018-01-231-2/+14
| | | | | | | | | | | | * Add POST /emoji/search and GET /emoji/autocomplete API endpoints * Add constant to be clearer
* | PLT-3383: image proxy support (#7991)Chris2018-01-224-5/+212
| | | | | | | | | | | | | | | | | | | | | | | | * image proxy support * go vet fix, remove mistakenly added coverage file * fix test compile error * add validation to config settings and documentation to model functions * add message_source field to post
* | Add sort query parameter to GET /emojis (#8121)Joram Wilander2018-01-191-2/+2
| |
* | Post a system message to the affected channel by CLI command (#7877) (#7968)Evgeniy2018-01-182-0/+56
| |
* | Handle missed case with ExperimentalEnableDefaultChannelLeaveJoinMessages ↵Joram Wilander2018-01-182-8/+10
| | | | | | | | setting (#8112)
* | Finally remove utils.Cfg (#8113)Chris2018-01-178-39/+26
| | | | | | | | | | | | | | | | * finally remove utils.Cfg * fix compile error * another test compilation fix
* | ABC-22: Plugin sandboxing for linux/amd64 (#8068)Chris2018-01-151-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * plugin sandboxing * remove unused type * better symlink handling, better remounting, better test, whitespace fixes, and comment on the remounting * fix test compile error * big simplification for getting mount flags * mask statfs flags to the ones we're interested in
* | Remove global cfg vars (#8099)Chris2018-01-126-27/+186
| | | | | | | | | | | | * remove global cfg vars * enterprise update
* | [PLT-7793] Add /users/tokens/search endpoint (#8088)Adrian Carolli2018-01-111-0/+12
| | | | | | | | | | | | | | | | * Add /users/tokens/search endpoint + tests * Fix check-style * Unnecessary deletion
* | Remove global config watcher (#8080)Chris2018-01-116-53/+103
| | | | | | | | | | | | | | | | | | | | * remove global config watcher * keep config watcher disabled for tests * compile fix * fix resource leak
* | [XYZ-6] Add sampledata platform command (#8027)Jesús Espino2018-01-113-32/+527
| | | | | | | | | | | | | | | | * Add fake dependency * [XYZ-6] Add sampledata platform command * Creating EMOJI_NAME_MAX_LENGTH as a constant and using it where needed
* | Add EnableDefaultChannelLeaveJoinMessages config setting (#7961)Chris Duarte2018-01-102-54/+61
| |
* | [PLT-6936] Translate AppError.Message automatically by default (#8063)Jesús Espino2018-01-086-8/+2
| |
* | Remove utils.ClientCfg and utils.ClientCfgHash (#8041)Chris2018-01-057-65/+118
| | | | | | | | | | | | * remove utils.ClientCfg and utils.ClientCfgHash * remove unused import
* | [PLT-7793] Added /users/tokens endpoint (#8038)Adrian Carolli2018-01-051-0/+13
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added /users/tokens/all endpoint - UserAccessStore now has getAll method - Added tests - Added route - Added handler * Remove space fix check-style * Remove blank space check-style * Fixes for make check-style * Remove extra code that is un-needed in user_test.go * Rename endpoint + grammar - Renamed /users/tokens/all to /users/tokens - Renamed getUserAccessTokens to getUserAccessTokensForUser - Renamed getAllUserAccessTokens to getUserAccessTokens - Minor Grammar changes * Add localization for sql_user_access_token.get_all * Fix minor plural spelling
* Update Zoom plugin to latest (#8030)Joram Wilander2018-01-043-6/+6
|
* Add admin update endpoint that can update authservice and authdata (#7842)Chris Duarte2018-01-041-0/+24
| | | | | | | | | | * add admin update endpoint that can upate authservice and authdata * Control only SystemAdmin access * Refactored AdminUpdate endpoint to only be able to update AuthData, AuthService and Password by User.Id * Refactor to move `PUT /api/v4/users/{user_id}/auth`. Created a struct to hold UserAuth info.
* [PLT-8173] Strip the post_ prefix on incoming webhook overrides. (#8019)Jesse Hallam2018-01-032-52/+52
|
* Don't omit current user from updated user WS event (#8018)Joram Wilander2018-01-021-3/+1
|
* [PLT-8173] Add username and profile picture to webhook set up pages (#8002)Jesse Hallam2018-01-022-2/+314
|
* [PLT-8438] Include incoming webhook display name in post props (#7997)Carlos Tadeu Panato Junior2017-12-222-12/+20
|
* Drop built-in plugin start-up log messages to debug from info (#7986)Joram Wilander2017-12-221-1/+1
|
* Reduce logging data races, fix MySQL test race condition (#7994)Chris2017-12-221-2/+0
| | | | | | | | * fix races * revert unintentional change * fix test as intended
* PLT-8350 "mention" when channel user count equals to max allowed num (#7976)Siyuan Liu2017-12-152-2/+16
|
* PLT-6896 per-paging for logs (#7903)Yusuke Nemoto2017-12-131-15/+40
| | | | | | | | | | * PLT-6896 Read logs from last * Getting rid of file.Stats * remove deprecated value * Make non-reassigned value constant
* Do not auto-join 'off-topic' channel if it is private (#7950)Siyuan Liu2017-12-131-2/+1
|
* Add plugin slash command support (#7941)Chris2017-12-086-25/+329
| | | | | | | | * add plugin slash command support * remove unused string * rebase