Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

KServe REST rejects INT64 and UINT64 values outside 32-bit range

Abierto
#4,688 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@YugShah1510 ya está trabajando en esto.

Desde el 22/10/2026.

  • #4689 de @YugShah1510 — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
25/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Estancado
Stack tecnológico
cpp
Área
api, backend

Línea de trabajo

Read the INT64 and UINT64 branches in src/rest_parser.cpp and the existing parser tests for these datatypes. Check how RapidJSON’s type checks pair with its 64-bit getters, then run the OVMS C++ parser test if the build tools are available. Done means both reproduction values parse successfully and are preserved in the protobuf contents.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Description

KServe REST requests with INT64 or UINT64 inputs are rejected when an integer value is outside the corresponding 32-bit range, even though the parser stores these inputs in 64-bit protobuf fields.

Reproduction

Send either input in a KServe v2 inference request:

{"inputs":[{"name":"input0","shape":[1],"datatype":"INT64","data":[2147483648]}]}

or:

{"inputs":[{"name":"input0","shape":[1],"datatype":"UINT64","data":[4294967296]}]}

Actual behavior

The REST parser returns REST_COULD_NOT_PARSE_INPUT for these values. In src/rest_parser.cpp, the INT64 branch calls GetInt64() but first requires IsInt(), and the UINT64 branch calls GetUint64() but first requires IsUint(). Those checks only accept values representable by 32-bit int and unsigned respectively.

Expected behavior

The parser should accept representable signed and unsigned 64-bit JSON integers for INT64 and UINT64 inputs and preserve their values in the corresponding protobuf contents.

Evidence and test status

The parser branches and RapidJSON type-check/getter pairings were inspected against the RapidJSON API semantics. Existing parser tests exercise only small values (1 through 4) for these datatypes, so they do not cover the 32-bit boundaries. The repository does not currently have Bazel/Bazelisk or a built ovms_test binary available, so the OVMS C++ parser test has not yet been run.

Lenguaje dominante
C++
Estrellas
952
Forks
285
Merge medio
3 d 5 h
PR fusionados (30 d)
45

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openvinotoolkit/model_server

Todos los issues de openvinotoolkit/model_server

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.