Skip to content

Pagination: Failed to parse pageSize #1848

@XJDKC

Description

@XJDKC

Describe the bug

Got this error message when testing Catalog Federation:

{
  "error": {
    "message": "For input string: \"null\"",
    "type": "NumberFormatException",
    "code": 400
  }
}

To Reproduce

No response

Actual Behavior

No response

Expected Behavior

No response

Additional context

The tokenSize param in the request in an Integer object, but later we convert it to a String. Then we try to parse it to get an integer again. If the pageSize is null, we will fail to parse the string and convert it to Integer.

CatalogHandlerUtils.java#L164

System information

No response

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