mattermost/app
Claudio Costa 9c272f0b20
[MM-26812] Add support for resumable file uploads (#15252)
* Implement AppendFile for FileBackend

* Split test into subtests

* [MM-26812] Add support for resumable file uploads (#15252)

* Implement UploadSession

* Implement UploadSessionStore

* Add error strings

* Implement resumable file uploads

* Add UploadType

* Fix retry layer tests

* Regenerate store layers

* Fix store error handling

* Use base for filename

* Prevent concurrent uploads on the same upload session

* Fix erroneus error string

* Improve error handling

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>

* Fix translations

Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
2020-09-15 21:28:25 +02:00
..
layer_generators MM-26834 - Move opentracing into a separate package (#15011) 2020-07-15 12:59:11 +03:00
opentracing [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
plugin_api_tests [MM-16473] Make plugins' ServerHTTP http.ResponseWriter hijackable (#14822) 2020-06-26 10:51:23 +02:00
slashcommands ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
admin.go MM-27744 disable Zap for unit tests. (#15398) 2020-09-09 15:25:55 -04:00
analytics.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
app.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
app_iface.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
app_test.go [MM-27274] Add permission to convert public channel to private (#15370) 2020-09-03 13:41:07 -04:00
audit.go MM-22786 enterprise metrics for logging (#15313) 2020-09-01 10:29:29 -04:00
authentication.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
authentication_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
authorization.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
authorization_test.go MM-27572 permissions regression (#15215) 2020-08-10 12:50:16 -07:00
auto_responder.go MM-22706: pass along set_online flag in websocket response (#14591) 2020-05-27 17:35:02 +05:30
auto_responder_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
bot.go Add metric warning support (announcement bar and DM) (#14483) 2020-07-22 20:32:21 -07:00
bot_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
brand.go MM-20934: Fixing int overflow in 32 bits on MaxImageSize check (#14280) 2020-04-16 15:23:27 +02:00
busy.go MM-8607: Add ability to turn off non-critical services when under load; cluster support (#13267) 2019-12-03 18:56:39 +01:00
busy_test.go MM-25404: Add GetHealthScore metric for the cluster (#14767) 2020-06-24 18:46:33 +05:30
channel.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
channel_category.go Move channel category code into its own files (#15319) 2020-08-21 15:07:55 -04:00
channel_category_test.go Move channel category code into its own files (#15319) 2020-08-21 15:07:55 -04:00
channel_test.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
cluster.go MM-25154: Fix data race in InvokeClusterLeaderChangedListener (#14610) 2020-05-22 23:52:25 +05:30
cluster_discovery.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
cluster_discovery_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
cluster_handlers.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
command.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
command_autocomplete.go MM-26339 - Add context and CommandArgs to dynamic autocomplete calls (#14940) 2020-07-02 08:08:58 -07:00
command_autocomplete_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
compliance.go MM-25478: Migrate compliancestore to plain error (#15074) 2020-07-27 15:23:02 +05:30
config.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
config_test.go Adding Upgrade to Enterprise version feature (#14539) 2020-08-21 20:23:04 +02:00
constants.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
data_retention.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
download.go Retry on failed download of plugins from marketplace. (#14176) 2020-05-13 08:36:43 +05:30
download_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
email.go MM-27507: Propagate rate limit errors to client (#15230) 2020-08-13 22:19:05 +05:30
email_batching.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
email_batching_test.go preferencestore (#15018) 2020-07-28 10:27:24 +05:30
email_test.go MM-27507: Propagate rate limit errors to client (#15230) 2020-08-13 22:19:05 +05:30
emoji.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
enterprise.go MM-27199 - Add metrics to MM server for total enabled user count (#15116) 2020-09-07 09:26:25 -04:00
enterprise_test.go Adding Upgrade to Enterprise version feature (#14539) 2020-08-21 20:23:04 +02:00
expirynotify.go SessionStore migration (#15002) 2020-07-15 18:56:28 +05:30
expirynotify_test.go MM-25394 session expired push notifications (#14732) 2020-06-17 14:47:54 -04:00
export.go preferencestore (#15018) 2020-07-28 10:27:24 +05:30
export_converters.go add support for exporting and importing props (#14034) 2020-03-23 09:21:05 -04:00
export_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
extract_plugin_tar.go MM-21915: improve tar gz path traversal (#13675) 2020-01-27 11:33:11 -05:00
extract_plugin_tar_test.go MM-21915: improve tar gz path traversal (#13675) 2020-01-27 11:33:11 -05:00
file.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
file_bench_test.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
file_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
group.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
group_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
helper_test.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
import.go [MM-25714] Keeps track of the import lines of the posts while importing to report the right line on error (#14752) 2020-06-08 12:12:07 +02:00
import_functions.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
import_functions_test.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
import_test.go add support for exporting and importing props (#14034) 2020-03-23 09:21:05 -04:00
import_types.go add support for exporting and importing props (#14034) 2020-03-23 09:21:05 -04:00
import_validators.go MM-25543: New Admin Roles (#14960) 2020-08-21 16:49:31 -04:00
import_validators_test.go [MM-25713] Adds props check to post import validator (#14728) 2020-06-08 21:20:40 +02:00
integration_action.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
integration_action_test.go First part of PostStore migration (#15123) 2020-08-12 13:35:57 -04:00
job.go jobstore (#15250) 2020-08-20 19:37:19 +05:30
job_test.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
ldap.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
license.go SystemStore migration to return plain errors (#14835) 2020-08-13 20:32:57 +05:30
license_test.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
login.go Implement LDAP Certificate (#15361) 2020-09-14 12:53:42 -06:00
login_test.go [MM-28083] CWS one-time login logic (#15356) 2020-09-01 08:50:43 -04:00
main_test.go MM-27744 disable Zap for unit tests. (#15398) 2020-09-09 15:25:55 -04:00
migrations.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
notification.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
notification_email.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
notification_email_test.go app/notification_email_test: attempt to fix a flaky test (#15080) 2020-07-31 15:25:26 +02:00
notification_push.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
notification_push_test.go Adding Upgrade to Enterprise version feature (#14539) 2020-08-21 20:23:04 +02:00
notification_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
oauth.go MM-27184 deprecate model.SetExpireInDays (#15165) 2020-08-04 16:10:37 -04:00
oauth_test.go MM-27184 deprecate model.SetExpireInDays (#15165) 2020-08-04 16:10:37 -04:00
opengraph.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
opengraph_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
options.go MM-26836: Remove some app fields which cause race conditions (#15019) 2020-08-04 09:16:20 +05:30
permissions.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
permissions_migrations.go [MM-27274] Add permission to convert public channel to private (#15370) 2020-09-03 13:41:07 -04:00
permissions_migrations_test.go [MM-23019] Create use_group_mentions permission and migrate existing roles (#13987) 2020-03-30 23:08:48 -04:00
permissions_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
plugin.go MM-27570,MM-27757 - Activate/Deactivate plugins concurrently (#15244) 2020-08-27 10:22:20 -03:00
plugin_api.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
plugin_api_test.go MM-26057 - Add CreateCommand plugin API (#14916) 2020-07-31 17:40:15 +02:00
plugin_commands.go Moving slash-commands out of app package (#14979) 2020-08-12 18:29:58 +02:00
plugin_commands_test.go Mm 16292 support command overrides (#14951) 2020-07-02 13:28:21 -07:00
plugin_context.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
plugin_deadlock_test.go [MM-21378] Add mutex to model.Post to guard against race conditions on Post.Props (#13884) 2020-03-13 21:12:20 +01:00
plugin_event.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
plugin_health_check_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
plugin_hooks_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
plugin_install.go MM-21915: improve tar gz path traversal (#13675) 2020-01-27 11:33:11 -05:00
plugin_install_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
plugin_key_value_store.go Pluginstore migration (#14971) 2020-08-13 01:35:57 -04:00
plugin_public_keys.go [MM-20309] production public key (#13244) 2019-12-05 23:41:52 +04:00
plugin_requests.go Log URL for requests to non-existing plugins (#15229) 2020-08-12 11:00:53 -04:00
plugin_shutdown_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
plugin_signature.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
plugin_signature_test.go Adding Upgrade to Enterprise version feature (#14539) 2020-08-21 20:23:04 +02:00
plugin_statuses.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
plugin_test.go MM-27570,MM-27757 - Activate/Deactivate plugins concurrently (#15244) 2020-08-27 10:22:20 -03:00
post.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
post_metadata.go move cache2 package to cache (#14921) 2020-07-18 13:31:06 +05:30
post_metadata_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
post_test.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
preference.go preferencestore (#15018) 2020-07-28 10:27:24 +05:30
ratelimit.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
ratelimit_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
reaction.go MM-26031: Migrate reaction store to plain errors (#14931) 2020-07-02 09:43:28 +05:30
response_transfer.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
role.go RoleStore migration (#15017) 2020-08-04 16:37:21 +02:00
role_test.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
saml.go MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840) 2020-02-13 13:26:58 +01:00
scheme.go Migration of SchemeStore to return plain errors (#14836) 2020-06-23 06:56:35 +02:00
searchengine.go [MM-20979] Add first implementation of the Bleve search engine (#14562) 2020-05-20 01:29:55 +02:00
security_update_check.go Moving diagnostics into a service (#14832) 2020-09-08 20:30:54 +02:00
server.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
server_license.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
server_test.go MM-27744 disable Zap for unit tests. (#15398) 2020-09-09 15:25:55 -04:00
session.go MM-27916: Improve logging when session is not found (#15292) 2020-08-21 21:07:07 +05:30
session_test.go [MM-27623] Add new session prop for oauth (#15221) 2020-08-11 10:24:26 -04:00
slack.go Moving slack importer into a service (#14860) 2020-08-12 18:29:36 +02:00
slack_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
status.go StatusStore migration (#14978) 2020-08-13 11:12:08 +05:30
status_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
svg.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
svg_test.go Consistent license message for all the go files (#13235) 2019-11-29 12:59:40 +01:00
syncables.go [MM-25568] LDAP Sync skip users and log when they dont match the restricted email of a team or channel (#14895) 2020-06-29 10:42:03 -04:00
syncables_test.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
team.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
team_test.go MM-27187: Use the correct page offset for cache clear methods (#15094) 2020-07-23 19:55:16 +05:30
terms_of_service.go Migration of AuditStore to return plain errors (#14825) 2020-06-26 06:26:35 +02:00
upload.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
upload_test.go [MM-26812] Add support for resumable file uploads (#15252) 2020-09-15 21:28:25 +02:00
user.go ChannelStore migration Part 2 (#15405) 2020-09-15 23:18:30 +05:30
user_agent.go [MM-22167] Add mmctl to the User-Agent parser (#13894) 2020-03-19 11:18:17 +01:00
user_agent_test.go [MM-22167] Add mmctl to the User-Agent parser (#13894) 2020-03-19 11:18:17 +01:00
user_terms_of_service.go Migration of UserTermsOfServiceStore to return plain errors (#14788) 2020-06-19 17:49:30 +05:30
user_terms_of_service_test.go Migration of UserTermsOfServiceStore to return plain errors (#14788) 2020-06-19 17:49:30 +05:30
user_test.go Migration of TeamStore Part 1 (#15246) 2020-09-03 00:29:57 -04:00
user_viewmembers_test.go [MM-21517] Team Member Manage User Modal not display correct roles (#14043) 2020-03-30 10:48:03 -04:00
web_conn.go Removing all FakeApp usages (#14174) 2020-06-12 13:43:50 +02:00
web_conn_test.go MM-23805: Refactor web_hub (#14277) 2020-04-23 13:16:18 +05:30
web_hub.go MM-24972: make GetHubForUserId lock-less and zero-alloc (#14945) 2020-07-07 11:23:45 +05:30
web_hub_test.go Adding Upgrade to Enterprise version feature (#14539) 2020-08-21 20:23:04 +02:00
webhook.go WebhookStore migration (#15042) 2020-07-31 15:53:10 +02:00
webhook_test.go MM-26750: Remove instances of InitBasic when it's not required (#14984) 2020-07-13 19:34:05 +02:00
webhub_fuzz.go MM-22782: Write fuzz testing for websockets (#14203) 2020-04-07 14:41:55 +05:30
websocket_router.go MM-26575: Move app initialization inside Websocket router out of handler (#14991) 2020-08-12 22:10:19 +05:30