manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1650351 - in /manifoldcf/trunk: CHANGES.txt framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java
Date Thu, 08 Jan 2015 18:41:52 GMT
Author: kwright
Date: Thu Jan  8 18:41:51 2015
New Revision: 1650351

URL: http://svn.apache.org/r1650351
Log:
Fix for CONNECTORS-1138.

Modified:
    manifoldcf/trunk/CHANGES.txt
    manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java

Modified: manifoldcf/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/CHANGES.txt?rev=1650351&r1=1650350&r2=1650351&view=diff
==============================================================================
--- manifoldcf/trunk/CHANGES.txt (original)
+++ manifoldcf/trunk/CHANGES.txt Thu Jan  8 18:41:51 2015
@@ -3,6 +3,10 @@ $Id$
 
 ======================= 2.1-dev =====================
 
+CONNECTORS-1138: Loss of all metadata fields but one on pipeline
+bifurcation.
+(Salih Sen, Karl Wright)
+
 CONNECTORS-1136: Update the user documentation to account for
 changes in the metadata adjuster transformer.
 (Karl Wright)

Modified: manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java?rev=1650351&r1=1650350&r2=1650351&view=diff
==============================================================================
--- manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java
(original)
+++ manifoldcf/trunk/framework/agents/src/main/java/org/apache/manifoldcf/agents/incrementalingest/RepositoryDocumentFactory.java
Thu Jan  8 18:41:51 2015
@@ -56,13 +56,12 @@ public class RepositoryDocumentFactory
     throws ManifoldCFException, IOException
   {
     this.original = document;
-    
     try
     {
       this.binaryTracker = new TempFileInput(document.getBinaryStream());
       // Copy all reader streams
       Iterator<String> iter = document.getFields();
-      if (iter.hasNext())
+      while (iter.hasNext())
       {
         String fieldName = iter.next();
         Object[] objects = document.getField(fieldName);
@@ -133,7 +132,7 @@ public class RepositoryDocumentFactory
     rd.setBinary(binaryTracker.getStream(),original.getBinaryLength());
     // Copy metadata fields (including minting new Readers where needed)
     Iterator<String> iter = original.getFields();
-    if (iter.hasNext())
+    while (iter.hasNext())
     {
       String fieldName = iter.next();
       Object[] objects = original.getField(fieldName);



Mime
View raw message