Enable audit app before querying requirement

Description

When using the REST api http://localhost:8080/api-explorer/#!/audit/listAuditEntriesForAuditApp the audit app needs to be enabled otherwise the exception below is thrown

this happens even if there are entries in the tables for this app. The old rest api does not have this issue
http://localhost:8080/alfresco/s/api/audit/query/yourappname/.

Why does the new API have this requirement? This makes it difficult for a customer to cleanup old data without creating new entries.

Environment

tomcat/postgres

Activity

Show:
Jose Portillo
January 19, 2021, 2:22 PM

for this to work does the customer need to disable every auditing app? also, since the servers are in aws it could auto scale up or down, if a new server comes in with auditing enabled, does the rest api persists the setting in the DB or do they need to disable it from the new server again?

Jose Portillo
January 7, 2021, 3:16 PM

,

I have re-tested and I still see the issue, here are the details of the test:

ACS version 5.2.7.5

Url: http://localhost:8080/alfresco/api/-default-/public/alfresco/versions/1/audit-applications/alfresco-access/audit-entries

Here are some screenshots having the setting audit.alfresco-access.enabled=true where everything works as expected

however, when i switch to audit.alfresco-access.enabled=false i get the reported issue

Please let me know if you need anything else.

 

Thank you

Jose Portillo
January 7, 2021, 1:30 PM

Hi

I will provide an update before the end of this week. Thank you.

Done

Assignee

Jose Portillo

Reporter

Jose Portillo

Labels

None

Security Issue

None

Escalated By

None

ACT Numbers

01018504

Premier Customer

Yes

Patch Attached

None

Prioritization Score

None

Delivery Team

Customer Excellence

Bug Priority

Category 2

Components

Affects versions