From 0078dd6f61cf89f26b655bd753ade11cd1349ac3 Mon Sep 17 00:00:00 2001 From: Vadim Stepanov Date: Thu, 18 May 2023 18:35:36 +0100 Subject: [PATCH] Fix inbound email bug when attaching files (#1970) # What this PR does Fix inbound email endpoint bug when attaching files to email leads to HTTP 500. ## Checklist - [x] Unit, integration, and e2e (if applicable) tests updated - [x] Documentation added (or `pr:no public docs` PR label added if not required) - [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --- CHANGELOG.md | 6 ++++++ engine/apps/email/inbound.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5984d2a9cf..9d728a63e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Fix inbound email bug when attaching files by @vadimkerr ([#1970](https://github.com/grafana/oncall/pull/1970)) + ## v1.2.25 (2023-05-18) ### Added diff --git a/engine/apps/email/inbound.py b/engine/apps/email/inbound.py index fc86dfed15..59807834e3 100644 --- a/engine/apps/email/inbound.py +++ b/engine/apps/email/inbound.py @@ -69,7 +69,7 @@ def post(self, request, alert_receive_channel): alert_receive_channel_pk=alert_receive_channel.pk, image_url=None, link_to_upstream_details=None, - integration_unique_data=request.data, + integration_unique_data=None, raw_request_data=payload, )