[Django] #33079: Prevent get_image_dimensions() crash

14 views
Skip to first unread message

Django

unread,
Sep 1, 2021, 4:36:21 AM9/1/21
to django-...@googlegroups.com
#33079: Prevent get_image_dimensions() crash
------------------------------------------------+--------------------------
Reporter: tsaklidis | Owner: nobody
Type: Cleanup/optimization | Status: assigned
Component: File uploads/storage | 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 |
------------------------------------------------+--------------------------
When using the get_image_dimensions(), If a non existing file/path is
passed, the function crashes

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

Django

unread,
Sep 2, 2021, 1:04:49 AM9/2/21
to django-...@googlegroups.com
#33079: Prevent get_image_dimensions() crash on nonexistent images.
-------------------------------------+-------------------------------------
Reporter: Stefanos I. | Owner: Stefanos
Tsaklidis | I. Tsaklidis
Type: | Status: assigned
Cleanup/optimization |
Component: File | Version: 3.2
uploads/storage |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted

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

* owner: nobody => Stefanos I. Tsaklidis
* stage: Unreviewed => Accepted


Comment:

[https://github.com/django/django/pull/14441 PR]

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

Django

unread,
Sep 2, 2021, 1:49:31 AM9/2/21
to django-...@googlegroups.com
#33079: Prevent get_image_dimensions() crash on nonexistent images.
-------------------------------------+-------------------------------------
Reporter: Stefanos I. | Owner: Stefanos
Tsaklidis | I. Tsaklidis
Type: | Status: closed

Cleanup/optimization |
Component: File | Version: 3.2
uploads/storage |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted

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:"d0ea01af2814e276c4a090e599d5fd11c6ce4bf8" d0ea01af]:
{{{
#!CommitTicketReference repository=""
revision="d0ea01af2814e276c4a090e599d5fd11c6ce4bf8"
Fixed #33079 -- Fixed get_image_dimensions() on nonexistent images.

Thanks Nick Pope for the review.
}}}

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

Reply all
Reply to author
Forward
0 new messages