diff --git a/commands/version.go b/commands/version.go index 6d9f01819..e6ca5f205 100644 --- a/commands/version.go +++ b/commands/version.go @@ -11,7 +11,7 @@ import ( var ( BuildHash = "dev mode" - Version = "6.2.1" + Version = "6.2.2" ) var VersionCmd = &cobra.Command{ diff --git a/go.mod b/go.mod index 3b80ce803..02861eca7 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/magefile/mage v1.11.0 github.com/mattermost/gosaml2 v0.3.3 github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d - github.com/mattermost/mattermost-server/v6 v6.2.0 + github.com/mattermost/mattermost-server/v6 v6.2.2-0.20211217224034-b97dd503c1d4 github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.11.0 diff --git a/go.sum b/go.sum index 8e5bb8f59..fd0aa108b 100644 --- a/go.sum +++ b/go.sum @@ -781,8 +781,8 @@ github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d h1:/RJ/UV7M5c7L2TQ github.com/mattermost/ldap v0.0.0-20201202150706-ee0e6284187d/go.mod h1:HLbgMEI5K131jpxGazJ97AxfPDt31osq36YS1oxFQPQ= github.com/mattermost/logr/v2 v2.0.15 h1:+WNbGcsc3dBao65eXlceB6dTILNJRIrvubnsTl3zBew= github.com/mattermost/logr/v2 v2.0.15/go.mod h1:mpPp935r5dIkFDo2y9Q87cQWhFR/4xXpNh0k/y8Hmwg= -github.com/mattermost/mattermost-server/v6 v6.2.0 h1:jzEMZtX/VDZGSGxJctBX3DGKV/hAZZKeiqg5IqcCIs0= -github.com/mattermost/mattermost-server/v6 v6.2.0/go.mod h1:VH26NcOr3xgkSBAvh4q+9+RoBD/M9gYO2F1PISq9KMw= +github.com/mattermost/mattermost-server/v6 v6.2.2-0.20211217224034-b97dd503c1d4 h1:kmVqPzweS9+G0+xvlbI6udl5gav0YjfLoqkkHCoWXKQ= +github.com/mattermost/mattermost-server/v6 v6.2.2-0.20211217224034-b97dd503c1d4/go.mod h1:VH26NcOr3xgkSBAvh4q+9+RoBD/M9gYO2F1PISq9KMw= github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0 h1:G9tL6JXRBMzjuD1kkBtcnd42kUiT6QDwxfFYu7adM6o= github.com/mattermost/rsc v0.0.0-20160330161541-bbaefb05eaa0/go.mod h1:nV5bfVpT//+B1RPD2JvRnxbkLmJEYXmRaaVl15fsXjs= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= diff --git a/vendor/github.com/mattermost/mattermost-server/v6/app/file.go b/vendor/github.com/mattermost/mattermost-server/v6/app/file.go index 264342445..75b538d20 100644 --- a/vendor/github.com/mattermost/mattermost-server/v6/app/file.go +++ b/vendor/github.com/mattermost/mattermost-server/v6/app/file.go @@ -11,7 +11,6 @@ import ( "encoding/base64" "fmt" "image" - "image/gif" "io" "mime/multipart" "net/http" @@ -830,13 +829,11 @@ func (t *UploadFileTask) preprocessImage() *model.AppError { // For animated GIFs disable the preview; since we have to Decode gifs // anyway, cache the decoded image for later. if t.fileinfo.MimeType == "image/gif" { - gifConfig, err := gif.DecodeAll(io.MultiReader(bytes.NewReader(t.buf.Bytes()), t.teeInput)) - if err == nil { - if len(gifConfig.Image) > 0 { - t.fileinfo.HasPreviewImage = false - t.decoded = gifConfig.Image[0] - t.imageType = "gif" - } + image, format, err := t.imgDecoder.Decode(io.MultiReader(bytes.NewReader(t.buf.Bytes()), t.teeInput)) + if err == nil && image != nil { + t.fileinfo.HasPreviewImage = false + t.decoded = image + t.imageType = format } } diff --git a/vendor/github.com/mattermost/mattermost-server/v6/app/plugin.go b/vendor/github.com/mattermost/mattermost-server/v6/app/plugin.go index e772fb80c..d7d96c561 100644 --- a/vendor/github.com/mattermost/mattermost-server/v6/app/plugin.go +++ b/vendor/github.com/mattermost/mattermost-server/v6/app/plugin.go @@ -176,7 +176,9 @@ func (ch *Channels) initPlugins(c *request.Context, pluginDir, webappPluginDir s ch.pluginsLock.RUnlock() if pluginsEnvironment != nil || !*ch.srv.Config().PluginSettings.Enable { ch.syncPluginsActiveState() - pluginsEnvironment.TogglePluginHealthCheckJob(*ch.srv.Config().PluginSettings.EnableHealthCheck) + if pluginsEnvironment != nil { + pluginsEnvironment.TogglePluginHealthCheckJob(*ch.srv.Config().PluginSettings.EnableHealthCheck) + } return } diff --git a/vendor/github.com/mattermost/mattermost-server/v6/model/version.go b/vendor/github.com/mattermost/mattermost-server/v6/model/version.go index 2a5fd6634..5ab4b7915 100644 --- a/vendor/github.com/mattermost/mattermost-server/v6/model/version.go +++ b/vendor/github.com/mattermost/mattermost-server/v6/model/version.go @@ -13,6 +13,8 @@ import ( // It should be maintained in chronological order with most current // release at the front of the list. var versions = []string{ + "6.2.2", + "6.2.1", "6.2.0", "6.1.0", "6.0.0", diff --git a/vendor/modules.txt b/vendor/modules.txt index f490b2d9f..bffc5901a 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -370,7 +370,7 @@ github.com/mattermost/logr/v2 github.com/mattermost/logr/v2/config github.com/mattermost/logr/v2/formatters github.com/mattermost/logr/v2/targets -# github.com/mattermost/mattermost-server/v6 v6.2.0 +# github.com/mattermost/mattermost-server/v6 v6.2.2-0.20211217224034-b97dd503c1d4 ## explicit github.com/mattermost/mattermost-server/v6/api4 github.com/mattermost/mattermost-server/v6/app