Skip Menu |

This queue is for tickets about the Kwiki-Edit-RequireUserName CPAN distribution.

Report information
The Basics
Id: 13128
Status: new
Priority: 0/
Queue: Kwiki-Edit-RequireUserName

People
Owner: Nobody in particular
Requestors: brian [...] FreeBSD.org
Cc:
AdminCc:

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



Subject: [patch] index.cgi shouldn't die() when there's no current name
Kwiki-Edit-RequireUserName-0.2 Perl 5.8.6 FreeBSD-stable (as of May 11, 2005) Rather than die()ing, just returning undef results in the code correctly telling you that you need to give a UserName. See the attached patch.
--- lib/Kwiki/Edit/RequireUserName.pm.orig Mon Jun 6 12:28:29 2005 +++ lib/Kwiki/Edit/RequireUserName.pm Mon Jun 6 12:34:42 2005 @@ -30,7 +30,7 @@ sub have_UserName { my $current_name = $self->hub->users->current->name || - die "Can't determine current UserName"; + return undef; my $anonymous_name = $self->config->user_default_name || die "Can't determine local name of anonymous user"; # set in # config/user.yaml
Subject: ticket received
Hi, Just to let you know I've received your bug reports/patches for my Kwiki modules. My email was misconfigured in the PAUSE system so I wasn't notified of your ticket(s). I'll get to this a soon as possible and let you know when I've resolved the ticket. -James jperegrino@post.harvard.edu