You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2011/11/20 23:16:51 UTC

svn commit: r1204281 - /jmeter/trunk/bin/jmeter.properties

Author: pmouawad
Date: Sun Nov 20 22:16:51 2011
New Revision: 1204281

URL: http://svn.apache.org/viewvc?rev=1204281&view=rev
Log:
Bug 43294 - XPath Extractor namespace problems

Modified:
    jmeter/trunk/bin/jmeter.properties

Modified: jmeter/trunk/bin/jmeter.properties
URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.properties?rev=1204281&r1=1204280&r2=1204281&view=diff
==============================================================================
--- jmeter/trunk/bin/jmeter.properties (original)
+++ jmeter/trunk/bin/jmeter.properties Sun Nov 20 22:16:51 2011
@@ -52,6 +52,13 @@ cookies=cookies
 # XML Reader(Parser) - Must implement SAX 2 specs
 xml.parser=org.apache.xerces.parsers.SAXParser
 
+# Path to a Properties file containing Namespace mapping in the form
+# prefix=Namespace
+# Don't forget to escape : by \: in the file
+# Example:
+# ns=http\://biz.aol.com/schema/2006-12-18
+#xpath.namespace.config=
+
 #---------------------------------------------------------------------------
 # SSL configuration
 #---------------------------------------------------------------------------



Re: svn commit: r1204281 - /jmeter/trunk/bin/jmeter.properties

Posted by Philippe Mouawad <ph...@gmail.com>.
Ok clearer.
Thanks for the link.
I fixed comment.

Regards
Philippe

On Mon, Nov 21, 2011 at 12:47 PM, sebb <se...@gmail.com> wrote:

> On 21 November 2011 08:32, Philippe Mouawad <ph...@gmail.com>
> wrote:
> > Hello Sebb,
> > These are the same limitations on Properties files:
> >
> http://stackoverflow.com/questions/2406975/escaping-equal-sign-in-properties-files
> >
> > What do you mean by:
> >
> >   - Is it really necessary to escape : in parameter values?
>
> You wrote:
>
> +# Don't forget to escape : by \: in the file
> +# Example:
> +# ns=
>
> However, the entries
>
> ns1=http\://biz.aol.com/schema/2006-12-18
> and
> ns2=http://biz.aol.com/schema/2006-12-18
>
> work equally well.
>
> According to:
>
>
> http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29
>
> it is necessary to escape ':' (and '=') when they are part of the
> *key*, but not otherwise.
>
> So I think your comment could (and should) be removed, unless you can
> find documentation that states otherwise.
>
> >
> >
> > Maybe my comment is confusing.
> >
> > Regards
> >
> > On Mon, Nov 21, 2011 at 12:45 AM, sebb <se...@gmail.com> wrote:
> >
> >> On 20 November 2011 22:16,  <pm...@apache.org> wrote:
> >> > Author: pmouawad
> >> > Date: Sun Nov 20 22:16:51 2011
> >> > New Revision: 1204281
> >> >
> >> > URL: http://svn.apache.org/viewvc?rev=1204281&view=rev
> >> > Log:
> >> > Bug 43294 - XPath Extractor namespace problems
> >> >
> >> > Modified:
> >> >    jmeter/trunk/bin/jmeter.properties
> >> >
> >> > Modified: jmeter/trunk/bin/jmeter.properties
> >> > URL:
> >>
> http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.properties?rev=1204281&r1=1204280&r2=1204281&view=diff
> >> >
> >>
> ==============================================================================
> >> > --- jmeter/trunk/bin/jmeter.properties (original)
> >> > +++ jmeter/trunk/bin/jmeter.properties Sun Nov 20 22:16:51 2011
> >> > @@ -52,6 +52,13 @@ cookies=cookies
> >> >  # XML Reader(Parser) - Must implement SAX 2 specs
> >> >  xml.parser=org.apache.xerces.parsers.SAXParser
> >> >
> >> > +# Path to a Properties file containing Namespace mapping in the form
> >> > +# prefix=Namespace
> >> > +# Don't forget to escape : by \: in the file
> >>
> >> Is it really necessary to escape : in parameter values?
> >>
> >> > +# Example:
> >> > +# ns=http\://biz.aol.com/schema/2006-12-18
> >> > +#xpath.namespace.config=
> >> > +
> >> >
> >>
>  #---------------------------------------------------------------------------
> >> >  # SSL configuration
> >> >
> >>
>  #---------------------------------------------------------------------------
> >> >
> >> >
> >> >
> >>
> >
> >
> >
> > --
> > Cordialement.
> > Philippe Mouawad.
> >
>



-- 
Cordialement.
Philippe Mouawad.

Re: svn commit: r1204281 - /jmeter/trunk/bin/jmeter.properties

Posted by sebb <se...@gmail.com>.
On 21 November 2011 08:32, Philippe Mouawad <ph...@gmail.com> wrote:
> Hello Sebb,
> These are the same limitations on Properties files:
> http://stackoverflow.com/questions/2406975/escaping-equal-sign-in-properties-files
>
> What do you mean by:
>
>   - Is it really necessary to escape : in parameter values?

You wrote:

+# Don't forget to escape : by \: in the file
+# Example:
+# ns=

However, the entries

ns1=http\://biz.aol.com/schema/2006-12-18
and
ns2=http://biz.aol.com/schema/2006-12-18

work equally well.

According to:

http://download.oracle.com/javase/7/docs/api/java/util/Properties.html#load%28java.io.Reader%29

it is necessary to escape ':' (and '=') when they are part of the
*key*, but not otherwise.

So I think your comment could (and should) be removed, unless you can
find documentation that states otherwise.

>
>
> Maybe my comment is confusing.
>
> Regards
>
> On Mon, Nov 21, 2011 at 12:45 AM, sebb <se...@gmail.com> wrote:
>
>> On 20 November 2011 22:16,  <pm...@apache.org> wrote:
>> > Author: pmouawad
>> > Date: Sun Nov 20 22:16:51 2011
>> > New Revision: 1204281
>> >
>> > URL: http://svn.apache.org/viewvc?rev=1204281&view=rev
>> > Log:
>> > Bug 43294 - XPath Extractor namespace problems
>> >
>> > Modified:
>> >    jmeter/trunk/bin/jmeter.properties
>> >
>> > Modified: jmeter/trunk/bin/jmeter.properties
>> > URL:
>> http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.properties?rev=1204281&r1=1204280&r2=1204281&view=diff
>> >
>> ==============================================================================
>> > --- jmeter/trunk/bin/jmeter.properties (original)
>> > +++ jmeter/trunk/bin/jmeter.properties Sun Nov 20 22:16:51 2011
>> > @@ -52,6 +52,13 @@ cookies=cookies
>> >  # XML Reader(Parser) - Must implement SAX 2 specs
>> >  xml.parser=org.apache.xerces.parsers.SAXParser
>> >
>> > +# Path to a Properties file containing Namespace mapping in the form
>> > +# prefix=Namespace
>> > +# Don't forget to escape : by \: in the file
>>
>> Is it really necessary to escape : in parameter values?
>>
>> > +# Example:
>> > +# ns=http\://biz.aol.com/schema/2006-12-18
>> > +#xpath.namespace.config=
>> > +
>> >
>>  #---------------------------------------------------------------------------
>> >  # SSL configuration
>> >
>>  #---------------------------------------------------------------------------
>> >
>> >
>> >
>>
>
>
>
> --
> Cordialement.
> Philippe Mouawad.
>

Re: svn commit: r1204281 - /jmeter/trunk/bin/jmeter.properties

Posted by Philippe Mouawad <ph...@gmail.com>.
Hello Sebb,
These are the same limitations on Properties files:
http://stackoverflow.com/questions/2406975/escaping-equal-sign-in-properties-files

What do you mean by:

   - Is it really necessary to escape : in parameter values?


Maybe my comment is confusing.

Regards

On Mon, Nov 21, 2011 at 12:45 AM, sebb <se...@gmail.com> wrote:

> On 20 November 2011 22:16,  <pm...@apache.org> wrote:
> > Author: pmouawad
> > Date: Sun Nov 20 22:16:51 2011
> > New Revision: 1204281
> >
> > URL: http://svn.apache.org/viewvc?rev=1204281&view=rev
> > Log:
> > Bug 43294 - XPath Extractor namespace problems
> >
> > Modified:
> >    jmeter/trunk/bin/jmeter.properties
> >
> > Modified: jmeter/trunk/bin/jmeter.properties
> > URL:
> http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.properties?rev=1204281&r1=1204280&r2=1204281&view=diff
> >
> ==============================================================================
> > --- jmeter/trunk/bin/jmeter.properties (original)
> > +++ jmeter/trunk/bin/jmeter.properties Sun Nov 20 22:16:51 2011
> > @@ -52,6 +52,13 @@ cookies=cookies
> >  # XML Reader(Parser) - Must implement SAX 2 specs
> >  xml.parser=org.apache.xerces.parsers.SAXParser
> >
> > +# Path to a Properties file containing Namespace mapping in the form
> > +# prefix=Namespace
> > +# Don't forget to escape : by \: in the file
>
> Is it really necessary to escape : in parameter values?
>
> > +# Example:
> > +# ns=http\://biz.aol.com/schema/2006-12-18
> > +#xpath.namespace.config=
> > +
> >
>  #---------------------------------------------------------------------------
> >  # SSL configuration
> >
>  #---------------------------------------------------------------------------
> >
> >
> >
>



-- 
Cordialement.
Philippe Mouawad.

Re: svn commit: r1204281 - /jmeter/trunk/bin/jmeter.properties

Posted by sebb <se...@gmail.com>.
On 20 November 2011 22:16,  <pm...@apache.org> wrote:
> Author: pmouawad
> Date: Sun Nov 20 22:16:51 2011
> New Revision: 1204281
>
> URL: http://svn.apache.org/viewvc?rev=1204281&view=rev
> Log:
> Bug 43294 - XPath Extractor namespace problems
>
> Modified:
>    jmeter/trunk/bin/jmeter.properties
>
> Modified: jmeter/trunk/bin/jmeter.properties
> URL: http://svn.apache.org/viewvc/jmeter/trunk/bin/jmeter.properties?rev=1204281&r1=1204280&r2=1204281&view=diff
> ==============================================================================
> --- jmeter/trunk/bin/jmeter.properties (original)
> +++ jmeter/trunk/bin/jmeter.properties Sun Nov 20 22:16:51 2011
> @@ -52,6 +52,13 @@ cookies=cookies
>  # XML Reader(Parser) - Must implement SAX 2 specs
>  xml.parser=org.apache.xerces.parsers.SAXParser
>
> +# Path to a Properties file containing Namespace mapping in the form
> +# prefix=Namespace
> +# Don't forget to escape : by \: in the file

Is it really necessary to escape : in parameter values?

> +# Example:
> +# ns=http\://biz.aol.com/schema/2006-12-18
> +#xpath.namespace.config=
> +
>  #---------------------------------------------------------------------------
>  # SSL configuration
>  #---------------------------------------------------------------------------
>
>
>