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

Taxii 2.0 pages request can infinite loop if the server doesn't include a Content-Range in response #117

Open
andrewbeard opened this issue Jun 21, 2023 · 0 comments

Comments

@andrewbeard
Copy link
Contributor

andrewbeard commented Jun 21, 2023

On a specific remote server if you request a set of objects as part of a Range request and that response is empty it doesn't include a Content-Range header in the response. According to RFC-9110 this is valid.

A server that supports range requests MAY ignore a Range header field when the selected representation has no content (i.e., the selected representation's data is of zero length).

It seems like the Taxii 2.0 version of as_pages handles this poorly and goes into an infinite loop, requesting the same set of data over and over again. The same thing seems to happen whenever the Content Range header is missing, not just if there are 0 objects returned.

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

1 participant