-
Notifications
You must be signed in to change notification settings - Fork 614
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
[Bug] API method broken: /api/case/task/log/_search in 4.0.1 #1660
Comments
These errors look very weird. Taking a look |
Can you share a curl call that reproduce the issue? or is it occurring only with TheHive4py? I did a test and I cannot reproduce |
@DrJohn1 do you have the issue from the UI or from a custom script? |
This error started happening after 4.0.1 when requesting task logs for a specific task using thehive4py. It seems as the data field is no longer parsed as json by default in 4.0.1 (it worked in 4.0.0). The code that worked in 4.0.0 (this is from PR #167 in thehive4py):
However it fails in 4.0.1. To fix it, I changed the request.post to explicitly include json.dumps():
For this reason, I think that the issue may be due to recent changes of TheHive. |
Yes, this sounds like a regression in input parsing in v0 apis. |
API method broken: /api/case/task/log/_search (Bug)
Request Type
Bug
Work Environment
Problem Description
Any calls to /api/case/task/log/_search return the error 'org.thp.thehive.models.Task$$anon$7$$anon$8 cannot be cast to org.thp.thehive.models.Log'. This also happens with TheHive4py.
Steps to Reproduce
Complementary information
The error shown:
![error_model_task](https://user-images.githubusercontent.com/25451370/99365577-c5f18c80-28b7-11eb-88a7-160f7c0fe8a8.jpg)
The text was updated successfully, but these errors were encountered: