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:
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.
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.