-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Copy link
Labels
Team:SharedUXPlatform AppEx-SharedUX (formerly Global Experience) t//Platform AppEx-SharedUX (formerly Global Experience) t//bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience
Description
Kibana version: main
Elasticsearch version:
Server OS version:
Browser version:
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug:
Steps to reproduce:
- Delete a file
- Check audit logs
- The file deletion log has
failureoutcome even though the file has been deleted
Expected behavior:
The outcome should be success
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context:
This is most likely due to wrong usage of operators in createAuditEvent helper function:
| outcome: outcome ?? error ? 'failure' : 'success', |
The line gets evaluted as
(outcome ?? error) ? 'failure' : 'success' which leads to the outcome being failure even though success is passed down in the delete function: | outcome: 'success', |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Team:SharedUXPlatform AppEx-SharedUX (formerly Global Experience) t//Platform AppEx-SharedUX (formerly Global Experience) t//bugFixes for quality problems that affect the customer experienceFixes for quality problems that affect the customer experience