[Bug]: Table pagination parameters can overflow or return server errors
I maintainer di solito rispondono entro 2 giorni
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
- Ambito
- api, backend, testing-qa
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
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
- Send a table pagination request, for example the optimizing-process tasks endpoint, with page=0 or pageSize=0.
- Repeat with a negative parameter or page=2147483647 and pageSize=2, whose offset exceeds Integer.MAX_VALUE.
- 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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di apache/amoro
-
[CI] Core CI doesn't run for changes to amoro-format-lance (and amoro-web)Forse già presa @MarkAlex1234 l’ha presa 3 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 2 giorni
-
fix: low-contrast secondary text color in global theme tokenForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertastale
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
apache/amoro#4157 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
fix: mock api server enabled in production build masks real error/loading uxForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertastale
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
apache/amoro#4155 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 2 giorni
-
[Bug]: AMS Spark type rendering loses Iceberg timestamp-without-zone semanticsForse già presa @hutiefang76 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di apache/amoro
Issue simili
-
backend
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
bcgov/nr-forest-client#2524 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
Sinytra/ForgifiedFabricAPI#298 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
team:Lumberjack
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
OpenLiberty/open-liberty#35998 ·
I maintainer di solito rispondono entro 1 giorno