A direct message request, with an up_to_time but no seq (starting sequence) fails with status message "408 Empty Request" instead of returning messages.
Proposed change
Default the seq to 1
Server version
Server v2.11.0-dev
Steps to reproduce
Create a new stream and publish 5 messages. Post a DIRECT.GET like {"batch":5,"up_to_time":"2024-10-21T16:45:15.772872800Z"} and one with {"batch":5,"up_to_time":""2024-10-21T16:45:15.772872800Z","seq":1}
Observed behavior
A direct message request, with an
up_to_time
but noseq
(starting sequence) fails with status message "408 Empty Request" instead of returning messages.Proposed change
Default the
seq
to 1Server version
Server v2.11.0-dev
Steps to reproduce
Create a new stream and publish 5 messages. Post a DIRECT.GET like
{"batch":5,"up_to_time":"2024-10-21T16:45:15.772872800Z"}
and one with{"batch":5,"up_to_time":""2024-10-21T16:45:15.772872800Z","seq":1}