TAXIIProject / libtaxii

A Python library for handling TAXII Messages invoking TAXII Services.
http://libtaxii.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
70 stars 42 forks source link

ValueError: Unsupported namespace: http://taxii.mitre.org/messages/taxii_xml_binding-1.1 #229

Closed ajnovice closed 6 years ago

ajnovice commented 6 years ago

get_message_from_requests_http_response return tm10.get_message_from_xml(response_message, encoding) File "/home/ubuntu/ctix-2/venv/lib/python3.5/site-packages/libtaxii/messages_10.py", line 76, in get_message_from_xml raise ValueError('Unsupported namespace: %s' % qn.namespace) ValueError: Unsupported namespace: http://taxii.mitre.org/messages/taxii_xml_binding-1.1

gtback commented 6 years ago

Thanks for the report, @AjayS91 !

Looks like a message with the TAXII 1.1 binding is being parsed by the parser for TAXII 1.0 (messages_10.py). It's possible there's some conflicting information in the message itself, or the server is returning an invalid message, or there is a bug in libtaxii, but without more information I can't say for sure.

gtback commented 6 years ago

@AjayS91 do you have any more information on this? It is indeed true that http://taxii.mitre.org/messages/taxii_xml_binding-1.1 is not a supported namespace in the context of messages_10.py. Without more information, I can't tell if this is a bug in libtaxii or not.

ajnovice commented 6 years ago

@gtback I think there is the error in XML data. My apologies for late reply.

gtback commented 6 years ago

No worries. Thanks for letting us know. I'm going to close this, but if you see the problem again or if there's anything we need to fix/change in libtaxii, feel free to reopen!