From 47d7516354fd6e5959c27e019287ace63d0fcfcc Mon Sep 17 00:00:00 2001 From: MichalKinas Date: Tue, 17 Oct 2023 14:37:38 +0200 Subject: [PATCH] Apply PATH workarounds for PNAME and ANAME --- .../src/lib/document-list/services/custom-resources.service.ts | 3 +-- .../add-permission/search-config-permission.service.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/content-services/src/lib/document-list/services/custom-resources.service.ts b/lib/content-services/src/lib/document-list/services/custom-resources.service.ts index 5d8a1998720..5bf7d175837 100644 --- a/lib/content-services/src/lib/document-list/services/custom-resources.service.ts +++ b/lib/content-services/src/lib/document-list/services/custom-resources.service.ts @@ -98,8 +98,7 @@ export class CustomResourcesService { getRecentFiles(personId: string, pagination: PaginationModel, filters?: string[]): Observable { const defaultFilter = [ 'TYPE:"content"', - //TODO '*' for now cause exception to be thrown, Team6 is working on it - '-PATH:"//cm:wiki/"', + '-PATH:"//cm:wiki/*"', '-TYPE:"app:filelink"', '-TYPE:"cm:thumbnail"', '-TYPE:"cm:failedThumbnail"', diff --git a/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts b/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts index 92f4ed7efa0..7b7e956cc21 100644 --- a/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts +++ b/lib/content-services/src/lib/permission-manager/components/add-permission/search-config-permission.service.ts @@ -54,8 +54,7 @@ export class SearchPermissionConfigurationService implements SearchConfiguration if (this.queryProvider?.query) { query = this.queryProvider.query.replace(new RegExp(/\${([^}]+)}/g), searchTerm); } else { - //TODO change to PARENT: with noderef of app.default or to PATH://cm:APP.DEFAULT/* - query = `(username:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*)`; + query = `(username:*${searchTerm}* OR email:*${searchTerm}* OR firstName:*${searchTerm}* OR lastName:*${searchTerm}* OR authorityName:*${searchTerm}* OR authorityDisplayName:*${searchTerm}*) AND PATH:"//cm:APP.DEFAULT/*"`; } return query; }