[MNT-16266] With Auditing, cancelled downloads and completed downloads both record READs Created: 06-May-16  Updated: 30-Aug-16  Resolved: 17-May-16

Status: Closed
Project: Service Packs and Hot Fixes
Component/s: Auditing
Affects Version/s: 5.0.3
Fix Version/s: None

Type: Service Pack Request
Reporter: Cody Collins Assignee: Closed Issues
Resolution: Not a bug Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File alfresco.log    
Issue Links:
Related
Bug Priority:
Category 3
ACT Numbers:

00652025


 Description   

Summary

With auditing enabled, a cancelled download is logged as a READ action. There is no difference in the auditing logs between a download that completes and a download that is cancelled.

I have attached a log file with both valid and cancelled downloads of aaaTest.docx to demonstrate the identical log messages.

Steps to reproduce

  • Install Alfresco 5.0.3
  • Add the following lines in the global properties file.
    audit.enabled=true
    audit.alfresco-access.enabled=true
    audit.alfresco-access.sub-actions.enabled=true
  • Add the following lines in the Alfresco log4j.properties
    log4j.appender.File.Threshold=TRACE
    log4j.logger.org.alfresco.repo.audit.access.AccessAuditor=TRACE
  • Start and log into Alfresco.
  • Successfully download any document from within Alfresco. (I used firefox)
  • Click download in share again but this time click cancel before the document is saved or downloaded.
  • View the Alfresco.log file for the audit logs.

Expected Result

  • The cancelled download should not be logged as a Read action or have a different log message from a valid download.

Actual Result

  • The cancelled download and valid downloads are logged as the same messages. You cannot differentiate between the two.

Generated at Tue Jan 26 06:19:15 GMT 2021 using Jira 7.13.15#713015-sha1:7c5ddd2c3e1709974ae9c48c17df8edd3919fe2c.