Umbraco-CMS icon indicating copy to clipboard operation
Umbraco-CMS copied to clipboard

V14 - umbracoAudit table is not logging some audit events

Open OwainJ opened this issue 4 months ago • 5 comments

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.0.0-rc2

Bug summary

The umbracoAudit table seems to be logging less User events in v15.0.0-rc2 when compared to v13.5.1. Missing events seem to include all events relating to passwords, logging in and logging out.

Note: I have only tested password changing and login/logout events, it's possible that more audit events are missing.

Specifics

No response

Steps to reproduce

  1. Setup a new project using a script from Package Script Writer - https://psw.codeshare.co.uk/
    • v15.0.0-rc2
      # Ensure we have the version specific Umbraco templates
      dotnet new install Umbraco.Templates::15.0.0-rc2 --force
      
      # Create solution/project
      dotnet new sln --name "15-0-0-RC2"
      dotnet new umbraco --force -n "15-0-0-RC2" --friendly-name "Administrator" --email "[email protected]" --password "1234567890" --development-database-type SQLite
      dotnet sln add "15-0-0-RC2"
      
      dotnet run --project "15-0-0-RC2"
      #Running
      
    • v13.5.1
    # Ensure we have the version specific Umbraco templates
         dotnet new install Umbraco.Templates::13.5.1 --force
    
         # Create solution/project
         dotnet new sln --name "13.5.1"
         dotnet new umbraco --force -n "13.5.1" --friendly-name "Administrator" --email "[email protected]" --password "1234567890" --development-database-type SQLite
         dotnet sln add "13.5.1"
    
         dotnet run --project "13.5.1"
         #Running
    
  2. Once it is running, login as Admin
  3. Navigate to the Users section
  4. Create a new User with the following details:
  5. Navigate to the User profile and change it's password to 1234567890
  6. Open a new window in private/incognito and navigate to the Umbraco backoffice login page
  7. Login as Editor
  8. Logout as Editor
  9. Observe the umbracoAudit database table to check what events have been logged

Expected result / actual result

I would expect the events logged to be similar/identical to the events logged in Umbraco 13, but there appears to be quite a few audit events that are no longer logged.

v13.5.1

image The events highlighted in yellow do not appear in the v15 umbracoAudit table.

v15.0.0-rc1

image

Umbraco 15 should be logging the password related events, and the login/logout related events.

OwainJ avatar Oct 18 '24 09:10 OwainJ