jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1511500 - in /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler: HTTPHC3Impl.java HTTPHC4Impl.java
Date Wed, 07 Aug 2013 21:14:43 GMT
Author: pmouawad
Date: Wed Aug  7 21:14:42 2013
New Revision: 1511500

URL: http://svn.apache.org/r1511500
Log:
Bug 54482 - HC fails to follow redirects with non-encoded chars
Oups take into account new exceptions
Make error message more complete
Bugzilla Id: 54482

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java?rev=1511500&r1=1511499&r2=1511500&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
Wed Aug  7 21:14:42 2013
@@ -318,8 +318,8 @@ public class HTTPHC3Impl extends HTTPHCA
                 }
                 try {
                     res.setRedirectLocation(ConversionUtils.sanitizeUrl(new URL(headerLocation.getValue())).toString());
-                } catch (URISyntaxException e) {
-                    log.error("Error sanitizing URL:"+headerLocation.getValue());
+                } catch (Exception e) {
+                    log.error("Error sanitizing URL:"+headerLocation.getValue()+", message:"+e.getMessage());
                 }
             }
 

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java?rev=1511500&r1=1511499&r2=1511500&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
(original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java
Wed Aug  7 21:14:42 2013
@@ -26,7 +26,6 @@ import java.io.OutputStream;
 import java.io.UnsupportedEncodingException;
 import java.net.InetAddress;
 import java.net.URI;
-import java.net.URISyntaxException;
 import java.net.URL;
 import java.net.URLDecoder;
 import java.nio.charset.Charset;
@@ -329,8 +328,8 @@ public class HTTPHC4Impl extends HTTPHCA
                 }
                 try {
                     res.setRedirectLocation(ConversionUtils.sanitizeUrl(new URL(headerLocation.getValue())).toString());
-                } catch (URISyntaxException e) {
-                    log.error("Error sanitizing URL:"+headerLocation.getValue());
+                } catch (Exception e) {
+                    log.error("Error sanitizing URL:"+headerLocation.getValue()+", message:"+e.getMessage());
                 }
             }
 



Mime
View raw message