Skip Menu |

This queue is for tickets about the CGI-Session CPAN distribution.

Report information
The Basics
Id: 2168
Status: resolved
Priority: 0/
Queue: CGI-Session

Owner: Nobody in particular
Requestors: private [...]

Bug Information
Severity: Normal
Broken in: 3.9
Fixed in: (no value)

Subject: use diagnostics collides with CGI::Carp qw(fatalsToBroswer) and similar
Download (untitled) / with headers
text/plain 738b
Hi, CGI::Session uses diagnostics. As diagnostics installs itself ahead of existing die handlers. It overrides behaviour like the one intended by CGI::Carp qw(fatalsToBrowser). The diagnostic messages is printed before the previously installed die handler has a chance to output the Content-Type header resulting in a Interner Server Error message on part of Apache. In my opinion, a module should not cause such side effects, it's up to the using script writer to decide how much warning and diagnostics are appropriate. At least a warning should appear in the modules documentation, saying that die handlers should be installed after use CGI::Session if the diagnostic messages are unwanted. claudio

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to