Skip Menu |

This queue is for tickets about the WWW-Mechanize-SpamCop CPAN distribution.

Report information
The Basics
Id: 45609
Status: new
Priority: 0/
Queue: WWW-Mechanize-SpamCop

People
Owner: Nobody in particular
Requestors: TWILDE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.07
Fixed in: (no value)



Subject: Report loops if no recipients selected
SpamCop will sometimes have contacts for an IP/domain that do not wish to receive reports, and thus do not have send checkboxes next to them. If those are the only types of contact for a particular report, clicking on the "Submit Report" button generates a loop; the report won't be submitted because there are no valid contacts, so it comes back up with the next attempt. This causes report_all to get into an infinite reporting loop. To get out of the looping behavior, the "Cancel" button must be clicked in these cases. Probably the easiest way to detect this in report_all would be to look at the report ID, and keep a hash of report IDs that have already been seen in the current session - if the same ID is seen more than once, there's a looping problem, and the "Cancel" button should be "clicked" instead of the "Submit Report" button. Thanks for a handy module! Regards, Tim