[MXS-4762] REST-API generates too many errors for some endpoints Created: 2023-09-15  Updated: 2023-09-15  Resolved: 2023-09-15

Status: Closed
Project: MariaDB MaxScale
Component/s: REST-API
Affects Version/s: 23.08.0
Fix Version/s: 23.08.1

Type: Bug Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

The following demonstrates the problem:

$ curl -X POST -uadmin:mariadb localhost:8989/sql/undefined/queries
{
    "errors": [
        {
            "detail": "undefined is not a connection_id"
        },
        {
            "detail": "undefined is not a connection_id"
        },
        {
            "detail": "undefined is not a connection_id"
        },
        {
            "detail": "undefined is not a connection_id"
        }
    ]
}

Only one error should be returned instead of four.


Generated at Thu Feb 08 04:30:58 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.