Open himynamesdave opened 3 weeks ago
I have a few questions... Was there up to a 30 seconds time difference between original request and this?
You may need to change your --query.registry-ttl
to a higher value
Was there up to a 30 seconds time difference between original request and this?
I think this is the cause. I will document this. How would I go about modifying this value? If poss would be good to have this as an env var
However, pagination is still broken.
See
https://www.awesomescreenshot.com/video/28388944?key=40fa0bc87b0e1e031548ef01cb991cd4
I can page to page 2 (I can see objects in responses are different) HOWEVER, the value for next
never changes, meaning I can't page to page 3.
next goes to page 3... and then page 4 and then 5
cursor id doesn't change...
I get it, but this poses 2 problems
next
value each time. I'm not saying this is right, but it is a reality.We could just make the next
value represent the page number, e.g. 2
, 3
, 4
, etc if that would be simpler. That approach would solve the problem, be more user friendly, and conform to the spec (https://docs.oasis-open.org/cti/taxii/v2.1/os/taxii-v2.1-os.html#_Toc31107519)
limit
and offset
in the query, however that means the database will have to reprocess all the already processed over and over again... This will be a problem when you have tens of thousands of objects"+{batchId}"
to the next
valuefixedd
@fqrious i cannot get past page 2
https://www.awesomescreenshot.com/video/28604554?key=8dbc7f7893fa94fc6ce1d031c8254b4a
See page 1 -> 2 generated new objects
but page 2 -> 3 prints the same objects as page 2
I can't reproduce this, that's why I added undef+random_float (instead of nextBatchId) to the cursor id for you...
I'll need a arangodb server with exact same setup/config to reproduce... This issue is not happening on the original 65.?.?.?
server
See attempt to paginate
https://www.awesomescreenshot.com/video/28346963?key=6b13876906858c4891038e540a999645
Is not working as detailed in spec
https://docs.oasis-open.org/cti/taxii/v2.1/os/taxii-v2.1-os.html#_Toc31107517