Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Workflows: Missing requestMethod in Module_splunk_hec_export #9680

Open
1 task done
skalvaro opened this issue Apr 15, 2024 · 0 comments · May be fixed by #9681
Open
1 task done

Bug: Workflows: Missing requestMethod in Module_splunk_hec_export #9680

skalvaro opened this issue Apr 15, 2024 · 0 comments · May be fixed by #9681
Labels
needs triage This issue has been automatically labelled and needs further triage

Comments

@skalvaro
Copy link

Actual behavior

When creating a workflow using 'Splunk HEC export' as an action the event never gets sent and the job fails with an undefined variable error.

Expected behavior

Event gets send.

Steps to reproduce

Setup a workflow with a 'Splunk HEC export' action.
Trigger the workflow.

Version

2.4.189

Operating System

RedHat

Operating System version

7.9

PHP version

7.4

Browser

No response

Browser version

No response

Relevant log output

Stacktrace on job:
Notice Error: Undefined variable: response in [/var/www/MISP/app/Model/WorkflowModules/action/Module_webhook.php, line 189]

Error: Call to a member function isOk() on null
#0 /var/www/MISP/app/Model/WorkflowModules/action/Module_splunk_hec_export.php(121): Module_splunk_hec_export->sendToSplunk()
#1 /var/www/MISP/app/Model/Workflow.php(689): Module_splunk_hec_export->exec()
#2 /var/www/MISP/app/Model/Workflow.php(610): Workflow->executeNode()
#3 /var/www/MISP/app/Console/Command/WorkflowShell.php(54): Workflow->walkGraph()
#4 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/Shell.php(459): WorkflowShell->walkGraph()
#5 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(222): Shell->runCommand()
#6 /var/www/MISP/app/Lib/cakephp/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#7 /var/www/MISP/app/Console/cake.php(45): ShellDispatcher::run()
#8 {main}

Extra attachments

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@skalvaro skalvaro added the needs triage This issue has been automatically labelled and needs further triage label Apr 15, 2024
skalvaro added a commit to skalvaro/MISP that referenced this issue Apr 15, 2024
@skalvaro skalvaro linked a pull request Apr 15, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has been automatically labelled and needs further triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant