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

Audit filter for alfresco-access/login does not work.

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 5.0.1.1, 4.2.N
    • Fix Version/s: 4.2.5
    • Component/s: Auditing
    • Labels:
      None

      Description

      Audit filter for alfresco-access/login does not work.

      There is documentation page for sample filer but this doesn't work for login.
      http://docs.alfresco.com/4.2/concepts/audit-40-example-filter.html

      [Steps to reproduce]
      1. Set audit in alfresco-global.properties
      audit.enabled=true
      audit.alfresco-access.enabled=true

      2. set filter in alfresco-global.properties
      audit.filter.alfresco-access.transaction.default.enabled=true
      audit.filter.alfresco-access.transaction.user=~System;~null;.*
      audit.filter.alfresco-access.login.user=~System;~null;~abeecher;~admin;.*
      audit.filter.alfresco-access.logout.user=~System;~null;~abeecher;~admin;.*

      3. set debug
      log4j.logger.org.alfresco.repo.audit.PropertyAuditFilter=debug
      log4j.logger.org.alfresco.repo.audit.AuditComponentImpl=debug

      4. restat alfresco and login as
      abeecher, admin and mjackson

      — Result in alfresco.log and curl respectively —
      LOGIN
      [abeecher] Reocrded/Recorded >>>> not supposed to be recorded
      [admin] Reocrded/Recorded >>>> not supposed to be recorded
      [mjackson] Reocrded/Recorded

      LOGOUT
      [abeecher] Not reocrded/Not recorded
      [admin] Not reocrded/Not recorded
      [mjackson] Reocrded/Recorded

      [Expected Behaviour]
      abeecher and admin logins should be rejected.

      [Observed Behaviour]
      abeecher and admin logins are recorded.

      [Analysis to date]
      transaction and logout filter work as expected.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  nkamada Nanako Kamada [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 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 - 3 days, 2 hours
                    3d 2h

                      Structure Helper Panel