Re: It did not QUITE work! Re: "strange error" is related to CGI.pm

[prev] [thread] [next] [Date index for 2005/05/13]

From: Igor Chudov
Subject: Re: It did not QUITE work! Re: "strange error" is related to CGI.pm
Date: 17:33 on 13 May 2005
Of these two modules, CGI::Deurl is responsible.

It does something strange here:

sub load { 
    my $data; 
    if (defined $ENV{REQUEST_METHOD} and
$ENV{REQUEST_METHOD} eq "POST") { 
     read STDIN , $data , $ENV{CONTENT_LENGTH} ,0; 


i

--- Igor Chudov <ichudov@xxxxx.xxx> wrote:

> I made some effort to reproduce it and made an
> unbelievable discovery.
> 
> If I include these two statements:
> 
> use CGI::Deurl;
> use CGI::Enurl;
> 
> then things do NOT work properly.
> 
> If I comment them out, then everything works fine.
> The
> use statements are as follows:
> 
> use CGI qw/:standard/;
> use CGI::Pretty;
> use APR::Table ();
> use CGI::Deurl;
> use CGI::Enurl;
> use Apache2::Const qw( OK );
> 
> I have a SAMPLE that does not use any of my
> algebra.com's code:
> 
> http://dsl.algebra.com/tmp/solver/TestHandler.pm.txt
> 
> I invoke it by saying
> 
> <Files *.testhandler> 
>         SetHandler perl-script 
>         PerlHandler Algebra::Solver::TestHandler 
>         Options +ExecCGI 
>         #optional 
>         PerlSendHeader On 
> </Files> 
> 
> 
> --- Stas Bekman <stas@xxxxxx.xxx> wrote:
> 
> > Igor Chudov wrote:
> > > --- Stas Bekman <stas@xxxxxx.xxx> wrote:
> > [...]
> > >>>I already applied this patch (at Randy's
> > >>
> > >>suggestion, I
> > >>
> > >>>think). It did not help.
> > >>
> > >>so what's the latest error that you get? The
> > easiest
> > >>way to help us to 
> > >>reproduce the problem is to download the
> > Apache-Test
> > >>Skeleton, that you 
> > >>can find linked from here:
> > >>
> > > 
> > >
> >
>
http://perl.apache.org/docs/2.0/user/help/help.html#Problem_Description
> > > 
> > >>add a *minimal* code that we can reproduce your
> > >>problem with and send it 
> > >>here. Once we have it and we can reproduce it,
> it
> > >>should be trivial to fix.
> > > 
> > > 
> > > I do not get any error, however, CGI does not
> > return
> > > te needed form parameter value. As though the
> > value
> > > was never passed to the form. If I change the
> > method
> > > from POST to GET, everything is fine.
> > 
> > OK, so that's a different story. But the 'require
> > Apache2::RequestIO;' was 
> >   indeed needed, correct? As I have submitted a
> > patch to Lincoln for CGI.pm.
> > 
> > > I will try to reproduce the minimal handler that
> > > reproduces the problem.
> > 
> > While you do that, take a look at the mod_perl
> tests
> > as suggested by 
> > Randy. You will see how to write this kind of
> tests.
> > 
> > -- 
> >
>
__________________________________________________________________
> > Stas Bekman            JAm_pH ------> Just Another
> > mod_perl Hacker
> > http://stason.org/     mod_perl Guide --->
> > http://perl.apache.org
> > mailto:stas@xxxxxx.xxx http://use.perl.org
> > http://apacheweek.com
> > http://modperlbook.org http://apache.org  
> > http://ticketmaster.com
> > 
> 
> 
> - Igor
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 


- Igor


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

(message missing)

"strange error" is related to CGI.pm
Igor Chudov 15:11 on 12 May 2005

Re: "strange error" is related to CGI.pm
Tom Schindl 08:12 on 13 May 2005

Re: "strange error" is related to CGI.pm
Igor Chudov 13:11 on 13 May 2005

Re: "strange error" is related to CGI.pm
Tom Schindl 13:39 on 13 May 2005

Re: "strange error" is related to CGI.pm
Willem Jan Withagen 13:46 on 13 May 2005

Re: "strange error" is related to CGI.pm
Igor Chudov 13:59 on 13 May 2005

Re: "strange error" is related to CGI.pm
Randy Kobes 14:04 on 13 May 2005

Re: It did not QUITE work! Re: "strange error" is related to CGI.pm
Igor Chudov 17:33 on 13 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52