Files
mostlymatter/app
Agniva De Sarker 0e00afd65f MM-40469: Handle invalid response codes from plugins (#19136)
* MM-40469: Handle invalid response codes from plugins

This was an interesting crash detected via Sentry.

Typically, any HTTP status code outside 100-999 range
will cause a crash in the HTTP server. And `ExecuteCommand`
is the only plugin hook which returns a model.AppError
instead of error.

So an incorrect plugin implementation could return
a status code of 0, and crash the server. We handle that
by rewriting any illegal response code to 500.

https://mattermost.atlassian.net/browse/MM-40469

```release-note
NONE
```

* added warning

```release-note
NONE
```
2021-12-09 14:17:41 +05:30
..
2021-08-17 16:08:04 -04:00
2021-08-17 16:08:04 -04:00
2021-10-12 11:39:49 +05:30
2021-10-12 11:39:49 +05:30
2021-08-17 16:08:04 -04:00
2021-11-15 10:43:07 +05:30
2021-11-15 10:43:07 +05:30
2021-10-12 11:39:49 +05:30
2021-10-12 11:39:49 +05:30