octavia/releasenotes/notes/Fix-limit-pagination-less-or-equal-zero-93a33f1318ea34e5.yaml
Sergey Kraynev 85cfb6c2ae Fix negative or 0 limit parameter in pagination
Octavia replace "limit" with None when it is less 1. (for example 0, -1)
However the further code failed to compare None and int values.
This patch fixes it by validation, that limit is None.

Co-Authored-By: Roman Goncharov <gadzhet007@gmail.com>

Closes-Bug: #2060917
Change-Id: I9bb45a1aca6b7b18644752a3dccc3ebfb7c106ef
2024-04-12 19:23:28 +00:00

7 lines
182 B
YAML

---
fixes:
- |
Fix the issue, when "limit" parameter in request less or equal 0.
Now it returns resources according pagination_max_limit as expected,
instead of error.