Skip Menu |
 

This queue is for tickets about the Apache2-FakeRequest CPAN distribution.

Report information
The Basics
Id: 70699
Status: new
Priority: 0/
Queue: Apache2-FakeRequest

People
Owner: Nobody in particular
Requestors: joel.limardo [...] forwardphase.com
Cc:
AdminCc:

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



From joel.limardo [...] forwardphase.com Fri Sep 2 12: 06:51 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-5.162 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, FROM_12LTRDOM=1.737, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
X-Spam-Flag: NO
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/alternative; boundary=00248c0ee52e13019f04abf78c12
Message-ID: <CAOfjracbvXMtD8h_NkGz+HCTmyUZtVd0P5RoXgc1swNenxNXDQ [...] mail.gmail.com>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Spam-Score: -5.162
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 6E75E2407F3 for <cpan-bug+Apache2-FakeRequest [...] hipster.bestpractical.com>; Fri, 2 Sep 2011 12:06:51 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id R+XPqiDmi4ur for <cpan-bug+Apache2-FakeRequest [...] hipster.bestpractical.com>; Fri, 2 Sep 2011 12:06:50 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 3809D2400BB for <bug-Apache2-FakeRequest [...] rt.cpan.org>; Fri, 2 Sep 2011 12:06:50 -0400 (EDT)
Received: (qmail 10081 invoked by uid 103); 2 Sep 2011 16:06:49 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 2 Sep 2011 16:06:49 -0000
Received: from mail-ww0-f42.google.com (HELO mail-ww0-f42.google.com) (74.125.82.42) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Fri, 02 Sep 2011 09:06:46 -0700
Received: by wwe5 with SMTP id 5so2359851wwe.3 for <bug-Apache2-FakeRequest [...] rt.cpan.org>; Fri, 02 Sep 2011 09:06:42 -0700 (PDT)
Received: by 10.227.177.72 with SMTP id bh8mr1217728wbb.67.1314979602170; Fri, 02 Sep 2011 09:06:42 -0700 (PDT)
Received: by 10.227.203.199 with HTTP; Fri, 2 Sep 2011 09:06:42 -0700 (PDT)
Delivered-To: cpan-bug+Apache2-FakeRequest [...] hipster.bestpractical.com
Subject: dir_config cannot be effectively used
Return-Path: <joel.limardo [...] forwardphase.com>
X-RT-Mail-Extension: apache2-fakerequest
X-Original-To: cpan-bug+Apache2-FakeRequest [...] hipster.bestpractical.com
X-Spam-Check-BY: 16.mx.develooper.com
Date: Fri, 2 Sep 2011 11:06:42 -0500
X-Spam-Level:
To: bug-Apache2-FakeRequest [...] rt.cpan.org
From: Joel Limardo <joel.limardo [...] forwardphase.com>
Content-Length: 0
content-type: text/plain; charset="utf-8"
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1124
The Apache2 dir_config() method is listed in the @methods array but it accepts a parameter to return different results and therefore should not be included. According to the pod the module uses parameters included in the new() method to create a series of very simple methods that mainly just return strings, for example: my $req = Apache2::FakeRequest->new('hostname'=>'localhost'); A call to $req->hostname() shoudl return the string 'localhost'. Neat. But this doesn't make sense if the method accepts parameters and returns different values based on those parameters. Specifically, the dir_config() does not work in this sense because it expects a meaningful argument. It is easy enough to add a method called Apache2::FakeRequest::dir_config() to the script itself to handle the operation but I have to hack Apache2::FakeRequest to remove it from the @methods array because there is no standard way to tell Apache2::FakeRequest that I don't want it to utilize its default operation. I recommend that you, at minimum, remove dir_config (and any other method that accepts arguments) from the standard @methods array.
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1200


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.