[
https://issues.apache.org/jira/browse/FINERACT-2958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18128852#comment-18128852
]
Minjun Kim commented on FINERACT-2958:
--------------------------------------
Hi Jenny, PR #6671 was closed after review. Are you planning to pick this up
again? If not, I'd like to try addressing the review feedback. Happy to
coordinate if you'd prefer to continue.
> A negative offset on list endpoints is answered with HTTP 500 instead of a
> validation error
> -------------------------------------------------------------------------------------------
>
> Key: FINERACT-2958
> URL: https://issues.apache.org/jira/browse/FINERACT-2958
> Project: Apache Fineract
> Issue Type: Bug
> Reporter: Jenny Liu
> Priority: Major
>
> GET /clients?offset=-5&limit=5 (and the same on /savingsaccounts and /loans)
> puts the negative offset into the SQL (limit 5 offset -5). The database
> rejects it, and the caller gets an HTTP 500 with no information. A negative
> offset is a client error, so the API should answer HTTP 400 with a validation
> error (validation.msg.pagination.offset.must.not.be.negative). Zero, positive
> and missing offsets should behave as before.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)