Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: Table pagination parameters can overflow or return server errors

Aperta
#4,412 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@hutiefang76 ci sta già lavorando.

Dal 4/10/2026.

  • #4415 di @hutiefang76 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
java

Direzione di ricerca

Start with TableController and the actual Javalin query validators, then inspect the embedded-Javalin regression fixture described in the issue. Done means all 108 pagination regression cases and the existing 19 optimizer-pagination tests pass, with the 15-module reactor and Spotless/Checkstyle validation also succeeding.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

type:bug
What happened?

TableController reads page and pageSize without consistent positive-value or offset validation across ten endpoints. Invalid parameters can reach backend work, wrap the int offset, or return HTTP 500.

Expected: HTTP 400 before backend pagination for invalid input. Defaults remain page=1 and pageSize=20, and valid integer boundaries remain accepted.

Affects Versions

master at 061eb724e93592fe87cf44b61af34c1d799f5db6

What table formats are you seeing the problem on?

No response

What engines are you seeing the problem on?

No response

How to reproduce
  1. Send a table pagination request, for example the optimizing-process tasks endpoint, with page=0 or pageSize=0.
  2. Repeat with a negative parameter or page=2147483647 and pageSize=2, whose offset exceeds Integer.MAX_VALUE.
  3. Invalid input can reach downstream work, wrap the offset, or produce HTTP 500 instead of a validation response.

The minimal regression fixture uses actual Javalin query validators and four HTTP requests through embedded Javalin with the real validation and generic exception handlers.

Relevant log output

Anything else

108 regression cases cover all ten endpoints. The base has 64 failures, including HTTP 500 instead of 400. The fix makes all 108 pass; the existing 19 optimizer-pagination tests also pass. The 15-module reactor compiles and Spotless/Checkstyle validation passes. The tested branch is hutiefang76/amoro fix/table-pagination-validation.

Are you willing to submit a PR?
  • Yes I am willing to submit a PR!
Code of Conduct
  • I agree to follow this project's Code of Conduct
Lingua principale
Java
Stelle
1.2k
Fork
397
Merge medio
1g 21h
PR unite (30g)
19

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/amoro

Tutte le issue di apache/amoro

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.