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

Impossible to add a Json object via the REST API #246

Closed
Rafiot opened this issue Apr 15, 2014 · 1 comment
Closed

Impossible to add a Json object via the REST API #246

Rafiot opened this issue Apr 15, 2014 · 1 comment
Assignees

Comments

@Rafiot
Copy link
Member

Rafiot commented Apr 15, 2014

It only works with an XML object, not with a JSON one.

Code used to test: https://github.com/CIRCL/PyMISP/blob/master/pymisp/testing.py

The error mentioned an invalid event.

@iglocska
Copy link
Member

Indeed, it's a bug with the JSON view erroneously including some related objects (such as threatlevel - instead of just including the ID). I'll push a fix later today.

@iglocska iglocska self-assigned this Apr 15, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants