summaryrefslogtreecommitdiffstats
path: root/web
Commit message (Collapse)AuthorAgeFilesLines
* Fix handlers test. (#9682)Christopher Speller2018-10-171-3/+2
|
* Set default ciphers, set tls 1.2 via config, set curve prefs (#9315)Daniel Schalla2018-10-162-2/+53
| | | | | | | | | | | | | | | | | Config Checks at StartUp Part1 Config Checks; Tests for TLS Server HSTS header implementation + tests make gofmt happy with new go version... make gofmt happy with new go version #2... fix logic bug fix typo Fix unnecessary code block
* fix gofmt for go 1.11 (#9516)Carlos Tadeu Panato Junior2018-10-011-1/+2
| | | | | | | | * fix gofmt for go 1.11 * fix test * comment out one test
* ensure subpath redirect preserves query string correctly (#9444)Jesse Hallam2018-09-271-1/+2
| | | | The previous code appended a `/` to the end of the URL, breaking if a query string was present.
* #MM-12130 changes for custom service terms (#9450)Harshil Sharma2018-09-261-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * #MM-12130 changes for custom service terms * Fixed styling * Added getServiceTerms API * removed unnecessary panic * removed custom service terms text from flat config * reverted user sql store as those changes are no longer needed * added tests * Updated a config key to be more standard * Added copyright info * Loading service terms only if the feature is enabled * Loading service terms only if the feature is enabled * removed unused index * added createservice termns API * made a param to bool instead of string * added createservice termns API * review fixes * fixed styling * Minor refactoring * removed saveConfig and loadConfig magic * added empty service terms text check to createServiceTerms API * refactoed some urls to be terms_of_service instead of service_terms * removed check for support settings * changed URLs in tests * removed unused code * fixed a bug * added service termd id in conif * fixed a test * review fixes * minor fixes * Fixed TestCreateServiceTerms
* Include webhook ID in debug log (#9439)Joram Wilander2018-09-241-1/+1
|
* MM-11420: plugins: compute bundle hash on load (#9172)Jesse Hallam2018-07-311-18/+3
| | | | | | | | | | | | * plugins: compute bundle hash on load Use this hash to bust client caches whenever the plugin bundle changes. * eliminate redundant pluginHandler * switch to 64-bit FNV-1a * Fix test
* Adding support for code split plugins. (#9184)Christopher Speller2018-07-311-0/+3
|
* Support for Embeded chat (#9129)Chris Duarte2018-07-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ucLive support crazy testing lovely logs more cookie work arounds Added Access-Control-Expose-Headers to user login Add complete_saml_body template and revert loginWithSaml endpoint Set Access-Control-Allow-Credentials to true in user login Login via email instead of username Clean up code Add comment to give some context Move faml logic into saml function Communicate via chrome sendMessage api Remove unused code Add config to support multiple extensions Clean up embedded complete_saml template Fix indentation for templates Added license header to extension.go Add EnableExperimentalExtensions flag Extension validated for email auth Clean up api auth code Remove complete_saml_body.html * Add extension support in saml * Clean up code * Clean up extension validation
* Merge remote-tracking branch 'upstream/release-5.1' into ↵cpanato2018-07-122-3/+4
|\ | | | | | | release-5.1-daily-merge-20180712
| * MM-11241: fix context site url header (#9079)Jesse Hallam2018-07-112-3/+4
| | | | | | | | | | | | | | | | | | * fix context's SiteURLHeader to use the subpath This fixes various commands such as /open and /groupmsg, as well as OAuth related redirects. * MM-11246: also leverage GetSiteHeader() in completeSaml
* | Merge branch 'master' into plugins-2JoramWilander2018-07-072-11/+33
|\|
| * MM-11106: Allow systeadmin webook to post to read only town square. (#9051)George Goldberg2018-07-062-11/+33
| |
* | MM-10703 Adding blank request context to plugin hooks for future use. (#9043)Christopher Speller2018-07-061-0/+9
|/ | | | | | | | | | * Adding blank request context to plugin hooks for future use. * Rename RequestContext to Context * Adding context to ServeHTTP and ExecuteCommand * Fixing import cycle in test.
* MM-11034: Reply properly to incomming webhooks on errors (#9010)Jesús Espino2018-06-262-2/+8
|
* Fix plugins serving after subpath changes (#8982)Joram Wilander2018-06-221-1/+1
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-217-259/+26
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Merge remote-tracking branch 'upstream/release-5.0' into ↵cpanato2018-06-142-2/+64
|\ | | | | | | release-5.0-merge-to-master-20180614-1
| * MM-10863: Handle non-API errors with redirect to webapp (#8943)Jesús Espino2018-06-142-2/+64
| | | | | | | | | | | | * MM-10863: Handle non-API errors with redirect to webapp * Properly shutdown the app in the new test
* | MM-10367: rewrite subpath assets on startup (#8944)Jesse Hallam2018-06-144-0/+250
|/ | | | | | | | | Examine ServiceSettings.SiteURL on startup and rewrite assets accordingly if not in a development environment. Also export `mattermost config subpath` command to manually do same. This accompanies a webapp PR to use the updated `root.html` to define the necessary webpack asset path for dynamically loading assets.
* MM-10348 Adding experimental hardened mode. (#8881)Christopher Speller2018-06-041-0/+10
| | | | | | * Adding experimental hardened mode. * Sanitizing all 500 errors.
* Adding mlog to context. (#8882)Christopher Speller2018-06-012-9/+29
|
* MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions (#8860)Jesús Espino2018-05-291-0/+1
| | | | | | | | | | | | | | | | * MM-8853: Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS permissions * MM-8853: Removing unnecesary emoji enterprise feature * Create emojis migration * Adding MANAGE_EMOJIS and MANAGE_OTHERS_EMOJIS always to system admins * Simplifing permissions checks * Revert "Simplifing permissions checks" This reverts commit e2cafc1905fc9e20125dd9a1552d2d0c7340ae59.
* Merge branch 'master' into advanced-permissions-phase-2Martin Kraft2018-05-221-0/+23
|\
| * MM-10352: Add locking incoming webhooks to a single channel. (#8835)George Goldberg2018-05-221-0/+23
| |
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-222-2/+2
|\|
| * Change order of web endpoints (#8817)Elias Nahum2018-05-211-1/+1
| |
| * Add config setting for API team deletion (#8800)Joram Wilander2018-05-181-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-172-37/+53
|\|
| * MM-8708 Remove api package (#8784)Joram Wilander2018-05-162-37/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-161-4/+8
|\|
| * Merge remote-tracking branch 'origin/release-4.10' into merge410rc5Derrick Anderson2018-05-151-4/+8
| |\
* | | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-2Martin Kraft2018-05-1510-128/+1521
|\| | | |/ |/|
| * Move SAML endpoints out of api package (#8780)Joram Wilander2018-05-142-0/+156
| |
| * Refactor context out of API packages (#8755)Joram Wilander2018-05-149-129/+1347
|/ | | | | | | | | | | | * Refactor context out of API packages * Update function names per feedback * Move webhook handlers to web and fix web tests * Move more webhook tests out of api package * Fix static handler
* Structured logging (#8673)Christopher Speller2018-04-272-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* Added additional unit tests for IE11 and compatibility mode (#8573)Harrison Healey2018-04-091-1/+4
|
* Merge branch 'master' into advanced-permissions-phase-1Martin Kraft2018-03-231-1/+2
|\
| * Fix various segfaults when running `go test` manually (#8448)Jesse Hallam2018-03-211-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * failing to find i18n shouldn't segfault The server was trying to handle the fact that it couldn't find the i18n directory, by emitting a translated log message... * fix utils.FindDir The attempts to find the directory in the parent or grandparent directory don't work if the current working directory was inside `enterprise`, with `enterprise` itself being a symlink as per the usual developer setup. Recurse to the root of the filesystem, cleaning the path along the way to work around this limitation (and allow tests to be run from an arbitrarily deep nesting level.) Fix corresponding usages to employ filepath.Join. * failing to find html templates shouldn't segfault * fail fast if the test user cannot be created * rework utils.FindDir to retain backwards compatibility
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-132-12/+44
|\|
| * Removed mssola/user_agent library (#8417)Harrison Healey2018-03-121-5/+5
| | | | | | | | | | | | * Removed mssola/user_agent library * Changed user agent tests to use t.Run
| * [PLT-7574] Update and Simplify Compatibility Check and Replace UA Dependency ↵Alex Moon2018-03-062-12/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#7427) * Add fix to not run browser check on Mobile Browsers or the App * remove non safari and IE checks * Replace useragent checking dependency and update UA tests * change some wording * change dependancy again to one with compatible licence * Fix typos and clarify wording * fix typo and comvert tests to use array
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-03-021-0/+1
|\|
| * MM-8593 Default APIv3 to disabled for new installs (#8353)Joram Wilander2018-02-231-0/+1
| | | | | | | | | | | | | | | | * Default APIv3 to disabled for new installs * Add EnableAPIv3 setting to client config * Enable APIv3 for needed tests
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-191-0/+6
|\|
| * [PLT-539] Update incoming webhooks to accept multipart/form-data content (#7873)Carlos Tadeu Panato Junior2018-02-161-0/+6
| |
* | Merge branch 'master' into advanced-permissions-phase-1George Goldberg2018-02-131-1/+1
|\|
| * ABC-132: sign error page parameters (#8197)Chris2018-02-071-1/+1
| | | | | | | | | | | | * sign error page parameters * add comments
* | Merge remote-tracking branch 'origin/master' into advanced-permissions-phase-1Jesús Espino2018-02-071-1/+4
|\|
| * Abort on critical error during server startup (#8204)Pierre de La Morinerie2018-02-071-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.