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] Invalid output when a file observable already exist #2054

Closed
To-om opened this issue Jun 3, 2021 · 0 comments
Closed

[Bug] Invalid output when a file observable already exist #2054

To-om opened this issue Jun 3, 2021 · 0 comments
Labels
bug TheHive4 TheHive4 related issues
Milestone

Comments

@To-om
Copy link
Contributor

To-om commented Jun 3, 2021

Request Type

Bug

Work Environment

TheHive 4.1.4

Problem Description

When creating a file observable that already exist the output is:

{
  "success":[],
  "failure":[
    {
      "object":{"data":"file:my_awesome_file.txt","attachment":{"name":" my_awesome_file.txt "}}
     }
  ]
}

It should be:

{
  "success":[],
  "failure":[
    {
      "type":"CreateError",
      "message":"Observable already exists",
      "object":{"data":"file:my_awesome_file.txt","attachment":{"name":" my_awesome_file.txt "}}
    }
  ]
}
@To-om To-om added bug TheHive4 TheHive4 related issues labels Jun 3, 2021
@To-om To-om added this to the 4.1.5 milestone Jun 3, 2021
@To-om To-om closed this as completed Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug TheHive4 TheHive4 related issues
Projects
None yet
Development

No branches or pull requests

1 participant