]> git.aero2k.de Git - tmp/jakarta-migration.git/commitdiff
Add comment.
authorRay Lee <ray.lee@lyrasis.org>
Wed, 24 Jul 2024 15:04:15 +0000 (11:04 -0400)
committerRay Lee <ray.lee@lyrasis.org>
Wed, 24 Jul 2024 15:04:42 +0000 (11:04 -0400)
services/common/src/main/java/org/collectionspace/services/nuxeo/client/java/NuxeoRepositoryClientImpl.java

index db32494810dabc83692d142494d1d6bed65eeb72..537cba57aee6a1a31c4b2d28a531dec260d2e7b9 100644 (file)
@@ -864,6 +864,10 @@ public class NuxeoRepositoryClientImpl implements RepositoryClient<PoxPayloadIn,
             if (handler.isCMISQuery() == true) {
                 String inList = buildInListForDocTypes(docTypes);
                 ctx.getQueryParams().add(IQueryManager.SEARCH_RELATED_MATCH_OBJ_DOCTYPES, inList);
+                // TODO: If there is an existing SEARCH_RELATED_MATCH_OBJ_DOCTYPES parameter,
+                // filter it using the values in inList, instead of adding another value.
+                // Just adding inList as another parameter value doesn't do anything to a parameter
+                // that was passed in, and that unfiltered list ends up being used for the search.
                 if (isSubjectOrObjectQuery(ctx)) {
                        docList = getFilteredCMISForSubjectOrObject(repoSession, ctx, handler, queryContext);
                 } else {