cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Types audited even if auditing has been disabled for them

agrabovskis
Participant
0 Likes
1,676

For example, products are being audited even if audit.product.enabled=false. Workaround is completely disabling the audit framework by auditing.enabled=false (or else DB size grows ~3Gb/day).

There's a JIRA https://jira.hybris.com/browse/ECP-2651 that has been marked as resolved, but the fix version is a mysterious 1808. The issue affects Hybris 6.6+ (including the latest 6.7.0.2). Any hints on when we will be able to start using audit system?

I'm attaching also an integration test that clearly reproduces the issue: AuditEnablementServiceBugTest.java

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Likes

Hi Arvids,

1808 stands for next release. As for the backport there are open Jira task: https://jira.hybris.com/browse/PATCH-4497 for 6.6
https://jira.hybris.com/browse/PATCH-4528 for 6.7
but as you can see in the changes history the Fix version is not set in stone.

Hope this helps and Best regards,

agrabovskis
Participant
0 Likes

Yes, unfortunately I don't have permissions to view the backport tasks. I'll hope that the next patch release will address the bug. I hope that the fix will also address the issue reproduced in the attached integration test.

Answers (1)

Answers (1)

former_member387866
Active Contributor
0 Likes

Hi Arvidis,

For a workaround your team can implement the WriteAuditGateway and this offers a method to remove the entries. It's not ideal.

 writeAuditGateway.removeAuditRecordsForType("User", userService.getUserForUID("someUser").getPk());

Reference: Generic Audit.

Regards,
Luke