Edgewall Software
Modify

Opened 5 weeks ago

Closed 4 weeks ago

#13744 closed enhancement (fixed)

[PATCH] SpamFilter: Support pillow 10 for ImageCaptcha

Reported by: niels.reedijk@… Owned by: Dirk Stöcker
Priority: normal Milestone:
Component: plugin/spamfilter Version: 1.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Currently the ImageCaptcha component is not compatible with a modern pillow, due to API changes. This patch makes it compatible with Pillow 10 (tested with 10.2.0) and bumps the minimum required version.

Attachments (2)

pillow-update.patch (1.8 KB ) - added by niels.reedijk@… 5 weeks ago.
pillow-update-v2.patch (1.8 KB ) - added by niels.reedijk@… 5 weeks ago.
Updated pillow requirements and names of variables.

Download all attachments as: .zip

Change History (6)

by niels.reedijk@…, 5 weeks ago

Attachment: pillow-update.patch added

comment:1 by Dirk Stöcker, 5 weeks ago

Requiring pillow 10 ATM is too much. Ubuntu 22.04 e.g. delivers 9.0.1. openSUSE 15.5 delivers 8.4.0.

Please adapt the patch so that it can handle older versions as well. Requiring PIL ≥ 8 would be ok I think. A simple if/try around the one command should do the trick.

comment:2 by Ryan J Ollos, 5 weeks ago

Be careful using _ as an unused variable placeholder because Trac uses it as an alias for a message translation function.

in reply to:  2 comment:3 by niels.reedijk@…, 5 weeks ago

Replying to Dirk Stöcker:

Requiring pillow 10 ATM is too much. Ubuntu 22.04 e.g. delivers 9.0.1. openSUSE 15.5 delivers 8.4.0.

Please adapt the patch so that it can handle older versions as well. Requiring PIL ≥ 8 would be ok I think. A simple if/try around the one command should do the trick.

I tested the changes with 8.0.0 and it still works, so I updated the patch to require version 8 or higher.

Replying to Ryan J Ollos:

Be careful using _ as an unused variable placeholder because Trac uses it as an alias for a message translation function.

Thanks for that note. I have used regular variable names in the updated patch.

by niels.reedijk@…, 5 weeks ago

Attachment: pillow-update-v2.patch added

Updated pillow requirements and names of variables.

comment:4 by Dirk Stöcker, 4 weeks ago

Resolution: fixed
Status: newclosed

In r17768.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dirk Stöcker.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Dirk Stöcker to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.