incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r943229 - in /incubator/lcf/trunk/modules/connectors: meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java
Date Tue, 11 May 2010 18:59:32 GMT
Author: kwright
Date: Tue May 11 18:59:31 2010
New Revision: 943229

URL: http://svn.apache.org/viewvc?rev=943229&view=rev
Log:
Revert 'redirection' change for SOAP requests of type POST, since that causes an IllegalArgumentException
from HttpClient.

Modified:
    incubator/lcf/trunk/modules/connectors/meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java
    incubator/lcf/trunk/modules/connectors/sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java

Modified: incubator/lcf/trunk/modules/connectors/meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java?rev=943229&r1=943228&r2=943229&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java
(original)
+++ incubator/lcf/trunk/modules/connectors/meridio/connector/org/apache/lcf/crawler/connectors/meridio/CommonsHTTPSender.java
Tue May 11 18:59:31 2010
@@ -239,10 +239,9 @@ public class CommonsHTTPSender extends B
         method = new PostMethod(relativeTargetURL);
       } else {
         method = new GetMethod(relativeTargetURL);
+        method.setFollowRedirects(true);
       }
 
-      method.setFollowRedirects(true);
-
       // The variable 'releaseMethod' is null if we no longer have to release the connection
into the pool
       // on exit from this section.  Otherwise it remains set to the method, so that all
exceptions cause
       // the release to occur.

Modified: incubator/lcf/trunk/modules/connectors/sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/modules/connectors/sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java?rev=943229&r1=943228&r2=943229&view=diff
==============================================================================
--- incubator/lcf/trunk/modules/connectors/sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java
(original)
+++ incubator/lcf/trunk/modules/connectors/sharepoint/connector/org/apache/lcf/crawler/connectors/sharepoint/CommonsHTTPSender.java
Tue May 11 18:59:31 2010
@@ -235,10 +235,10 @@ public class CommonsHTTPSender extends B
         method = new PostMethod(relativeTargetURL);
       } else {
         method = new GetMethod(relativeTargetURL);
+        // Allow redirection
+        method.setFollowRedirects(true);
       }
 
-      // Allow redirection
-      method.setFollowRedirects(true);
 
       // The variable 'releaseMethod' is null if we no longer have to release the connection
into the pool
       // on exit from this section.  Otherwise it remains set to the method, so that all
exceptions cause



Mime
View raw message