TheHive4py
TheHive4py copied to clipboard
"archive" parameter of download_observable_attachment is overriden
Request Type
Bug
Work Environment
| Question | Answer |
|---|---|
| TheHive4py version / git hash | Latest (a8ad708de93f51bd284e56e9c869c3d20da56938) |
Problem Description
Function download_observable_attachment is calling download_attachment, but the archive parameter will be always True regardless of what was specified in download_observable_attachment call
Steps to Reproduce
- Call
download_observable_attachmentwitharchive=Falseas a parameter - Notice that the file output is not readable when you expect a text file
- Notice that it works when you directly use
download_attachmentwitharchive=False
Possible Solutions
In file api.py on line 1299, replace archive=True by archive