[Regression] Records modified by System user aren't found at rm search anymore

Description

Steps to reproduce:
1. Create a record category with retention schedule applied on records and a Cut off immediately step
2. Create a record folder within the category
3. File 2 records and complete them
4. Cut off only one of them
Expected & Actual: Record is modified by current user (admin for example)
5. Wait (~5 min) until the other record is cut off automatically by the job.
Expected & Actual: Record is modified by System user
6. Perform a rm search by rma:identifier:* (Show records completed and incompleted)
Expected:
Both records are displayed in search results
Actual:
Only the record modified by current user is displayed in search results

7. Perform a rm search by cm:modifier:admin
Expected & Actual: Only the record modified by current user is displayed in search results

8. Perform a rm search by cm:modifier:System
Expected: Only the record modified by System user is displayed in search results
Actual: No results

Another way to reproduce:
1. Create a DoD RM site
2. Create a DoD record with a publication date set to 30/10/2010 and declassify on date set to 30/10/2040
3. Navigate to Configure Security Controls -> Declassification time Frame tab
Declassification time frame should be set by default to 25 years
4. Start a declassification date recalculation process and wait for it to finish. The Dod record is now modified by system
5. Perform a rm search by rma:identifier:* (Show records completed and incompleted)

Expected:The record modified by System user is displayed in search results
Actual: The record modified by System user is not displayed in search results

Performing the same queries in alfresco search works as expected.
Please note that the issue doesn't reproduce on AGS V3.0.

Activity

Show:
All Replies
April 29, 2019, 6:12 PM

[This comment has been reassigned to allreplies@alfresco.com as part of the Alfresco cloud migration project. The author of this comment was buildandpackaging] Ross Gale mentioned this issue in a merge request of records-management/records-management:
'Resolve "Feature/ recordsearchfix"'

All Replies
April 29, 2019, 6:12 PM

[This comment has been reassigned to allreplies@alfresco.com as part of the Alfresco cloud migration project. The author of this comment was rgale] https://git.alfresco.com/records-management/records-management/merge_requests/1165

All Replies
May 6, 2019, 8:10 PM

[This comment has been reassigned to allreplies@alfresco.com as part of the Alfresco cloud migration project. The author of this comment was buildandpackaging] Rodica Sutu mentioned this issue in a merge request of records-management/records-management:
'RM-6834_TestForSearchRecordsModifiedBySystem'

Done

Assignee

Unassigned

Reporter

Claudia Agache

Labels

None

Release Train

None

Delivery Team

None

Time remaining

0m

Sprint

None

Priority