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

PAP flag missing when creating a case from a retrieved Case object #111

Closed
PierreNei opened this issue Apr 16, 2019 · 0 comments
Closed
Milestone

Comments

@PierreNei
Copy link

PierreNei commented Apr 16, 2019

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 18.04 LTS
OS version (client) Ubuntu 18.04 LTS
TheHive4py version / git hash 1.6.0

Problem Description

After retrieving a case from a Hive instance with find_cases(), if you pass the case to create a new one the PAP flag is ignored and the new case always shows AMBER (2)

Steps to Reproduce

  1. Create a case in the Hive with PAP flag set to something else than AMBER
  2. Retrive this case from API and create a new one from the same object:
if response.status_code == 200:
  if len(response.json()) > 0:
    dest_api.create_case(Case(**response.json()[0]))
  1. Newly created case always shows a PAP flag set to Amber
@nadouani nadouani added this to the 1.7.0 milestone Apr 16, 2019
nadouani added a commit that referenced this issue Jun 13, 2019
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