Closed teizenman closed 3 years ago
Merging #82 into master will decrease coverage by
0.38%
. The diff coverage is0.00%
.
@@ Coverage Diff @@
## master #82 +/- ##
==========================================
- Coverage 94.89% 94.51% -0.39%
==========================================
Files 8 8
Lines 1784 1658 -126
==========================================
- Hits 1693 1567 -126
Misses 91 91
Impacted Files | Coverage Δ | |
---|---|---|
taxii2client/v20/__init__.py | 89.36% <0.00%> (-0.78%) |
:arrow_down: |
taxii2client/v21/__init__.py | 90.85% <0.00%> (-0.70%) |
:arrow_down: |
taxii2client/test/test_client_v20.py | 100.00% <0.00%> (ø) |
|
taxii2client/test/test_client_v21.py | 100.00% <0.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 6a3f4f0...8c5e8ac. Read the comment docs.
@teizenman, we believe this was due to an error when the spec was written for TAXII 2.0. They cited in that section RFC 7233 which defines Range (Section 3) with the use of "=".
Another supporting article: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Range
Hi @emmanvg and thank you for the quick reply.
I want through those files, and it seems like the =
sign is required when units are being used, which as far as I understood it's not the case here.
In addition, I'm adding two screenshots from the project while debugging the request being sent. The screenshots are taken from common.py
line 296
With the =
sign I get <Response [400]>
Without the =
sign I get <Response [206]>
as expected
Again, RCF7233 defines other range units with the use of =
similar to the other supported documents. In the TAXII use-case items
is our Range <unit>
.
If you are using Medallion, the server returns a 400 as a malformed request. It could be changed to:
I don't have enough information to think the problem is here.
@emmanvg Would you like us to have a zoom session regarding this issue?
@teizenman Sure. Can you include @clenk when you send the invite.
For the record. Thanks for reporting and providing a fix for this issue 🎉! In order for me to merge your changes you will need to sign an Individual CLA at OASIS. Signed CLAs can be viewed here. Given that you decided not to sign in the interest of time, I will be authoring these changes and closing this PR. You should see the changes in the next release.
We are using TAXII2.0 servers that started failing lately, after the merge of the following PR: https://github.com/oasis-open/cti-taxii-client/pull/75
According to the documentation of TAXII2.0 the
Range
header should not have the=
prior to the range desired.Link to the part in the documentation stating this: http://docs.oasis-open.org/cti/taxii/v2.0/cs01/taxii-v2.0-cs01.html#_Toc496542716