You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a direct security concern, perhaps a Denial of Service would be possible but unlikely.
File a new issue using the format below. Mattermost will confirm steps to reproduce and file in Jira, or ask for more details if there is trouble reproducing it. If there's already an existing bug in Jira, it will be linked back to the GitHub issue so you can track when it gets fixed.
Any valid json (e.g. {}) doesn't trigger this problem.
Expected behavior
Describe your issue in detail
Expected behavior: error message and status 400
Observed behavior (that appears unintentional)
What did you see happen? Please include relevant error messages and/or screenshots.
Actual behavior:
curl: (52) Empty reply from server
Possible fixes
If you can, link to the line of code that might be responsible for the problem
// AddEventParameterAuditable adds an object that is of type Auditable to the event
func AddEventParameterAuditable(rec *Record, key string, val Auditable) {
if rec.EventData.Parameters == nil {
rec.EventData.Parameters = make(map[string]interface{})
}
rec.EventData.Parameters[key] = val.Auditable()
}
requires a nil check for Auditable val
The text was updated successfully, but these errors were encountered:
vlussenburg
changed the title
ERROR crashing thread (with repros case)
ERROR crashing thread on null json payload (with repro case)
Apr 11, 2023
Per Mattermost guidelines, GitHub issues are for bug reports: https://handbook.mattermost.com/contributors/contributors/ways-to-contribute/.
For troubleshooting see: https://forum.mattermost.com/.
For feature proposals see: https://mattermost.com/suggestions/
If you've found a bug--something appears unintentional--please follow these steps:
Couldn't find it.
Not a direct security concern, perhaps a Denial of Service would be possible but unlikely.
Done (we're in it!).
Summary
Bug report in one concise sentence
For certain payloads, a panic occurs:
Steps to reproduce
How can we reproduce the issue (what version are you using?)
master (unreleased) in development mode
Any valid json (e.g.
{}
) doesn't trigger this problem.Expected behavior
Describe your issue in detail
Expected behavior: error message and status 400
Observed behavior (that appears unintentional)
What did you see happen? Please include relevant error messages and/or screenshots.
Actual behavior:
Possible fixes
If you can, link to the line of code that might be responsible for the problem
requires a nil check for
Auditable val
The text was updated successfully, but these errors were encountered: