Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-16586

Differentiate between audit READ and audit PREVIEW

    Details

    • Bug Priority:
      Category 2
    • ACT Numbers:

      00149779, 00134185, 00983261

    • Premier Customer:
      Yes

      Description

      A customer needs to differentiate between READ activity when previewing document in document details page and READ activity when downloading / opening a document through web interface.

      Currently they both appear the same down to the sub tasks in the audit output (see log output below) and hence cannot be distinguished:

      11:16:12,802 TRACE [org.alfresco.repo.audit.access.AccessAuditor] 
      		/alfresco-access/transaction/action=READ
      		/alfresco-access/transaction/node=workspace://SpacesStore/07dbeba8-1ac1-4a0b-8478-c70dcd5d5cdd
      		/alfresco-access/transaction/path=/app:company_home/cm:Consulting Timeline and Sweet Spot.jpg
      		/alfresco-access/transaction/sub-actions=readContent
      		/alfresco-access/transaction/type=cm:content
      		/alfresco-access/transaction/user=admin
      		--- sub actions ---
      		/alfresco-access/transaction/sub-action/0/action=readContent
      		/alfresco-access/transaction/sub-action/1/action=readContent
      		/alfresco-access/transaction/sub-action/2/action=readContent
      		/alfresco-access/transaction/sub-action/3/action=readContent
      		/alfresco-access/transaction/sub-action/4/action=readContent
      		/alfresco-access/transaction/sub-action/5/action=readContent
      		/alfresco-access/transaction/sub-action/6/action=readContent
      		/alfresco-access/transaction/sub-action/7/action=readContent
      		/alfresco-access/transaction/sub-action/8/action=readContent
      		/alfresco-access/transaction/sub-action/9/action=readContent
      11:16:36,416 TRACE [org.alfresco.repo.audit.access.AccessAuditor] 
      		/alfresco-access/transaction/action=READ
      		/alfresco-access/transaction/node=workspace://SpacesStore/07dbeba8-1ac1-4a0b-8478-c70dcd5d5cdd
      		/alfresco-access/transaction/path=/app:company_home/cm:Consulting Timeline and Sweet Spot.jpg
      		/alfresco-access/transaction/sub-actions=readContent
      		/alfresco-access/transaction/type=cm:content
      		/alfresco-access/transaction/user=admin
      		--- sub actions ---
      		/alfresco-access/transaction/sub-action/0/action=readContent
      		/alfresco-access/transaction/sub-action/1/action=readContent
      		/alfresco-access/transaction/sub-action/2/action=readContent
      		/alfresco-access/transaction/sub-action/3/action=readContent
      		/alfresco-access/transaction/sub-action/4/action=readContent
      		/alfresco-access/transaction/sub-action/5/action=readContent
      		/alfresco-access/transaction/sub-action/6/action=readContent
      		/alfresco-access/transaction/sub-action/7/action=readContent
      		/alfresco-access/transaction/sub-action/8/action=readContent
      		/alfresco-access/transaction/sub-action/9/action=readContent
      

      [Steps to reproduce]

      1. Specify alfresco-global.properties for auditing as such:

      audit.enabled=true
      audit.alfresco-access.enabled=true
      audit.alfresco-access.sub-actions.enabled=true

      2. Specify log4j.properties settings as such to turn logging for auditing on:

      log4j.appender.File.Threshold=TRACE
      log4j.logger.org.alfresco.repo.audit.access.AccessAuditor=TRACE

      3. Start Alfresco, in Share, upload an image (JPG) file
      4. Preview it in Share, observe the log.
      5. Download it in Share, observe the log.
      6. "View in browser" in Share, observe the log.

      [Expected result]
      The audit log output should be different between preview and download. View in browser should be treated the same as download.

      [Actual result]
      The audit log output is the same disregard whether it's preview, download or view in browser.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  repositoryteam Repository Team
                  Reporter:
                  ctan Craig Tan
                • Votes:
                  3 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 5 minutes
                    5m

                      Structure Helper Panel