You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Shmuel Krakower <sh...@gmail.com> on 2012/11/14 14:33:37 UTC

Re: escaped absolute path not valid

That worked for me. Thanks.
The other problem I had is with re-directions to pages like:
https://www.bla.bla/public/media/[mix]videorenders
As the HTTPSampler itself doesn't escape URLs by itself, thus redirects to
special characters are breaking the sampler.

I will open bugzilla on this.

Shmuel Krakower.
Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.



On Fri, Oct 26, 2012 at 12:29 AM, Deepak Shetty <sh...@gmail.com> wrote:

> Hi
> I believe you need to use %5B and %5D for [ and ] if you are using the
> HTTPClient sampler.
> I dont think jmeter automatically did it for you - but you could use
> beanshell function to encode the url
>
> ${__javaScript(escape(" <https://www.bla.bla/public/media/[mix]video>
> /public/media/[mix]video
> <https://www.bla.bla/public/media/[mix]video>");)}<
> https://www.bla.bla/public/media/[mix]video>
> or use beanshell or something
> regards
> deepak
>
> On Thu, Oct 25, 2012 at 2:15 AM, Shmuel Krakower <sh...@gmail.com>
> wrote:
>
> > Hi,
> > I have an application which some of its URLs include brackets [].
> > In my web browser a URL like:
> > https://www.bla.bla/public/media/[mix]videorenders just fine, but in
> > JMeter I get:
> >
> > Response message: Non HTTP response message: Invalid uri '
> > https://www.bla.bla/public/media/[mix]video': escaped absolute path not
> > valid
> >
> >
> > Is it a bug or URLs should not include that kind of characters?
> >
> > Best,
> > Shmuel Krakower.
> >
>

Re: escaped absolute path not valid

Posted by Shmuel Krakower <sh...@gmail.com>.
Yes both.
I originally had on 2.8 and just verified on 2.9RC3 to make sure it is
still relevant.
On Jan 25, 2013 12:34 AM, "Philippe Mouawad" <ph...@gmail.com>
wrote:

> Thanks,
> you marked bug as affecting 2.9, can you confirm it also affects 2.8 ?
>
> Regards
> Philippe
> On Thu, Jan 24, 2013 at 10:28 PM, Shmuel Krakower <shmulikk@gmail.com
> >wrote:
>
> > Finally - https://issues.apache.org/bugzilla/show_bug.cgi?id=54482
> >
> > Shmuel Krakower.
> > www.Beatsoo.org - re-use your jmeter scripts for application performance
> > monitoring from worldwide locations for free.
> >
> >
> > On Wed, Nov 14, 2012 at 3:33 PM, Shmuel Krakower <sh...@gmail.com>
> > wrote:
> >
> > > That worked for me. Thanks.
> > > The other problem I had is with re-directions to pages like:
> > > https://www.bla.bla/public/media/[mix]videorenders
> > > As the HTTPSampler itself doesn't escape URLs by itself, thus redirects
> > to
> > > special characters are breaking the sampler.
> > >
> > > I will open bugzilla on this.
> > >
> > > Shmuel Krakower.
> > > Beatsoo.org - re-use your jmeter scripts for application performance
> > > monitoring from worldwide locations for free.
> > >
> > >
> > >
> > > On Fri, Oct 26, 2012 at 12:29 AM, Deepak Shetty <sh...@gmail.com>
> > wrote:
> > >
> > >> Hi
> > >> I believe you need to use %5B and %5D for [ and ] if you are using the
> > >> HTTPClient sampler.
> > >> I dont think jmeter automatically did it for you - but you could use
> > >> beanshell function to encode the url
> > >>
> > >> ${__javaScript(escape(" <https://www.bla.bla/public/media/[mix]video>
> > >> /public/media/[mix]video
> > >> <https://www.bla.bla/public/media/[mix]video>");)}<
> > >> https://www.bla.bla/public/media/[mix]video>
> > >> or use beanshell or something
> > >> regards
> > >> deepak
> > >>
> > >> On Thu, Oct 25, 2012 at 2:15 AM, Shmuel Krakower <sh...@gmail.com>
> > >> wrote:
> > >>
> > >> > Hi,
> > >> > I have an application which some of its URLs include brackets [].
> > >> > In my web browser a URL like:
> > >> > https://www.bla.bla/public/media/[mix]videorenders just fine, but
> in
> > >> > JMeter I get:
> > >> >
> > >> > Response message: Non HTTP response message: Invalid uri '
> > >> > https://www.bla.bla/public/media/[mix]video': escaped absolute path
> > not
> > >> > valid
> > >> >
> > >> >
> > >> > Is it a bug or URLs should not include that kind of characters?
> > >> >
> > >> > Best,
> > >> > Shmuel Krakower.
> > >> >
> > >>
> > >
> > >
> >
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>

Re: escaped absolute path not valid

Posted by Philippe Mouawad <ph...@gmail.com>.
Thanks,
you marked bug as affecting 2.9, can you confirm it also affects 2.8 ?

Regards
Philippe
On Thu, Jan 24, 2013 at 10:28 PM, Shmuel Krakower <sh...@gmail.com>wrote:

> Finally - https://issues.apache.org/bugzilla/show_bug.cgi?id=54482
>
> Shmuel Krakower.
> www.Beatsoo.org - re-use your jmeter scripts for application performance
> monitoring from worldwide locations for free.
>
>
> On Wed, Nov 14, 2012 at 3:33 PM, Shmuel Krakower <sh...@gmail.com>
> wrote:
>
> > That worked for me. Thanks.
> > The other problem I had is with re-directions to pages like:
> > https://www.bla.bla/public/media/[mix]videorenders
> > As the HTTPSampler itself doesn't escape URLs by itself, thus redirects
> to
> > special characters are breaking the sampler.
> >
> > I will open bugzilla on this.
> >
> > Shmuel Krakower.
> > Beatsoo.org - re-use your jmeter scripts for application performance
> > monitoring from worldwide locations for free.
> >
> >
> >
> > On Fri, Oct 26, 2012 at 12:29 AM, Deepak Shetty <sh...@gmail.com>
> wrote:
> >
> >> Hi
> >> I believe you need to use %5B and %5D for [ and ] if you are using the
> >> HTTPClient sampler.
> >> I dont think jmeter automatically did it for you - but you could use
> >> beanshell function to encode the url
> >>
> >> ${__javaScript(escape(" <https://www.bla.bla/public/media/[mix]video>
> >> /public/media/[mix]video
> >> <https://www.bla.bla/public/media/[mix]video>");)}<
> >> https://www.bla.bla/public/media/[mix]video>
> >> or use beanshell or something
> >> regards
> >> deepak
> >>
> >> On Thu, Oct 25, 2012 at 2:15 AM, Shmuel Krakower <sh...@gmail.com>
> >> wrote:
> >>
> >> > Hi,
> >> > I have an application which some of its URLs include brackets [].
> >> > In my web browser a URL like:
> >> > https://www.bla.bla/public/media/[mix]videorenders just fine, but in
> >> > JMeter I get:
> >> >
> >> > Response message: Non HTTP response message: Invalid uri '
> >> > https://www.bla.bla/public/media/[mix]video': escaped absolute path
> not
> >> > valid
> >> >
> >> >
> >> > Is it a bug or URLs should not include that kind of characters?
> >> >
> >> > Best,
> >> > Shmuel Krakower.
> >> >
> >>
> >
> >
>



-- 
Cordialement.
Philippe Mouawad.

Re: escaped absolute path not valid

Posted by Shmuel Krakower <sh...@gmail.com>.
Finally - https://issues.apache.org/bugzilla/show_bug.cgi?id=54482

Shmuel Krakower.
www.Beatsoo.org - re-use your jmeter scripts for application performance
monitoring from worldwide locations for free.


On Wed, Nov 14, 2012 at 3:33 PM, Shmuel Krakower <sh...@gmail.com> wrote:

> That worked for me. Thanks.
> The other problem I had is with re-directions to pages like:
> https://www.bla.bla/public/media/[mix]videorenders
> As the HTTPSampler itself doesn't escape URLs by itself, thus redirects to
> special characters are breaking the sampler.
>
> I will open bugzilla on this.
>
> Shmuel Krakower.
> Beatsoo.org - re-use your jmeter scripts for application performance
> monitoring from worldwide locations for free.
>
>
>
> On Fri, Oct 26, 2012 at 12:29 AM, Deepak Shetty <sh...@gmail.com> wrote:
>
>> Hi
>> I believe you need to use %5B and %5D for [ and ] if you are using the
>> HTTPClient sampler.
>> I dont think jmeter automatically did it for you - but you could use
>> beanshell function to encode the url
>>
>> ${__javaScript(escape(" <https://www.bla.bla/public/media/[mix]video>
>> /public/media/[mix]video
>> <https://www.bla.bla/public/media/[mix]video>");)}<
>> https://www.bla.bla/public/media/[mix]video>
>> or use beanshell or something
>> regards
>> deepak
>>
>> On Thu, Oct 25, 2012 at 2:15 AM, Shmuel Krakower <sh...@gmail.com>
>> wrote:
>>
>> > Hi,
>> > I have an application which some of its URLs include brackets [].
>> > In my web browser a URL like:
>> > https://www.bla.bla/public/media/[mix]videorenders just fine, but in
>> > JMeter I get:
>> >
>> > Response message: Non HTTP response message: Invalid uri '
>> > https://www.bla.bla/public/media/[mix]video': escaped absolute path not
>> > valid
>> >
>> >
>> > Is it a bug or URLs should not include that kind of characters?
>> >
>> > Best,
>> > Shmuel Krakower.
>> >
>>
>
>