Return-Path: X-Original-To: apmail-httpd-apreq-dev-archive@www.apache.org Delivered-To: apmail-httpd-apreq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53C4711E6E for ; Mon, 23 Jun 2014 23:02:05 +0000 (UTC) Received: (qmail 82203 invoked by uid 500); 23 Jun 2014 23:02:04 -0000 Delivered-To: apmail-httpd-apreq-dev-archive@httpd.apache.org Received: (qmail 82096 invoked by uid 500); 23 Jun 2014 23:02:04 -0000 Mailing-List: contact apreq-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Id: Delivered-To: mailing list apreq-dev@httpd.apache.org Received: (qmail 81972 invoked by uid 99); 23 Jun 2014 23:02:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2014 23:02:04 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Mark.Hedges@ticketmaster.com designates 68.232.137.160 as permitted sender) Received: from [68.232.137.160] (HELO esa4.livenationus.iphmx.com) (68.232.137.160) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Jun 2014 23:01:59 +0000 X-IronPort-AV: E=Sophos;i="5.01,533,1400050800"; d="scan'208";a="1704741" Received: from unknown (HELO USASHEXCAS5.LYV.LiveNation.com) ([209.104.35.200]) by esa4.livenationus.iphmx.com with ESMTP/TLS/AES128-SHA; 23 Jun 2014 16:01:34 -0700 Received: from USASHEXMB02.LYV.LiveNation.com ([fe80::adae:915b:d483:535b]) by USASHEXCAS5.LYV.LiveNation.com ([fe80::41ac:6d81:1112:f8a5%10]) with mapi id 14.03.0123.003; Mon, 23 Jun 2014 19:01:32 -0400 From: Mark Hedges To: "apreq-dev@httpd.apache.org" , mod_perl list CC: Mark Hedges Subject: RE: APREQ_ERROR_MISMATCH error, I think Thread-Topic: APREQ_ERROR_MISMATCH error, I think Thread-Index: Ac+M6tG9QecwsYg7T1e9axv5GD2tdwCTC81Q Date: Mon, 23 Jun 2014 23:01:32 +0000 Message-ID: <55EEF0B3C5BF2744B2248754D717EE4C4B3526@USASHEXMB02.LYV.LiveNation.com> References: <55EEF0B3C5BF2744B2248754D717EE4C4A3702@USASHEXMB02.LYV.LiveNation.com> In-Reply-To: <55EEF0B3C5BF2744B2248754D717EE4C4A3702@USASHEXMB02.LYV.LiveNation.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.240.17.201] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org No one seems home on the apreq-dev list so I'm ccing mod_perl in the hope s= omeone can help. Sorry if that annoys anyone. I rebuilt everything using perl 5.20.0, Apache 2.2.27 will all the mods, mo= d_perl svn trunk. When I use Apache2::Request, I get a server error, it fails with the messag= e "Conflicting information," which seems to be related to the APREQ_ERROR_M= ISMATCH constant, but I don't know how to debug this. When I comment out creating the Apache2::Request object from $r, my dummy t= est handler runs fine. How would I try to debug this? Mark -----Original Message----- From: Mark Hedges=20 Sent: Friday, June 20, 2014 5:51 PM To: apreq-dev@httpd.apache.org Cc: Mark Hedges Subject: APREQ_ERROR_MISMATCH error, I think Any clues for the clueless? This is accompanied by a 500 internal server error. The same handler works fine when I do not use Apache2::Request. It is just= a test handler to print out a string. Thanks. -Mark ----------------------- t/logs/error_log: ---- [Fri Jun 20 17:43:13.014222 2014] [mpm_event:notice] [pid 30042:tid 4760281= 1847312] AH00489: Apache/2.4.9 (Unix) mod_apreq2-20090110/2.8.0 mod_perl/2.= 0.9dev Perl/v5.20.0 configured -- resuming normal operations ... [Fri Jun 20 17:43:13.014745 2014] [mpm_event:debug] [pid 30043:tid 10886986= 88] event.c(1949): AH02471: start_threads: Using epoll ... [Fri Jun 20 17:43:14.934954 2014] [authz_core:debug] [pid 30043:tid 1120168= 256] mod_authz_core.c(828): [client 127.0.0.1:60081] AH01628: authorization= result: granted (no directives) [Fri Jun 20 17:43:14.953412 2014] [perl:error] [pid 30043:tid 1120168256] [= client 127.0.0.1:60081] Conflicting information ------------------------- extra.last.conf.in: --- PerlSetEnv NTF_TEST_DIR @ServerRoot@ #LoadModule allowmethods_module /ntfhome/local/libexec/httpd/mod_allowmetho= ds.so # where Apache2::Controller and the test application libs can be found PerlSwitches -I@ServerRoot@/blib PerlLoadModule Apache2::RequestRec PerlLoadModule Apache2::RequestIO PerlLoadModule Apache2::Log PerlLoadModule Apache2::RequestUtil use NTF::Handler::NTR; $NTFHandlers::NTR =3D NTF::Handler::NTR->new(); # startup file handled by Apache::Test # (add stuff to t/conf/modperl_extra.pl) SetHandler modperl PerlResponseHandler $NTFHandlers::NTR->redirect ------------------------------- package NTF::Handler::NTR; use strict; use warnings FATAL =3D> 'all'; use English '-no_match_vars'; use YAML::XS; use Readonly; Readonly::Hash my %APREQ_NEW_PARAMS =3D> ( POST_MAX =3D> 1, MAX_BODY =3D> 1, DISABLE_UPLOADS =3D> 1, ); use Apache2::Const -compile =3D> qw( OK HTTP_OK REDIRECT HTTP_BAD_REQUEST ); use Apache2::Log; use Apache2::RequestIO; # use Apache2::Request; sub new { return bless {}, __PACKAGE__ } sub redirect : method { my ($self, $r) =3D @_; # minor annoyance, have to do this every time $self->{r} =3D $r; # my $req =3D Apache2::Request->new($r, %APREQ_NEW_PARAMS); $r->content_type('text/plain'); $self->{r}->print("KIRK\n"); delete $self->{r}; delete $self->{apreq}; return Apache2::Const::OK; }