Skip to content

Workflow Actions fail to work when using file name without file.name #398

@dan-acsc

Description

@dan-acsc

Describe the bug
Workflow actions fails to run with an error "Error has occurred while performing the workflow action to the alerts"

This occurs when searching for the alert by a file name for example if you query by random file name for al searching.

The Alerts list out a file and then when you attempt to run a Workflow Action against that alert you receive the error.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Post-processing action that raises alerts on files with 'max_score: >=0'
  2. Submit a file named random file name for al searching purposes.cart
  3. View the Alert on the Alerts page by searching for "random file name for al searching"
Image 4. Click `Workflow actions icon (circled in above image) 5. Apply status, priority and Label (any will do e.g): Image

Viewing the Post response, it's a 200 status but 0 alerts were affected by the workflow, which is why I think the error appears.

Error doesn't occur if the following is used:
file.name:.\/random*
file.name:.\/random\ file*

Expected behavior
If the query lists an Alert on the Assemblyline UI, those alerts should have the workflow action applied to them.

Environment (please complete the following information if pertinent):

  • Assemblyline Version: [e.g. 4.6.0.16]
  • Browser: firefox and edge

Metadata

Metadata

Assignees

Labels

acceptedThis issue was accepted, we will work on this at some pointbugSomething isn't workingui-frontend

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions