TheHive4py icon indicating copy to clipboard operation
TheHive4py copied to clipboard

Close the Case by Responder

Open niyak4 opened this issue 4 years ago • 0 comments

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu
OS version (client) Ubuntu
TheHive4py version 1.8.1

Problem Description

I trying to Close the Case by Responder. To make it, I use the function update_case() from thehive4py package. To Close the Case I update the following fields:

  • status
  • resolutionStatus
  • impactStatus
  • summary
  • endDate

All fields are updatable, but field 'status' is not.

Steps to Reproduce

  1. Create the Responder to Close the Case.
  2. Update the field 'status' with the following string: 'Resolved'.
  3. Get the ERROR:
{
  "type": "AttributeCheckingError",
  "message": "[Invalid format for status: FAny(List(Resolved)), expected org.thp.thehive.models.CaseStatus.Value (Duplicated,Resolved,Open)]",
  "errors": [
    {
      "name": "status",
      "format": "org.thp.thehive.models.CaseStatus.Value",
      "acceptedInput": [
        "Duplicated",
        "Resolved",
        "Open"
      ],
      "field": "FAny(List(Resolved))",
      "type": "InvalidFormatAttributeError"
    }
  ]
}

Complementary information

My Responder: img

Error I get: зображення

niyak4 avatar Aug 30 '21 07:08 niyak4