View | Details | Raw Unified | Return to bug 58923
Collapse All | Expand All

(-)a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java (-1 / +8 lines)
Lines 22-27 import java.io.InputStream; Link Here
22
import java.io.PrintStream;
22
import java.io.PrintStream;
23
import java.io.UnsupportedEncodingException;
23
import java.io.UnsupportedEncodingException;
24
import java.net.MalformedURLException;
24
import java.net.MalformedURLException;
25
import java.net.URI;
25
import java.net.URISyntaxException;
26
import java.net.URISyntaxException;
26
import java.net.URL;
27
import java.net.URL;
27
import java.security.MessageDigest;
28
import java.security.MessageDigest;
Lines 1254-1260 public abstract class HTTPSamplerBase extends AbstractSampler Link Here
1254
                        if (pattern != null && localMatcher != null && !localMatcher.matches(urlStrEnc, pattern)) {
1255
                        if (pattern != null && localMatcher != null && !localMatcher.matches(urlStrEnc, pattern)) {
1255
                            continue; // we have a pattern and the URL does not match, so skip it
1256
                            continue; // we have a pattern and the URL does not match, so skip it
1256
                        }
1257
                        }
1257
                        
1258
                        try {
1259
                            url = url.toURI().normalize().toURL();
1260
                        } catch (MalformedURLException|URISyntaxException e) {
1261
                            res.addSubResult(errorResult(new Exception(urlStrEnc + " URI can not be normalized", e), new HTTPSampleResult(res)));
1262
                            setParentSampleSuccess(res, false);
1263
                            continue;
1264
                        }
1258
                        if (isConcurrentDwn()) {
1265
                        if (isConcurrentDwn()) {
1259
                            // if concurrent download emb. resources, add to a list for async gets later
1266
                            // if concurrent download emb. resources, add to a list for async gets later
1260
                            liste.add(new ASyncSample(url, HTTPConstants.GET, false, frameDepth + 1, getCookieManager(), this));
1267
                            liste.add(new ASyncSample(url, HTTPConstants.GET, false, frameDepth + 1, getCookieManager(), this));

Return to bug 58923