[Django] #33096: AdminEmailHandler emails blocked by gmail antivirus

9 views
Skip to first unread message

Django

unread,
Sep 9, 2021, 7:58:59 AM9/9/21
to django-...@googlegroups.com
#33096: AdminEmailHandler emails blocked by gmail antivirus
-------------------------------------------+------------------------
Reporter: Jan Schär | Owner: (none)
Type: Bug | Status: new
Component: Error reporting | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
Django errror/stack trace emails (django.utils.log.AdminEmailHandler) are
blocked by the gmail antivirus with the following messages:

{{{
host gmail-smtp-in.l.google.com[142.250.110.26] said:
This message was blocked because its content presents a potential
security issue. Please visit
https://support.google.com/mail/?p=BlockedMessage to review our
message content and attachment content guidelines.
}}}

This is caused by the following tag in the html email:

{{{
<form action="https://dpaste.com/" name="pasteform" id="pasteform"
method="post">
}}}

This worked before, so it is caused by a relatively recent change in
gmail's antivirus.
The fix is simply to remove the form tag, which should not have been there
anyway.

Patch: https://github.com/django/django/pull/14840

--
Ticket URL: <https://code.djangoproject.com/ticket/33096>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 9, 2021, 9:32:03 AM9/9/21
to django-...@googlegroups.com
#33096: AdminEmailHandler emails blocked by gmail antivirus
---------------------------------+-------------------------------------
Reporter: Jan Schär | Owner: Jan Schär
Type: Bug | Status: assigned

Component: Error reporting | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* owner: (none) => Jan Schär
* status: new => assigned
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted


--
Ticket URL: <https://code.djangoproject.com/ticket/33096#comment:1>

Django

unread,
Sep 10, 2021, 12:45:51 AM9/10/21
to django-...@googlegroups.com
#33096: AdminEmailHandler emails blocked by gmail antivirus
-------------------------------------+-------------------------------------

Reporter: Jan Schär | Owner: Jan Schär
Type: Bug | Status: assigned
Component: Error reporting | Version: 3.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):

* needs_tests: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/33096#comment:2>

Django

unread,
Sep 10, 2021, 2:09:09 AM9/10/21
to django-...@googlegroups.com
#33096: AdminEmailHandler emails blocked by gmail antivirus
-------------------------------------+-------------------------------------
Reporter: Jan Schär | Owner: Jan Schär
Type: Bug | Status: closed

Component: Error reporting | Version: 3.2
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"06e59d97a3c6e8e600ff11dadf994fae467fc785" 06e59d97]:
{{{
#!CommitTicketReference repository=""
revision="06e59d97a3c6e8e600ff11dadf994fae467fc785"
Fixed #33096 -- Fixed <form> nesting in technical 500 template.

This also prevents sending <form> tags in emails.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/33096#comment:3>

Reply all
Reply to author
Forward
0 new messages