Aiven-Open/karapace

Using '-1' as a version does not return the latest version

mattieserver opened this issue · 2 comments

What happened?

We trying to get the latest version of a schema with '-1' as version you get the following error:

URL: /subjects/XXXXXX/versions/-1
{"error_code":42202,"message":"The specified version '-1' is not a valid version id. Allowed values are between [1, 2^31-1] and the string \"latest\""}

What did you expect to happen?

'-1' should work the same as using 'latest' as the version.

What else do we need to know?

Docker image version: 3.6.1

Fixed in #885, to be released with 3.14.0.