You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by David Bronner <db...@google.com> on 2006/09/16 00:30:34 UTC

Redirects and regular expression extractors

Hi everyone,

In JMeter 2.1.1, I used RE extractors to parse some redirect information for
later use.  In JMeter 2.2, it seems that my postprocessors aren't getting
executed when a sampler gets a 302 and "Follow Redirects" is not selected.
Is this correct?  Is there a way to get the old behavior where
postprocessors are always executed?

Thanks,
Dave

Re: Redirects and regular expression extractors

Posted by sebb <se...@gmail.com>.
The nightly version 2-2.20060921 contains the fix, if you would not
mind trying it...

S.
On 21/09/06, David Bronner <db...@google.com> wrote:
> >
> > Sorry it has taken so long to get to the bottom of this.
>
>
>
> I'm impressed by the turnaround time.  Thanks for the quick response!
>
> -Dave
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Redirects and regular expression extractors

Posted by David Bronner <db...@google.com>.
>
> Sorry it has taken so long to get to the bottom of this.



I'm impressed by the turnaround time.  Thanks for the quick response!

-Dave

Re: Redirects and regular expression extractors

Posted by sebb <se...@gmail.com>.
Thanks - I've taken a look at that, and can reproduce the problem.

The RE code was changed in 2.2 to check for responseData length = 0,
rather than checking it for null. Both checks are wrong, as there is
no need to check the body if the RE is matching against the Headers or
URL, but presumably the responseData was not null in 2.1.1.

The reason that the redirect test against Google works is that the
redirect response actually contains some data, whereas the POST in
your example does not return any body data. So it may be a POST/GET
difference rather than https/http.

The solution is obviously to remove the data length check.

I should be able to update the code later today, and create a new
nightly to test.

Sorry it has taken so long to get to the bottom of this.

S.
On 21/09/06, David Bronner <db...@google.com> wrote:
> I eventually replicated the problem on a public site and opened bug
> 40562<http://issues.apache.org/bugzilla/show_bug.cgi?id=40562>with a
> script that works in
> 2.1.1 and not in 2.2.   I think it only effects redirects from HTTPS sites,
> but I'm not certain.
>
> -Dave
>
> On 9/21/06, Per Ekman <mr...@hotmail.com> wrote:
> >
> > It think this could be the same issue that I've posted about in
> >
> >
> > http://www.nabble.com/Can%27t-use-Reqular-Extraction-Variable-in-request-path-tf2232503.html
> >
> > and also in
> >
> >
> > http://www.nabble.com/JMeter-2.2-Extractor-Variable-Problems-tf1786056.html#a5064504
> >
> >
> > >From: sebb <se...@gmail.com>
> > >Reply-To: "JMeter Users List" <jm...@jakarta.apache.org>
> > >To: "JMeter Users List" <jm...@jakarta.apache.org>
> > >Subject: Re: Redirects and regular expression extractors
> > >Date: Wed, 20 Sep 2006 19:00:18 +0100
> > >
> > >Works fine for me.
> > >
> > >I suggest you create a Bugzilla issue, and attach a simple example
> > >JMX, plus the corresponding jmeter.log
> > >
> > >S.
> > >On 15/09/06, David Bronner <db...@google.com> wrote:
> > >>Hi everyone,
> > >>
> > >>In JMeter 2.1.1, I used RE extractors to parse some redirect information
> > >>for
> > >>later use.  In JMeter 2.2, it seems that my postprocessors aren't
> > getting
> > >>executed when a sampler gets a 302 and "Follow Redirects" is not
> > selected.
> > >>Is this correct?  Is there a way to get the old behavior where
> > >>postprocessors are always executed?
> > >>
> > >>Thanks,
> > >>Dave
> > >>
> > >>
> > >
> > >---------------------------------------------------------------------
> > >To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > >For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> > >
> >
> > _________________________________________________________________
> > Provlaga höstens goda recept
> > http://arla.msn.se/Partner/Msn/index____18291.aspx
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Redirects and regular expression extractors

Posted by David Bronner <db...@google.com>.
I eventually replicated the problem on a public site and opened bug
40562<http://issues.apache.org/bugzilla/show_bug.cgi?id=40562>with a
script that works in
2.1.1 and not in 2.2.   I think it only effects redirects from HTTPS sites,
but I'm not certain.

-Dave

On 9/21/06, Per Ekman <mr...@hotmail.com> wrote:
>
> It think this could be the same issue that I've posted about in
>
>
> http://www.nabble.com/Can%27t-use-Reqular-Extraction-Variable-in-request-path-tf2232503.html
>
> and also in
>
>
> http://www.nabble.com/JMeter-2.2-Extractor-Variable-Problems-tf1786056.html#a5064504
>
>
> >From: sebb <se...@gmail.com>
> >Reply-To: "JMeter Users List" <jm...@jakarta.apache.org>
> >To: "JMeter Users List" <jm...@jakarta.apache.org>
> >Subject: Re: Redirects and regular expression extractors
> >Date: Wed, 20 Sep 2006 19:00:18 +0100
> >
> >Works fine for me.
> >
> >I suggest you create a Bugzilla issue, and attach a simple example
> >JMX, plus the corresponding jmeter.log
> >
> >S.
> >On 15/09/06, David Bronner <db...@google.com> wrote:
> >>Hi everyone,
> >>
> >>In JMeter 2.1.1, I used RE extractors to parse some redirect information
> >>for
> >>later use.  In JMeter 2.2, it seems that my postprocessors aren't
> getting
> >>executed when a sampler gets a 302 and "Follow Redirects" is not
> selected.
> >>Is this correct?  Is there a way to get the old behavior where
> >>postprocessors are always executed?
> >>
> >>Thanks,
> >>Dave
> >>
> >>
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> >
>
> _________________________________________________________________
> Provlaga höstens goda recept
> http://arla.msn.se/Partner/Msn/index____18291.aspx
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Re: Redirects and regular expression extractors

Posted by Per Ekman <mr...@hotmail.com>.
It think this could be the same issue that I've posted about in

http://www.nabble.com/Can%27t-use-Reqular-Extraction-Variable-in-request-path-tf2232503.html

and also in

http://www.nabble.com/JMeter-2.2-Extractor-Variable-Problems-tf1786056.html#a5064504


>From: sebb <se...@gmail.com>
>Reply-To: "JMeter Users List" <jm...@jakarta.apache.org>
>To: "JMeter Users List" <jm...@jakarta.apache.org>
>Subject: Re: Redirects and regular expression extractors
>Date: Wed, 20 Sep 2006 19:00:18 +0100
>
>Works fine for me.
>
>I suggest you create a Bugzilla issue, and attach a simple example
>JMX, plus the corresponding jmeter.log
>
>S.
>On 15/09/06, David Bronner <db...@google.com> wrote:
>>Hi everyone,
>>
>>In JMeter 2.1.1, I used RE extractors to parse some redirect information 
>>for
>>later use.  In JMeter 2.2, it seems that my postprocessors aren't getting
>>executed when a sampler gets a 302 and "Follow Redirects" is not selected.
>>Is this correct?  Is there a way to get the old behavior where
>>postprocessors are always executed?
>>
>>Thanks,
>>Dave
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>

_________________________________________________________________
Provlaga höstens goda recept 
http://arla.msn.se/Partner/Msn/index____18291.aspx


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Redirects and regular expression extractors

Posted by sebb <se...@gmail.com>.
Works fine for me.

I suggest you create a Bugzilla issue, and attach a simple example
JMX, plus the corresponding jmeter.log

S.
On 15/09/06, David Bronner <db...@google.com> wrote:
> Hi everyone,
>
> In JMeter 2.1.1, I used RE extractors to parse some redirect information for
> later use.  In JMeter 2.2, it seems that my postprocessors aren't getting
> executed when a sampler gets a 302 and "Follow Redirects" is not selected.
> Is this correct?  Is there a way to get the old behavior where
> postprocessors are always executed?
>
> Thanks,
> Dave
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org