manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1501620 - in /manifoldcf/branches/CONNECTORS-731/connectors: dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/ googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/ jira/c...
Date Wed, 10 Jul 2013 00:26:47 GMT
Author: kwright
Date: Wed Jul 10 00:26:46 2013
New Revision: 1501620

URL: http://svn.apache.org/r1501620
Log:
Debug.

Modified:
    manifoldcf/branches/CONNECTORS-731/connectors/dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/DropboxRepositoryConnector.java
    manifoldcf/branches/CONNECTORS-731/connectors/googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/GoogleDriveRepositoryConnector.java
    manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraIssue.java
    manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraRepositoryConnector.java

Modified: manifoldcf/branches/CONNECTORS-731/connectors/dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/DropboxRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/connectors/dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/DropboxRepositoryConnector.java?rev=1501620&r1=1501619&r2=1501620&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-731/connectors/dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/DropboxRepositoryConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-731/connectors/dropbox/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/dropbox/DropboxRepositoryConnector.java
Wed Jul 10 00:26:46 2013
@@ -799,9 +799,10 @@ public class DropboxRepositoryConnector 
     public void run() {
       try {
         session.getSeeds(seedBuffer,path,25000); //upper limit on files to get supported
by dropbox api in a single directory
-        seedBuffer.signalDone();
       } catch (Throwable e) {
         this.exception = e;
+      } finally {
+        seedBuffer.signalDone();
       }
     }
 

Modified: manifoldcf/branches/CONNECTORS-731/connectors/googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/GoogleDriveRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/connectors/googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/GoogleDriveRepositoryConnector.java?rev=1501620&r1=1501619&r2=1501620&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-731/connectors/googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/GoogleDriveRepositoryConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-731/connectors/googledrive/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/googledrive/GoogleDriveRepositoryConnector.java
Wed Jul 10 00:26:46 2013
@@ -851,9 +851,10 @@ public class GoogleDriveRepositoryConnec
     public void run() {
       try {
         session.getSeeds(seedBuffer, googleDriveQuery);
-        seedBuffer.signalDone();
       } catch (Throwable e) {
         this.exception = e;
+      } finally {
+        seedBuffer.signalDone();
       }
     }
 
@@ -1247,9 +1248,10 @@ public class GoogleDriveRepositoryConnec
     public void run() {
       try {
         session.getChildren(childBuffer, nodeId);
-        childBuffer.signalDone();
       } catch (Throwable e) {
         this.exception = e;
+      } finally {
+        childBuffer.signalDone();
       }
     }
 

Modified: manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraIssue.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraIssue.java?rev=1501620&r1=1501619&r2=1501620&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraIssue.java
(original)
+++ manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraIssue.java
Wed Jul 10 00:26:46 2013
@@ -66,7 +66,7 @@ public class JiraIssue extends JiraJSONR
     JSONObject fields = (JSONObject)object.get(KEY_FIELDS);
     if (fields == null)
       return null;
-    JSONObject createdDate = (JSONObject)fields.get(KEY_CREATED);
+    Object createdDate = fields.get(KEY_CREATED);
     if (createdDate == null)
       return null;
     return DateParser.parseISO8601Date(createdDate.toString());
@@ -76,7 +76,7 @@ public class JiraIssue extends JiraJSONR
     JSONObject fields = (JSONObject)object.get(KEY_FIELDS);
     if (fields == null)
       return null;
-    JSONObject updatedDate = (JSONObject)fields.get(KEY_UPDATED);
+    Object updatedDate = fields.get(KEY_UPDATED);
     if (updatedDate == null)
       return null;
     return DateParser.parseISO8601Date(updatedDate.toString());
@@ -86,7 +86,7 @@ public class JiraIssue extends JiraJSONR
     JSONObject fields = (JSONObject)object.get(KEY_FIELDS);
     if (fields == null)
       return null;
-    JSONObject description = (JSONObject)fields.get(KEY_DESCRIPTION);
+    Object description = fields.get(KEY_DESCRIPTION);
     if (description == null)
       return null;
     return description.toString();
@@ -96,7 +96,7 @@ public class JiraIssue extends JiraJSONR
     JSONObject fields = (JSONObject)object.get(KEY_FIELDS);
     if (fields == null)
       return null;
-    JSONObject summary = (JSONObject)fields.get(KEY_DESCRIPTION);
+    Object summary = fields.get(KEY_SUMMARY);
     if (summary == null)
       return null;
     return summary.toString();

Modified: manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraRepositoryConnector.java
URL: http://svn.apache.org/viewvc/manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraRepositoryConnector.java?rev=1501620&r1=1501619&r2=1501620&view=diff
==============================================================================
--- manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraRepositoryConnector.java
(original)
+++ manifoldcf/branches/CONNECTORS-731/connectors/jira/connector/src/main/java/org/apache/manifoldcf/crawler/connectors/jira/JiraRepositoryConnector.java
Wed Jul 10 00:26:46 2013
@@ -1160,9 +1160,10 @@ public class JiraRepositoryConnector ext
     public void run() {
       try {
         session.getSeeds(seedBuffer, jiraDriveQuery);
-        seedBuffer.signalDone();
       } catch (Throwable e) {
         this.exception = e;
+      } finally {
+        seedBuffer.signalDone();
       }
     }
 



Mime
View raw message