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

Multiple responder actions does not seem to be handled #722

Closed
srilumpa opened this issue Sep 12, 2018 · 0 comments
Closed

Multiple responder actions does not seem to be handled #722

srilumpa opened this issue Sep 12, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@srilumpa
Copy link

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
TheHive version / git hash 3.1.0-RC3
Package Type From source

Problem Description

When a responder has multiple operations, it seems only the first one is being executed by TheHive.

Steps to Reproduce

  1. Have an analyzer with two AddTagToCase operations
  2. Execute it on a case
  3. See the first tag appears but never the second one

Complementary information

My responder has the following operations:

    def operations(self, raw):
        ops = []
        ops.append(self.build_operation('AddTagToCase', tag="ticket:{}#{}".format(self.instance_name, raw['issue']['issue']['id'])))
        ops.append(self.build_operation('AddTagToCase', tag="ticket created"))
        return ops

When I execute the responder, only the first tag (ticket:name#num) appears. The two operations are present in the Cortex output If I comment the first operation build, I have the second tag appearing (ticket created)

@nadouani nadouani added the bug label Sep 12, 2018
@To-om To-om self-assigned this Sep 12, 2018
@To-om To-om added this to the 3.1.0 milestone Sep 12, 2018
@To-om To-om closed this as completed Sep 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants