Skip to content

Handle corner case of limit = 0 in scroll API #90

@generall

Description

@generall

Special case of limit: 0 in not handled properly in scroll API.

Current Behavior

Service panics if limit: 0 in scroll API

Steps to Reproduce

curl -L -X POST "http://$QDRANT_HOST/collections/test_collection/points/scroll" \
  --fail -s \
  -H 'Content-Type: application/json' \
  --data-raw '{ "offset": 0, "limit": 0}'

on any collection

Expected Behavior

400 error

Possible Solution

add check for limit value

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions