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

Auditing only generates READs of cm:content for pdf mimetypes

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Not a bug
    • Affects Version/s: 5.0.2
    • Fix Version/s: None
    • Component/s: Auditing
    • Labels:
      None
    • Bug Priority:
      Category 3
    • ACT Numbers:

      00531390

    • Regression Since:

      Description

      Description

      With auditing enabled, READs are only shown with regards for pdf mimetypes (with regards to the tested mimetypes: pdf, jpg, docx, txt).

      Steps to reproduce

      1. Enable auditing in 5.0.2 with the following settings:
        audit.enabled=true 
        audit.filter.alfresco-access.default.enabled=true 
        audit.alfresco-access.enabled=true 
        audit.alfresco-access.default.enabled=true 
        audit.filter.alfresco-access.transaction.user=~System;~null;.* 
        audit.filter.alfresco-access.transaction.type= 
        audit.filter.alfresco-access.transaction.path=~/sys:archivedItem;~/ver:;.* 
        
      2. Enable the following logging in the log4j.properties file
        log4j.logger.org.alfresco.repo.audit.access.AccessAuditor=DEBUG
        log4j.logger.org.alfresco.repo.audit.AuditComponentImpl=DEBUG
        
      3. Upload several different mimetypes to a site in Alfresco Share (e.g. txt, pdf, docx).
      4. Navigate to each file in the document library
        The results will be:
        txt:
        Inbound audit values: 
        		/alfresco-access/transaction/action=READ
        		/alfresco-access/transaction/node=workspace://SpacesStore/5fd26691-4bed-4f9f-871f-d3bef4851f5f
        		/alfresco-access/transaction/path=/sys:system/sys:people/cm:admin
        		/alfresco-access/transaction/sub-actions=readContent
        		/alfresco-access/transaction/type=cm:person
        		/alfresco-access/transaction/user=admin 
        
        docx
        Inbound audit values: 
        		/alfresco-access/transaction/action=READ
        		/alfresco-access/transaction/node=workspace://SpacesStore/5fd26691-4bed-4f9f-871f-d3bef4851f5f
        		/alfresco-access/transaction/path=/sys:system/sys:people/cm:admin
        		/alfresco-access/transaction/sub-actions=readContent
        		/alfresco-access/transaction/type=cm:person
        		/alfresco-access/transaction/user=admin
        
        pdf
        	Inbound audit values: 
        		/alfresco-access/transaction/action=READ
        		/alfresco-access/transaction/node=workspace://SpacesStore/bd5c0f40-1aa8-4fd9-85b6-e3f69b44abe4
        		/alfresco-access/transaction/path=/app:company_home/st:sites/cm:auditsite/cm:documentLibrary/cm:testpdffile.pdf
        		/alfresco-access/transaction/sub-actions=readContent
        		/alfresco-access/transaction/type=cm:content
        		/alfresco-access/transaction/user=admin
        

      What should happen and why
      The auditing data should be consistent. When tested in 4.2.4.15, none of the different mimetypes generated a cm:content READ like a pdf in 5.0.2 in the scenario above.

      What is actually happening
      A pdf file is the only mimetype tested to generate a cm:content READ.
      When view in browser is selected on each file, only the Docx returns a cm:content READ.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  jtsmith John-Taylor Smith [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 1 day, 6 hours, 55 minutes
                    1d 6h 55m

                      Structure Helper Panel