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

Owner: Nobody in particular
Requestors: joel.limardo [...]

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

From joel.limardo [...] 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
Content-Type: multipart/alternative; boundary=00248c0ee52e13019f04abf78c12
Message-ID: <CAOfjracbvXMtD8h_NkGz+HCTmyUZtVd0P5RoXgc1swNenxNXDQ [...]>
X-Virus-Scanned: Debian amavisd-new at
X-Spam-Score: -5.162
Received: from localhost (localhost []) by (Postfix) with ESMTP id 6E75E2407F3 for <cpan-bug+Apache2-FakeRequest [...]>; Fri, 2 Sep 2011 12:06:51 -0400 (EDT)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id R+XPqiDmi4ur for <cpan-bug+Apache2-FakeRequest [...]>; Fri, 2 Sep 2011 12:06:50 -0400 (EDT)
Received: from ( []) by (Postfix) with SMTP id 3809D2400BB for <bug-Apache2-FakeRequest [...]>; 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 ( by with QMQP; 2 Sep 2011 16:06:49 -0000
Received: from (HELO ( by (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 [...]>; Fri, 02 Sep 2011 09:06:42 -0700 (PDT)
Received: by with SMTP id bh8mr1217728wbb.67.1314979602170; Fri, 02 Sep 2011 09:06:42 -0700 (PDT)
Received: by with HTTP; Fri, 2 Sep 2011 09:06:42 -0700 (PDT)
Delivered-To: cpan-bug+Apache2-FakeRequest [...]
Subject: dir_config cannot be effectively used
Return-Path: <joel.limardo [...]>
X-RT-Mail-Extension: apache2-fakerequest
X-Original-To: cpan-bug+Apache2-FakeRequest [...]
Date: Fri, 2 Sep 2011 11:06:42 -0500
To: bug-Apache2-FakeRequest [...]
From: Joel Limardo <joel.limardo [...]>
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 infrastructure.

Please report any issues with to