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

Unable to close case as TruePositive WithImpact #93

Closed
mnmnc opened this issue Nov 16, 2018 · 2 comments
Closed

Unable to close case as TruePositive WithImpact #93

mnmnc opened this issue Nov 16, 2018 · 2 comments
Assignees
Milestone

Comments

@mnmnc
Copy link

mnmnc commented Nov 16, 2018

Request Type

Bug

Work Environment

Question Answer
OS version (server) RedHat
OS version (client) Fedora
TheHive4py version 1.5.1

Problem Description

Unable to close case with api.update_case().

Steps to Reproduce

  1. consider following code:
c = api.case(caseid)
c.status = 'Resolved'
c.description = 'test'
c.resolutionStatus = 'TruePositive'
c.impactStatus = 'WithImpact'
resp = api.update_case(c)
  1. This code should result in case being closed, however endpoint respond with modified case (description is updated correctly), but not closed.

Possible Solutions

I think this has something to do with the fact that api.case() return object does not have all case fields included. Maybe api.update_case does not verify/check all fields when updating the case?

Problem is non existing when I use requests.patch().

@nadouani
Copy link
Contributor

I think you need to set a summary to your case

@nadouani
Copy link
Contributor

Weird, I don't see status listed in api.update_case in fact. I'll take a look right now ;)

@nadouani nadouani self-assigned this Nov 16, 2018
@nadouani nadouani added this to the 1.5.2 milestone Nov 16, 2018
@nadouani nadouani modified the milestones: 1.5.2, 1.5.3 Nov 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants