summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Move file backend to its own service (#9435)Jesús Espino2018-09-208-1576/+0
| | | | | | * Move file backend to its own service * Moving utils/inbucket to mailservice package
* Merge release-5.3Carlos Tadeu Panato Junior2018-09-121-1/+7
|\
| * fix s3 memory usage (#9373)Jesse Haka2018-09-101-1/+7
| |
* | Merge remote-tracking branch 'upstream/release-5.3' into ↵cpanato2018-09-042-22/+133
|\| | | | | | | release-5.3-daily-merge-20180904
| * MM-11720: disable loading plugin specific config from the environment (#9334)Jesse Hallam2018-09-032-22/+133
| | | | | | There are numerous issues here, including some non-determinism in the viper library (fixable) and some annoying behaviour regarding periods in keys, often used by plugin ids (fix unknown). Let's defer the handling of same until we can get our config loading library to do what we need it to do vs. having to hack around viper all the time.
* | Merge release-5.3Carlos Tadeu Panato Junior2018-09-031-1/+1
|\|
| * MM-11693 Allow connections to /plugins for interactive message buttons. (#9333)Christopher Speller2018-09-021-1/+1
| | | | | | | | | | | | | | | | * Allow connetions to /plugins for interactive message buttons. * Adding siteurl to exclusions for AllowedUntrustedInternalConnections * Adding subpath support for allowing interactive message buttons plugin connections.
* | add megacheck as makefile target (#9288)Daniel Schalla2018-09-034-24/+13
|/ | | | | | | | | | | | | | | | | | | | | | | | | Fix code issues in channel_test.go Fix Channel Test Issues detected by Megacheck Fix API Emoji Test Issues detected by Megacheck Fixed API Issues Reported by Megacheck Fixed App issues reported by megacheck Remaining fixes removed test added by mistake from old HEAD gofmt Store Fixes simplified returns Fix test for multi member channel delete revert to delete unused function
* If no origin header is set for WebSocket, do not fail upgrade (#9287)Joram Wilander2018-08-241-0/+4
|
* Merge release-5.2Carlos Tadeu Panato Junior2018-08-241-1/+1
|\
| * MM-11782: Make archived channels experimental and off-by-default. (#9281)George Goldberg2018-08-221-1/+1
| | | | | | | | | | | | * MM-11782: Make archived channels experimental and off-by-default. * Fix test.
* | Merge remote-tracking branch 'upstream/release-5.2' into ↵cpanato2018-08-102-6/+73
|\| | | | | | | release-5.2-daily-merge-20180810
| * MM-11382 Remove special handling of PluginSettings when loading config (#9234)Harrison Healey2018-08-102-6/+73
| | | | | | | | | | | | | | | | * MM-11382 Only override PluginSettings from environment when necessary * MM-11382 Remove special handling of PluginSettings when loading config * Add extra unit test
* | Update serverside markdown parser to respect unicode and capitalized links ↵Harrison Healey2018-08-085-78/+173
|/ | | | (#9235)
* MM-11175 Add logic to server to understand markdown images with dimensions ↵Harrison Healey2018-08-014-8/+314
| | | | (#9159)
* Pr 9039 (#9187)Martin Kraft2018-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * MM-11065: Allow to search and get archived channels from the API * Fixing more tests * Add some unit tests * Add includeDeleted parameter to session permissions check function * More test fixing * Adding archive channels list in channels search * Add restriction for archived channel edition * Reverting permissions checks modification * Changed the query parameter to include_deleted * Enable search archive channels as true by default * Adding tests for verify search on deleted channels * Allowing to override archive channels during the imports * Fixed test * Search in archive channels from the API must be explicitly requested * Removing includeDeleted parameter from GetChannelByName and GetChannelByNameForTeam * Back to ViewArchivedChannels config * Fixing tests * Reverting GetChannelByName parameter * Add include deleted parameter on GetChannel functions in plugins api * Fixing tests
* Fix file streaming to close files. (#9168)Christopher Speller2018-07-261-0/+1
|
* MM-11451 Added autolinking to Markdown parser (#9151)Harrison Healey2018-07-246-1/+1002
| | | | | | | | * MM-11451 Added autolinking to Markdown parser * Added missing headers * Added mailto and tel links
* Add ExperimentalSidebarPreference in the config (#9013)Chris Duarte2018-07-231-0/+7
| | | | | | | | | | | | * Add ExperimentalSidebarPreference in the config * Override Sidebar preference based on GroupUnread settings * Rename to ExperimentalChannelOrganization * Add Sidebar config in diagnostics * Fix diagnostics for experimental_channel_organization
* Break HTML blocks to individual strings (#8903)Yusuke Nemoto2018-07-202-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Modifying message and templates about mfa_change * Modifying message and templates about password_change * Modify message and template about password_reset * Modify message and template about singin_change * Modify message and template about email_info * Modify message and template about change_username * Modify message about change_email * Add missing props * Add argument * Modify message and template about token_added * Modify messages and template about notification_email * Modify message and template about deactivate_email * Fix style * Remove unused message * Remove br tags * Modify message and code about invite_mail * Add missing message
* Fix invalid markdown text ranges (#9126)Adrian2018-07-182-5/+10
| | | second Range value is the end pos, not the length... :see_no_evil:
* Merge consecutive text nodes when inspecting markdown (#9112)Adrian2018-07-163-23/+57
| | | | | | | | | | | | | * Fix assertion order expected/actual were in wrong order, resulting in misleading output in case of failing tests * Merge consesutive markdown text nodes This ensures that parser quirks such as "hello!" being parsed as two separate nodes ("hello" and "!") are not exposed to code inspecting a markdown strings.
* Expose range information for markdown text nodes [WIP] (#9067)Adrian2018-07-112-14/+147
| | | | | | * Track positions of markdown text * Add tests for markdown text ranges
* MM-11120 Adding setting to disable email invitations and rate limiting. (#9063)Christopher Speller2018-07-101-0/+2
| | | | | | | | | | * Adding setting to disable email invitations. * Adding a setting and rate limiting for email invite sending. * Modifying email rate limit to 20/user/hour * Adding EnableEmailInvitations to client side config and command.
* 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