You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2006/01/18 12:52:11 UTC
DO NOT REPLY [Bug 37807] - Encoding problem of URL called from parent page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37807>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=37807
------- Additional Comments From jesko67@gmx.de 2006-01-18 12:52 -------
I made the following change that helped for me.
Version: jakarta-jmeter-2-1.20060113
Class: HTTPSamplerBase
Method: protected HTTPSampleResult downloadPageResources(HTTPSampleResult res,
HTTPSampleResult container, int frameDepth)
Lines: 594 - 605
Before change:
while (urls.hasNext()) {
Object binURL = urls.next();
try {
HTTPSampleResult binRes = sample((URL) binURL, GET, false, frameDepth + 1);
res.addSubResult(binRes);
res.setSuccessful(res.isSuccessful() && binRes.isSuccessful());
} catch (ClassCastException e) {
res.addSubResult(errorResult(new Exception(binURL + " is not a correct
URI"), res));
res.setSuccessful(false);
continue;
}
}
After change:
while (urls.hasNext()) {
String binURL = encodeSpaces(urls.next().toString());
try {
HTTPSampleResult binRes = sample(new URL(binURL), GET, false, frameDepth + 1);
res.addSubResult(binRes);
res.setSuccessful(res.isSuccessful() && binRes.isSuccessful());
} catch (MalformedURLException e) {
res.addSubResult(errorResult(new Exception(binURL + " is not a correct
URI"), res));
res.setSuccessful(false);
continue;
}
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org