summaryrefslogtreecommitdiffstats
path: root/web/web.go
Commit message (Collapse)AuthorAgeFilesLines
* MM-11034: Reply properly to incomming webhooks on errors (#9010)Jesús Espino2018-06-261-1/+7
|
* MM-10370: serve subpath (#8968)Jesse Hallam2018-06-211-4/+7
| | | | | | | | | | | | | | | | | | | | | | | * 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.
* Change order of web endpoints (#8817)Elias Nahum2018-05-211-1/+1
|
* Move SAML endpoints out of api package (#8780)Joram Wilander2018-05-141-0/+7
|
* Refactor context out of API packages (#8755)Joram Wilander2018-05-141-63/+28
| | | | | | | | | | | | * 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-271-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 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
* [PLT-7574] Update and Simplify Compatibility Check and Replace UA Dependency ↵Alex Moon2018-03-061-12/+13
| | | | | | | | | | | | | | | | | | (#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
* ABC-132: sign error page parameters (#8197)Chris2018-02-071-1/+1
| | | | | | * sign error page parameters * add comments
* PLT-8289 Added ability to change location of client plugins (#7942)Harrison Healey2017-12-051-1/+1
|
* refactor template code (#7860)Chris2017-11-201-2/+1
|
* Remove more global refs / state (#7723)Chris2017-10-261-5/+5
| | | | | | | | | | * remove more global refs / state * fix job enterprise initialization * fix api4 test compilation * saml api endpoints fix
* remove global refs from api/api4 (#7496)Chris2017-09-221-4/+3
|
* Revert user_agent chanes made for PLT-959 #6945 to fix clients incorrectly ↵Alex Moon2017-09-211-20/+10
| | | | being given incompaibile message (#7497)
* PLT-7622 Improvements to server handling of webapp plugins (#7445)Joram Wilander2017-09-151-3/+23
| | | | | | | | * Improvements to server handling of webapp plugins * Fix newline * Update manifest function names
* Renaming repoChristopher Speller2017-09-061-4/+4
|
* app type transition (#7167)Chris2017-09-061-1/+1
|
* [PLT-959] Browser Compatibility (#6945)Alex Moon2017-09-061-12/+24
| | | | | | | | | | | | | | | | | | | | | | | | * Error page implimentation * Update Browser Compatibility check to check Chrome, FF, IE, Edge, and Safai * Update strings with proper edge version * undo uneeded changes and move to go template. * more unneeded additions * eliminate js and add local triangle * fix typo * Correct debug logging of browser version * Modify Browser Check to pass user_agent object only and write test. * Fix chrome version typo and correct testing change that broke chrome UA chack * simplity browser version detection by using maps instead of string splitting
* PLT-6471 Properly panic when translations can't be loaded (#6414)Harrison Healey2017-05-231-2/+4
| | | | | | | | | | * PLT-6471 Properly panic when translations can't be loaded * Print usage messages when errors occur during CLI initialization * Reverted behaviour of FindDir and added second return value to it * Fixed merge conflict
* PLT-5860 Updated copyright date (#6058)Harrison Healey2017-04-121-1/+1
| | | | | | | | | | | | * PLT-5860 Updated copyright date in about modal * PLT-5860 Updated copyright notice in JSX files * PLT-5860 Updated copyright notice in go files * Fixed misc copyright dates * Fixed component snapshots
* PLT-4938 Add app package and move logic over from api package (#4931)Joram Wilander2017-01-131-1/+2
| | | | | | | | | | * Add app package and move logic over from api package * Change app package functions to return errors * Move non-api tests into app package * Fix merge
* Disabling static directory listing (#4919)Christopher Speller2016-12-311-0/+4
|
* Fixing browser version checking. (#4493)Christopher Speller2016-11-081-1/+3
|
* PLT-4026 Use client dir constant for OAuth Authorization page (#3895)enahum2016-08-301-6/+2
|
* Improving caching of static assets (#3591)Christopher Speller2016-07-151-2/+10
|
* PLT-2057 User as a first class object (#2648)Corey Hulen2016-04-211-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding TeamMember to system * Fixing all unit tests on the backend * Fixing merge conflicts * Fixing merge conflict * Adding javascript unit tests * Adding client side unit test * Cleaning up the clint side tests * Fixing msg * Adding more client side unit tests * Adding more using tests * Adding last bit of client side unit tests and adding make cmd * Fixing bad merge * Fixing libraries * Updating to new client side API * Fixing borken unit test * Fixing unit tests * ugg...trying to beat gofmt * ugg...trying to beat gofmt * Cleaning up remainder of the server side routes * Adding inital load api * Increased coverage of webhook unit tests (#2660) * Adding loading ... to root html * Fixing bad merge * Removing explicit content type so superagent will guess corectly (#2685) * Fixing merge and unit tests * Adding create team UI * Fixing signup flows * Adding LDAP unit tests and enterprise unit test helper (#2702) * Add the ability to reset MFA from the commandline (#2706) * Fixing compliance unit tests * Fixing client side tests * Adding open server to system console * Moving websocket connection * Fixing unit test * Fixing unit tests * Fixing unit tests * Adding nickname and more LDAP unit tests (#2717) * Adding join open teams * Cleaning up all TODOs in the code * Fixing web sockets * Removing unused webockets file * PLT-2533 Add the ability to reset a user's MFA from the system console (#2715) * Add the ability to reset a user's MFA from the system console * Add client side unit test for adminResetMfa * Reorganizing authentication to fix LDAP error message (#2723) * Fixing failing unit test * Initial upgrade db code * Adding upgrade script * Fixing upgrade script after running on core * Update OAuth and Claim routes to work with user model changes (#2739) * Fixing perminant deletion. Adding ability to delete all user and the entire database (#2740) * Fixing team invite ldap login call (#2741) * Fixing bluebar and some img stuff * Fix all the different file upload web utils (#2743) * Fixing invalid session redirect (#2744) * Redirect on bad channel name (#2746) * Fixing a bunch of issue and removing dead code * Patch to fix error message on leave channel (#2747) * Setting EnableOpenServer to false by default * Fixing config * Fixing upgrade * Fixing reported bugs * Bug fixes for PLT-2057 * PLT-2563 Redo password recovery to use a database table (#2745) * Redo password recovery to use a database table * Update reset password audits * Split out admin and user reset password APIs to be separate * Delete password recovery when user is permanently deleted * Consolidate password resetting into a single function * Removed private channels as an option for outgoing webhooks (#2752) * PLT-2577/PLT-2552 Fixes for backstage (#2753) * Added URL to incoming webhook list * Fixed client functions for adding/removing integrations * Disallowed slash commands without trigger words * Fixed clientside handling of errors on AddCommand page * Minor auth cleanup (#2758) * Changed EditPostModal to just close if you save without making any changes (#2759) * Renamed client -> Client in async_client.jsx and fixed eslint warnings (#2756) * Fixed url in channel info modal (#2755) * Fixing reported issues * Moving to version 3 of the apis * Fixing command unit tests (#2760) * Adding team admins * Fixing DM issue * Fixing eslint error * Properly set EditPostModal's originalText state in all cases (#2762) * Update client config check to assume features is defined if server is licensed (#2772) * Fixing url link * Fixing issue with websocket crashing when sending messages to different teams
* Webpack optimizations and fixesChristopher Speller2016-03-171-4/+12
|
* Converting to Webpack. Stage 1.Christopher Speller2016-03-161-9/+7
|
* Convering client to react-router.Christopher Speller2016-03-141-1150/+8
|
* Localizing back button=Corey Hulen2016-02-221-0/+1
|
* PLT-7: Refactoring frontend (chunk 6)Elias Nahum2016-01-291-0/+5
| | | | | | - Authorize - Signup Team Confirm - Footer
* Fix docs route to include the user localeElias Nahum2016-01-281-0/+9
| | | | - Move Messaging_{locale}.md files to static/help
* PLT-7: Refactoring frontend (chunk 4)Elias Nahum2016-01-281-0/+1
|
* Changed first preference load to be done synchronouslyhmhealey2016-01-261-0/+9
|
* PLT-7: Refactoring entry point and web to use translations (chunk 8)Elias Nahum2016-01-251-66/+66
| | | | - Add spanish translations
* PLT-7: Refactoring api to use translations (chunk 4)Elias Nahum2016-01-241-2/+2
| | | | - Translation for api templates english and spanish
* PLT-7 fixing dist build=Corey Hulen2016-01-211-0/+1
|
* PLT-7 client side infra=Corey Hulen2016-01-211-17/+17
|
* PLT-7 Adding react-intl libs=Corey Hulen2016-01-211-1/+8
|
* Revert " PLT-7 adding loc for db calls"Corey Hulen2016-01-201-49/+48
|
* PLT-7 adding loc db calls for users table=Corey Hulen2016-01-201-8/+8
|
* PLT-7 adding loc db calls for posts table=Corey Hulen2016-01-201-1/+1
|
* PLT-7 adding loc db calls for session table=Corey Hulen2016-01-201-3/+3
|
* PLT-7 adding loc db calls for oauth table=Corey Hulen2016-01-201-10/+10
|
* PLT-7 adding loc db calls for oauth table=Corey Hulen2016-01-201-6/+6
|
* PLT-7 adding loc db calls for webhooks table=Corey Hulen2016-01-201-1/+1
|
* PLT-7 adding loc db calls for team table=Corey Hulen2016-01-201-13/+13
|
* PLT-7 adding loc for db calls audits and prefs=Corey Hulen2016-01-201-6/+7
|
* Added license validation and settingsJoramWilander2016-01-141-1/+1
|
* Merge pull request #1876 from mattermost/release-1.4Corey Hulen2016-01-121-1/+3
|\ | | | | Release 1.4 RC2