Ticket #1145 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

make the photo widget rendering more robust

Reported by: jmorliaguet Owned by: fguillaume
Priority: P2 Milestone: CPS 3.4.0
Component: CPSSchemas Version: TRUNK
Severity: normal Keywords:
Cc:

Description

the photo widget crashes too easily if the uploaded image contains an error or if the file format is incorrect.

in this case a photoshop image was uploaded with a .gif extension:

in widget_photo_render.pt original_width is incorrect

           tal:define="original_width python:original_photo.width;·
                       original_height python:original_photo.height"

the value (probably None) is then used in the same ZPT in:

str(int(original_width)

Change History

comment:1 Changed 14 years ago by fguillaume

  • Priority changed from P1 to P2
  • Severity changed from major to normal

comment:2 Changed 14 years ago by fguillaume

  • Status changed from new to closed
  • Resolution set to fixed

Fixed in [30147].

Note: See TracTickets for help on using tickets.