Skip Menu |
 

This queue is for tickets about the Catalyst-Plugin-SanitizeUrl CPAN distribution.

Report information
The Basics
Id: 72399
Status: resolved
Priority: 0/
Queue: Catalyst-Plugin-SanitizeUrl

People
Owner: Nobody in particular
Requestors: perl [...] toby.ink
Cc:
AdminCc:

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



Download (untitled) / with headers
text/plain 1.4k
I can't seem to get this plugin to work with recent versions of Catalyst. Catalyst gives me the following output... [info] WWW::DataWiki powered by Catalyst 5.90006 HTTP::Server::PSGI: Accepting connections at http://0:3000/ [info] *** Request 1 (0.062/s) [25438] [Sun Nov 13 14:19:18 2011] *** [debug] "GET" request for "test/" from "127.0.0.1" [error] Caught exception in engine "Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ SanitizeUrl/PrepAction.pm line 47." [info] *** Request 2 (0.125/s) [25438] [Sun Nov 13 14:19:18 2011] *** [debug] "GET" request for "test/" from "127.0.0.1" [error] Caught exception in engine "Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ SanitizeUrl/PrepAction.pm line 47." [info] *** Request 3 (0.188/s) [25438] [Sun Nov 13 14:19:18 2011] *** [debug] "GET" request for "test/" from "127.0.0.1" [error] Caught exception in engine "Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ SanitizeUrl/PrepAction.pm line 47." [info] *** Request 4 (0.250/s) [25438] [Sun Nov 13 14:19:18 2011] *** [debug] "GET" request for "test/" from "127.0.0.1" [error] Caught exception in engine "Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ SanitizeUrl/PrepAction.pm line 47." ... etc. Adding " || []" to the array dereference at line 47 stops the message above, but things still don't work.
Download (untitled) / with headers
text/plain 1.8k
Hi Toby, thanks for the report. On Sun Nov 13 09:25:29 2011, TOBYINK wrote: Show quoted text
> I can't seem to get this plugin to work with recent versions of > Catalyst. Catalyst gives me the following output... > > [info] WWW::DataWiki powered by Catalyst 5.90006 > HTTP::Server::PSGI: Accepting connections at http://0:3000/ > [info] *** Request 1 (0.062/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 2 (0.125/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 3 (0.188/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 4 (0.250/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > > ... etc. > > Adding " || []" to the array dereference at line 47 stops the message > above, but things still don't work.
It's possible the internals of Catalyst changed. I guess I'll have to copy the function again and change it. I recall something about a better alternative module on CPAN for that, but I don't recall its name, and the name "SanitizeUrl" is bad. Regards, — Shlomi Fish
Download (untitled) / with headers
text/plain 1.7k
Hi Toby, can you please test the fixed version in the tip of: https://bitbucket.org/shlomif/perl-catalyst-plugin-sanitizeurl Regards, -- Shlomi Fish On Sun Nov 13 09:25:29 2011, TOBYINK wrote: Show quoted text
> I can't seem to get this plugin to work with recent versions of > Catalyst. Catalyst gives me the following output... > > [info] WWW::DataWiki powered by Catalyst 5.90006 > HTTP::Server::PSGI: Accepting connections at http://0:3000/ > [info] *** Request 1 (0.062/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 2 (0.125/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 3 (0.188/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > [info] *** Request 4 (0.250/s) [25438] [Sun Nov 13 14:19:18 2011] *** > [debug] "GET" request for "test/" from "127.0.0.1" > [error] Caught exception in engine "Can't use an undefined value as an > ARRAY reference at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 47." > > ... etc. > > Adding " || []" to the array dereference at line 47 stops the message > above, but things still don't work.
Download (untitled) / with headers
text/plain 403b
I get... [error] Caught exception in engine "Can't call method "req" on an undefined value at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ SanitizeUrl/PrepAction.pm line 40." The prepare_action method is only invoked with a single argument: the invocant itself - the context. In the mean time I came up with my own solution: https://metacpan.org/release/CatalystX-TraitFor-Dispatcher-ExactMatch
Download (untitled) / with headers
text/plain 603b
On Fri Nov 25 17:14:48 2011, TOBYINK wrote: Show quoted text
> I get... > > [error] Caught exception in engine "Can't call method "req" on an > undefined value at /usr/lib/perl5/site_perl/5.10.1/Catalyst/Plugin/ > SanitizeUrl/PrepAction.pm line 40." > > The prepare_action method is only invoked with a single argument: the > invocant itself - the context. > > In the mean time I came up with my own solution: > https://metacpan.org/release/CatalystX-TraitFor-Dispatcher-ExactMatch
Closing because I decided to remove this module from CPAN because it no longer works. Thanks for the report and the better solution.


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

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.