summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* subpath: rewrite manifest.json too (#9017)Jesse Hallam2018-06-292-11/+231
|
* Gfycat integration (#8971)Kenny Au2018-06-271-0/+3
| | | | | | * Gfycat integration * Added gfycat api credentials to config.
* Implementation of File Exists Function; Delete FileInfos upon Permanent User ↵Daniel Schalla2018-06-254-0/+49
| | | | | | | Delete (#8958) Check if file was deleted on FS Warning message if file couldnt be removed
* MM-8810: Add CSV Compliance export (#8966)Jesús Espino2018-06-223-0/+21
| | | | | | | | | | | | * MM-8810: Add CSV Compliance export * Only allowing to schedule actiances export throught the cli * De-duplicating some code * Fixes on texts * Fixes on translations
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-214-6/+351
| | | | | | | | | | | | | | | | | | | | | | | * factor out GetSubpathFromConfig * mv web/subpath.go to utils/subpath.go * serve up web, api and ws on /subpath if configured * pass config to utils.RenderWeb(App)?Error This allows the methods to extract the configured subpath and redirect to the appropriate `/subpath/error` handler. * ensure GetSubpathFromConfig returns trailing slashes deterministically * fix error 404 handling * redirect /subpath to /subpath/ This is necessary for the static handler to match, otherwise none of the registered routes find anything. This also makes it no longer necessary to add trailing slashes in the root router.
* MM-10730 Added support for empty environment variables to viper (#8973)Harrison Healey2018-06-211-0/+25
|
* Add missed translations (#8959)Jesús Espino2018-06-193-5/+5
|
* MM-8701 Limit the number of client config fields sent before user logs in ↵Harrison Healey2018-06-182-86/+112
| | | | | | | | | | (#8954) * MM-8701 Limit the number of client config fields sent before user logs in * Fixed missing client config field * Reduced duplication between limited and regular client config
* Update html2text lib to use the original repo (#8900)Carlos Tadeu Panato Junior2018-06-141-1/+1
|
* MM-10769 Rename references to spf13/viper to mattermost/viper (#8948)Harrison Healey2018-06-141-1/+1
|
* Prototype for CBA (#8475)Corey Hulen2018-06-121-0/+4
| | | | | | | | | | | | | | * Prototype for CBA * Fixing gofmt issues * Do not require password if logging in with certificate * Fixing issues from feedback * Adding unit tests * Fixing feedback
* MM-6839: searching for paths relative to executable (#8915)Jesse Hallam2018-06-062-32/+354
| | | | | | | | | | | | | | | | | | * MM-6839: search relative to executable (#8853) * MM-6839: searching for paths relative to executable In addition to searching relative to the current working directory, also search relative to the location of the binary. This helps locate config and i18n files when invoking an absolute path to the mattermost binary. * MM-6839: find mattermost/ binary using utils.FindFile * add unit tests for utils.FindFile to exclude directories * fix filtering out directories in FindFile * fix platform invoking ./bin/mattermost
* [MM-10718] Move custom branding to TE (#8871)Saturnino Abril2018-06-022-7/+3
| | | | | * move custom branding to TE * move brand's enterprise code to server and remove BrandInterface
* Merge branch 'advanced-permissions-phase-2'George Goldberg2018-05-312-0/+3
|\
| * Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-281-1/+1
| |\
| * \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-282-6/+11
| |\ \
| * \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-251-0/+2
| |\ \ \
| * | | | MM-10402: Adds RunJobs to client config API. (#8846)Martin Kraft2018-05-241-0/+2
| | | | |
| * | | | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-242-9/+5
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into advanced-permissions-phase-2Martin Kraft2018-05-221-0/+1
| |\ \ \ \ \
| * \ \ \ \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-221-1/+1
| |\ \ \ \ \ \
| * \ \ \ \ \ \ Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-181-2/+2
| |\ \ \ \ \ \ \
| * | | | | | | | MM-10606: License feature flag for custom schemes. (#8804)George Goldberg2018-05-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-10606: Add new field to license for custom schemes. * Add feature flag to license check for Schemes.
* | | | | | | | | MM-9547 Added config setting to control url autolinking schemes (#8862)Harrison Healey2018-05-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-9547 Added config setting to control autolinking schemes * Renamed AutolinkingSchemes to CustomUrlSchemes
* | | | | | | | | Revert "MM-6839: search relative to executable (#8853)" (#8876)Christopher Speller2018-05-292-242/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit d3cf110620033f8831a55a3fd911d7864b6aab4a.
* | | | | | | | | MM-6839: search relative to executable (#8853)Jesse Hallam2018-05-292-32/+242
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-6839: searching for paths relative to executable In addition to searching relative to the current working directory, also search relative to the location of the binary. This helps locate config and i18n files when invoking an absolute path to the mattermost binary. * MM-6839: find mattermost/ binary using utils.FindFile
* | | | | | | | | fix bad merge (#8869)Carlos Tadeu Panato Junior2018-05-291-0/+1
| |_|_|_|_|_|_|/ |/| | | | | | |
* | | | | | | | [MM-1915] Add Deactivate Account - server side (#8699)Carlos Tadeu Panato Junior2018-05-281-1/+1
| |_|_|_|_|_|/ |/| | | | | |
* | | | | | | re-enabling TestSendMailUsingConfigAdvanced (#8836)Carlos Tadeu Panato Junior2018-05-272-6/+11
| |_|_|_|_|/ |/| | | | |
* | | | | | add ExperimentalHideTownSquareinLHS in config setting (#8751)Saturnino Abril2018-05-241-0/+2
| |_|_|_|/ |/| | | |
* | | | | remove license check when enforcing password requirements (#8840)Saturnino Abril2018-05-232-9/+5
| |_|_|/ |/| | | | | | | Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* | | | add EnablePreviewModeBanner in config (#8834)Saturnino Abril2018-05-221-0/+1
| |_|/ |/| | | | | Signed-off-by: Saturnino Abril <saturnino.abril@gmail.com>
* | | MM-10640 Set EnableUserCreation to true by default (#8815)Balasankar C2018-05-181-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | * Set EnableUserCreation to true by default * Fix argument type to FormatBool * Convert EnableUserCreation instances to pointer * Convert to boolean in tests also * Set value of pointer to be false * Convert remaining EnableUserCreation instances to pointer
* | Renaming platform binary to mattermost. (#8801)Christopher Speller2018-05-171-2/+2
|/
* MM-8708 Remove api package (#8784)Joram Wilander2018-05-161-1/+0
| | | | | | | | | | | | | | | | | | | | | | * Remove api package * Remove api dependency from cmd package * Remove EnableAPIv3 setting * Update web tests * Add more websocket tests * Move some ws and oauth tests to api4 package * Move command tests into api4 package * Test fixes * Fix msg command test * Add some app file tests
* MM-10188: expect io.Reader in FileBackend.WriteFile (#8765)Jesse Hallam2018-05-105-38/+80
| | | | This is a reworked set of changes originally from @josephGuo to begin reducing the duplicated memory required when uploading files.
* MM-10189 Fixed inconsistency when using environment variables for ↵Harrison Healey2018-05-032-2/+35
| | | | MessageExportSettings (#8705)
* Fix TestSendNotifications test (#8712)Jesús Espino2018-05-031-0/+9
|
* Upgrading minio-go library to 6.0.0 (#8651)Jesús Espino2018-04-301-12/+6
| | | | | | * Upgrading minio-go library to 6.0.0 * Removing unnecesary Gopkg constraint
* Structured logging (#8673)Christopher Speller2018-04-2711-196/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implementing structured logging * Changes to en.json to allow refactor to run. * Fixing global logger * Structured logger initalization. * Add caller. * Do some log redirection. * Auto refactor * Cleaning up l4g reference and removing dependancy. * Removing junk. * Copyright headers. * Fixing tests * Revert "Changes to en.json to allow refactor to run." This reverts commit fd8249e99bcad0231e6ea65cd77c32aae9a54026. * Fixing some auto refactor strangeness and typo. * Making keys more human readable.
* MM-10232, MM-10259: Improve error handling from invalid json (#8668)Jesse Hallam2018-04-264-2/+321
| | | | | | | | | | | | | | * MM-10232: improve error handling from malformed slash command responses Switch to json.Unmarshal, which doesn't obscure JSON parse failures like json.Decode. The latter is primarily designed for streams of JSON, not necessarily unmarshalling just a single object. * rework HumanizedJsonError to expose Line and Character discretely * MM-10259: pinpoint line and character where json config error occurs * tweak HumanizeJsonError to accept err first
* Merge remote-tracking branch 'origin/release-4.9' into merge49finalDerrick Anderson2018-04-171-6/+7
|\
| * Prevent disabling or modifying l4g logging filters (#8628)Jesse Hallam2018-04-131-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying l4g library is not resilient to filter modifications in the presence of concurrent goroutines. In particular, it's not safe to call Close() on filters which might be actively held by a goroutine for logging. This change disables all modifications to existing filters once initialized by the App layer. In practice, we might be able to get away with some modifications to the existing filters (i.e. changing levels), but the [golang memory model](https://golang.org/ref/mem) makes no guarantees that it is safe to do so: > Programs that modify data being simultaneously accessed by multiple goroutines must serialize such access. We can solve this holistically by introducing the requisite locking within our fork of the l4g library. For now, we just disable all modifications.
* | Add Auto Responder handler (#8386)Stan Chan2018-04-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WIP Out Of Office Return error for status command if user status is OOO Ignore notifications if Out Of Office Disable AutoResponder if status is set to online Add test for AutoResponder DisableAutoResponse when manually setting status Remove check on status slash command return early if user does not exists in SendAutoResponse method Add proper error handling Add a newline after error handling Revert back to err == nil in api4/status.go Remove a.Go when using a.Publish Add name consistency with the feature auto responder Last changes for name consistency, also fix failing test with auto_responder Fix names of functions in auto responder test Add ExperimentalEnableAutomaticReplies flag Auto Responder reply to a post
* | MM-9849 Added tracking of which settings are set through environment ↵Harrison Healey2018-04-093-39/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | variables (#8586) * MM-9849 Added tracking of which settings are set through environment variables * Removed old version of viper * Added forked version of viper * Fixed unit tests * Fixed more unit tests * Removed copy from App.GetEnvironmentConfig
* | MM-8400 Provide default config values to viper so that it reads all ↵Harrison Healey2018-04-062-41/+150
|/ | | | | | | | environment variables (#8581) * MM-8400 Provide default config values to viper so that it reads all environment variables * Added unit tests
* Comment out problematic mail test (#8579)Joram Wilander2018-04-041-6/+2
|
* Fixing misspell errors (#8544)Jesús Espino2018-03-293-8/+8
|
* Add ExperimentalTimezone flag (#8539)Chris Duarte2018-03-291-0/+1
|
* Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Martin Kraft2018-03-272-16/+23
|\