]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
CSPACE-4406: Adding comments so we can fix refObjs payload when the target of the...
authorRichard Millet <remillet@berkeley.edu>
Wed, 4 Jul 2012 01:11:56 +0000 (18:11 -0700)
committerRichard Millet <remillet@berkeley.edu>
Wed, 4 Jul 2012 01:11:56 +0000 (18:11 -0700)
services/common/src/main/java/org/collectionspace/services/common/vocabulary/RefNameServiceUtils.java

index c793447490b7b6ab489741c9f640646fe4bdfac1..e6cce710efc80a3fa119692c3adf8275193bd77b 100644 (file)
@@ -257,10 +257,10 @@ public class RefNameServiceUtils {
                String fieldList = "docType|docId|docNumber|docName|sourceField|uri|updatedAt|workflowState";\r
                commonList.setFieldsReturned(fieldList);\r
                \r
-               int nRefsFound = processRefObjsDocList(docList, refName, queriedServiceBindings, authRefFieldsByService,\r
+               int nRefsFound = processRefObjsDocList(docList, refName, queriedServiceBindings, authRefFieldsByService, // the actual list size needs to be updated to the size of "list"\r
                                                                list, null);\r
                if(logger.isDebugEnabled() && (nRefsFound < docList.size())) {\r
-                       logger.debug("Internal curiosity: got fewer matches of refs than # docs matched...");\r
+                       logger.debug("Internal curiosity: got fewer matches of refs than # docs matched..."); // We found a ref to ourself and have excluded it.\r
                }\r
        } catch (Exception e) {\r
                        logger.error("Could not retrieve the Nuxeo repository", e);\r