Issue with shared files via ADW

Description

Shared files do not appear in the shared files even after waiting a while.

Example queries tested with the results in the following table. The documents uploaded to ADW have been attached to the ticket as well as the detailed results document with all the sanity tests.

Documents attached to the ticket were uploaded:

File name: Test.rtf and File content: This is a file called Test

File name: Test.txt (no content)

File name: Testing Document.txt (no content)

File name: Testing Document new.txt (no content)

Shared a file and it doesn’t appear in the shared files even after waiting a while.

Response after sharing a file:

{"entry":{"modifiedAt":"2021-02-11T11:25:29.474+0000","modifiedByUser":{"id":"admin","displayName":"Administrator"},"name":"TEST.rtf","id":"AVOU1YXtStqPq--CxepGdw","nodeId":"c0cdaafa-9057-477a-ae41-195d7927ce91","sharedByUser":{"id":"admin","displayName":"Administrator"},"content":{"mimeType":"application/rtf","mimeTypeName":"Rich Text Format","sizeInBytes":41633,"encoding":"UTF-8"}}}

Checking shared files:

Request URL:

http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/shared-links?skipCount=0&maxItems=25&include=path%2Cproperties%2CallowableOperations%2Cpermissions%2CaspectNames

Response body:

{"error":{"errorKey":"framework.exception.ApiDefault","statusCode":500,"briefSummary":"01110061 No support for language lucene","stackTrace":"For security reasons the stack trace is no longer displayed, but the property is kept for previous versions","descriptionURL":"https://api-explorer.alfresco.com","logId":"043b83db-65b5-44e8-b394-84e0a92a60c1"}}

Acceptance criteria:

  • When sharing a file the file appears in the shared files via ADW.

  • The tests executed should meet the expected results and shared and recent files works as expected.

Environment

None

Activity

Show:
Alex Mukha
February 17, 2021, 3:32 AM

The code in org.alfresco.rest.api.impl.QuickShareLinksImpl#findLinks is using a lucene query to find nodes by aspect and additionally filtered by property.

Assignee

Unassigned

Reporter

Keerat Lalia

Labels

None

Regression

None

Bug Priority

Category 1

Delivery Team

None

Release Train

None

Affects versions