eclecticiq / OpenTAXII

TAXII server implementation in Python from EclecticIQ
BSD 3-Clause "New" or "Revised" License
185 stars 88 forks source link

Incorrect spec_version value for STIX2.1 #268

Open polakovicp opened 5 months ago

polakovicp commented 5 months ago

Hello, we are investigating issue with incorrect spec_version in returned objects from our TAXII2 server:

    "more": true,
    "objects": [
        {
            "id": "indicator--11fa0be9-6060-468d-b476-ab5b13824ae4",
            "type": "indicator",
            "spec_version": "indicator",

Expected value should be "2.1" (as stored in DB).

Looking to the code, this looks suspicious: https://github.com/eclecticiq/OpenTAXII/blob/master/opentaxii/server.py#L672

Is there any reason why spec_version is not passed from selected objects?