summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* XYZ-110: Cherrypicking changes from release-4.7 to master (#8254)Jonathan2018-02-136-32/+45
| | | | | | | | * Cherry-picking 7b2861de3a09cf00d00b0872cc537d54302c4bfa to master because enterprise/master has code in it that enterprise/release-4.7 does not, and I don't want enterprise/master to break the next time somebody merges enterprise/release-4.7 to enterprise/master * Renamed file to match existing scheme (cherry picked from commit 8c22c5c6c6f835a6e73faf19036bad2a51bb9127)
* ABC-176 Prevent changing PluginSettings.EnableUploads through the API (#8249)Joram Wilander2018-02-134-2/+39
| | | | | | * Prevent changing PluginSettings.EnableUploads through the API * Contain api4 test case in it's own test
* Merge branch 'release-4.7-t4merge'Derrick Anderson2018-02-127-18/+100
|\
| * Merge remote-tracking branch 'origin/release-4.7' into release-4.7-t4mergeDerrick Anderson2018-02-127-18/+100
|/|
| * Merge branch 'master' into release-4.7Chris2018-02-1284-1216/+1345
| |\ | |/ |/|
* | Add tests for the `platform server` command (#8231)Pierre de La Morinerie2018-02-124-10/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cleanup app state on initialization error When returning an initialization error, the app state was not cleaned up. This is especially visible during tests, as `appCount` is not decremented, and makes the new app initialization fail. * Test the `platform server` command As the `platform server` command only exits when interrupted by a signal, it is not possible to test it as the other cobra commands. Instead we directly test the actual command function. The internal command handler is slighly refactored to take a channel in argument, and registers it as the signal handler. Nothing very different—except than controlling this channel from the outside allows the test to send the system signal itself, thus preventing the server to run forever.
* | ABC-228 Update GetPosts caching to work for non-60 limits (#8233)Joram Wilander2018-02-092-7/+31
| | | | | | | | | | | | | | | | * Update GetPosts caching to work for non-60 limits * Only cache on limits of 30/60 and add test * Add comments clarifying 30 and 60 limits
* | Add /v4/image api (#8230)Chris2018-02-094-0/+82
| | | | | | | | | | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
* | Merge branch 'release-4.7'Derrick Anderson2018-02-094-3/+4
|\ \
* | | Remove license globals entirely (#8229)Chris2018-02-0929-429/+256
| | | | | | | | | | | | | | | | | | | | | | | | * remove license globals entirely * fix infinite recursion * test fix
* | | use mattermost fork of go-bindata (#8216)Chris2018-02-081-2/+2
| | |
* | | Add prepatory code for 4.8.0 (#8226)Derrick Anderson2018-02-081-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | * Add prepatory code for 4.8.0 * formatting issue * build bug
* | | fix client4 post sanitization (#8219)Chris2018-02-083-8/+67
| | |
* | | Merge branch 'release-4.7'Derrick Anderson2018-02-086-34/+34
|\ \ \
* | | | Eliminate utils.SetLicense calls (#8217)Chris2018-02-0714-665/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eliminate utils.SetLicense calls * test fix * another test fix * more test fixes
* | | | ABC-132: sign error page parameters (#8197)Chris2018-02-0712-36/+226
| | | | | | | | | | | | | | | | | | | | | | | | * sign error page parameters * add comments
* | | | PLT-7537: Move channel CLI command posts system message to channel. (#8161)Vordimous2018-02-076-8/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [PTL-7537] implement feature and test * [PTL-7537] Update feature to post the the room requiring a username flag to be used * [PTL-7537] update tests with username * update test to remove changes to the test helper struct * use the basic team and user
* | | | XYZ-35: Added Support for GlobalRelay Compliance Export FormatJonathan2018-02-0717-51/+413
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added username to ChannelMemberHistory struct in anticipation of supporting GlobalRelay in Compliance Export * Removed translation from debug output - this makes it complicated to use utils functions from tests in the enterprise repo * Added an advanced email function that allows for greater control over message details. Updated MessageExport config to support GlobalRelay. Added attachment support to InBucket unit tests * Moving templates in from enterprise to solve test issues * Added export format to diagnostics * Changed email attachment code to use FileBackend so that S3 storage is properly supported
* | | | allow plugins to set command hints (#8214)Chris2018-02-071-0/+1
| | | |
* | | | Remove fmt.Println trace on api4 tests (#8212)Jesús Espino2018-02-071-2/+1
| | | |
* | | | Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-079-14/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * Added invite_id field to email invite url, along with validation of this ↵Jonathan2018-02-125-13/+79
| | | | | | | | | | | | | | | | field on the server (#8235)
| | | * minor addition to #8238Christopher Brown2018-02-092-5/+7
| | | |
| | | * Don't proxy same-site image urls (#8238)Chris2018-02-092-2/+16
| | | | | | | | | | | | | | | | | | | | | | | | * don't proxy same-site urls * fix empty site url case
| | | * Add /v4/image api (#8230)Chris2018-02-094-0/+82
| | |/ | | | | | | | | | | | | | | | | | | | | | * add image api * i suppose i should add a test... * only redirect to image proxy
| | * Merge branch 'abc-239' into release-4.7Derrick Anderson2018-02-084-3/+4
| |/|
| | * Increase OAuth2 state parameter limitJoramWilander2018-02-074-3/+4
| |/
| * translations PR 20180205 (#8200)enahum2018-02-076-34/+34
|/
* ICU-715 Change ExperimentalGroupUnreadChannels setting to allow for default ↵Harrison Healey2018-02-065-4/+54
| | | | on/off (#8211)
* add App.License, remove utils.IsLicensed / utils.License calls (#8203)Chris2018-02-0621-48/+56
|
* 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.
* Uncomment upgrade code for 4.7 (#8201)Joram Wilander2018-02-052-4/+5
|
* ABC-173: introduce Normalize(Username|Email) (#8183)Jesse Hallam2018-02-053-6/+38
| | | | This centralizes the source of truth on the rules for username / email processing instead of scattering `strings.ToLower` invocations.
* Fix sampledata (fake library) bug (#8198)Jesús Espino2018-02-054-2/+16
|
* Add missing diagnostics for v4.7 (#8195)Jason Blais2018-02-051-1/+5
|
* ABC-179: check email verification last (#8172)Jesse Hallam2018-02-053-10/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 NOTICE.txt (#8175)amyblais2018-02-051-43/+470
| | | | | | * Update NOTICE.txt * Update NOTICE.txt
* add ImageProxyOptions to default.json (#8193)Chris2018-02-021-0/+1
|
* 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
|
* report server launch errors (#8189)Pierre de La Morinerie2018-02-021-7/+9
| | | | | | | | | | | | | | | | | | | | | When starting the server using `platform server`, errors occuring during startup are not reported in the console. The command exit with a 0 exit code (i.e. "success"), although the server failed to launch. With this change, when an error occurs while initializing the app (like a missing or invalid configuration file): - the error is printed to the console; - the command exit with a "-1" exit code. This allow shell scripts to properly detect the startup failure, and to react to it. Example of error displayed: ``` $ platform server Error: LoadConfig: Error decoding config file=config.json, err=While parsing config: invalid character ':' after top-level value, ``
* ABC-153: don't use http redirects with 4xx/5xx status codes (#8178)Chris2018-02-022-10/+15
| | | | | | * 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-012-4/+9
| | | | | | * add delete_team websocket event * add to PermanentDeleteTeam
* Update CONTRIBUTING.md (#8168)amyblais2018-02-011-29/+41
|
* Don't remove data dirs from vendor directory (#8173)Jesús Espino2018-01-311-1/+1
|
* Adding sample data to the make file (#8171)Corey Hulen2018-01-311-0/+9
| | | | | | * Adding sample data to the make file * Adding regular acct message
* Use default configurations for user-0 in sampledata (#8174)Jesús Espino2018-01-311-4/+4
|
* make channel autocomplete sort case-insensitive (#8176)Chris2018-01-311-1/+1
|
* User based rate limiting (#8152)Christopher Speller2018-01-319-95/+355
|