https://bz.apache.org/bugzilla/show_bug.cgi?id=58108

--- Comment #6 from xiangjian <[email protected]> ---
(In reply to Sebb from comment #5)
> Thanks, that is a great help.
> 
> I can confirm the problem, but I've no idea what is causing it yet.


from the source code ,I find something ,it may help:

sampler.toString() will do( from HttpSamplerBase.java) :

    @Override
    public String toString() {
        try {
            StringBuilder stringBuffer = new StringBuilder();
            stringBuffer.append(this.getUrl().toString());//problem is here

this.getUrl().toStirng() make the bug;

and from the functin getUrl():

  if(HTTPConstants.GET.equals(getMethod()) ||
HTTPConstants.DELETE.equals(getMethod())) {
            // Get the query string encoded in specified encoding
            // If no encoding is specified by user, we will get it
            // encoded in UTF-8, which is what the HTTP spec says
            String queryString = getQueryString(getContentEncoding());//problem
is here

getQueryString() make the bug;

and from the function getQueryStirng():

   try {
               item.getEncodedValue(contentEncoding);// problem is here
           }
finnally , i find the bug may be in the class AbstractTestElement
when i do sampler.toString(),it will do getPropertyAsString(),and the
parameters can not be replaced any more after it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to