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

Search for "something.xml" leads to error #73

Closed
zeroq opened this issue Apr 13, 2017 · 3 comments
Closed

Search for "something.xml" leads to error #73

zeroq opened this issue Apr 13, 2017 · 3 comments
Assignees

Comments

@zeroq
Copy link

zeroq commented Apr 13, 2017

When I try a misp.search_index(eventinfo="something.xml") the search fails:

Traceback (most recent call last):
File "api.py", line 130, in
result = misp.search_index(eventinfo=title)
File "/Users/jgo/git/PyMISP/pymisp/api.py", line 814, in search_index
return self._check_response(response)
File "/Users/jgo/git/PyMISP/pymisp/api.py", line 198, in _check_response
raise PyMISPError('Unknown error: {}'.format(response.text))

It seems like MISP is returning XML instead of JSON in case the event title ends with ".xml". I did not expect output formating parameters to be part of the search string itself.

@Rafiot
Copy link
Member

Rafiot commented Apr 13, 2017

woah, this is weird.

@Rafiot Rafiot self-assigned this Apr 13, 2017
@zeroq
Copy link
Author

zeroq commented Apr 13, 2017

looks like it is more a MISP problem than a problem of the actual PyMISP, because if you type ".xml" in the filter input in list events view of MISP you also get an XML output with internal error. Are you also in touch with the MISP developers?

@Rafiot
Copy link
Member

Rafiot commented Apr 13, 2017

My bad, search_index is somewhat buggy, patching.

@Rafiot Rafiot closed this as completed in 60b78fd Apr 13, 2017
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