Closed
Description
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 "}}
}
]
}