Run history: cap the window so fromDate=1970-01-01 cannot restore the unbounded read
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start from the scheduled transfers run history endpoint in consumer/ and the default twelve-month window added by #265, then follow where the fromDate parameter is parsed and passed to the Fineract run-history pagination loop (200 runs per page). Read #250 and #265 for the earlier unbounded-read context before touching anything. The first blocker is not code: a maintainer must choose between a maximum date window and a maximum page count, so ask on the issue which is preferred. Done looks like a documented limit, a rejection path for requests exceeding it, and endpoint tests covering fromDate=1970-01-01.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Where it happens
BFF API (consumer/)
What happened
#250 identified that the run history read can become increasingly expensive as the source account accumulates more scheduled transfer runs.
PR #265 introduced a default twelve-month date window, which addresses the unbounded default query.
However, callers can still explicitly provide fromDate=1970-01-01, effectively restoring the ability to read the entire run history.
The endpoint retrieves Fineract run history in pages of 200 runs. Since Fineract does not filter this history by instruction, the BFF may need to retrieve every run belonging to the source account within the requested date window.
This means the cost of the request can still grow with the account's history when a sufficiently large date range is supplied.
Expected behaviour:
- Requests should have a maximum permitted date window or a maximum number of Fineract pages to retrieve.
- Requests exceeding the permitted limit should receive a clearly defined response rather than triggering an effectively unbounded read.
Related:
- #250
- #265
- #239
A maximum date window would be straightforward to document and test. Alternatively, a maximum Fineract page limit could bound upstream reads directly. The preferred approach should be agreed upon with maintainers.
Steps to reproduce
- Open the scheduled transfers run history endpoint.
- Make a request with fromDate=1970-01-01.
- Observe that the endpoint accepts the large date range.
- The BFF retrieves Fineract run history in pages of 200 runs.
- For accounts with extensive run history, this can result in a large number of upstream requests.
Expected: The endpoint should enforce a maximum date window or page limit.
Actual: An extremely large date range can still result in an effectively unbounded history read.
Error code, correlation ID and logs
Not applicable. This is a performance and resource-consumption concern rather than a failing BFF response. No specific error code or correlation ID is required to demonstrate the issue.
How you ran it
Docker Compose e2e stack (docker-compose.e2e.yml)
Fineract image
apache/fineract:405c18dcabfc235325e71616e816290234eead87
Commit
No response
Browser and version
No response
Before submitting
- I searched the existing issues.
- This is not a security vulnerability, and it is not a bug in Fineract Core.
- Lingua principale
- Java
- Stelle
- 7
- Fork
- 22
- Merge medio
- 1g 14h
- PR unite (30g)
- 50
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/fineract-consumer-facing
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/fineract-consumer-facing#306 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
apache/fineract-consumer-facing#305 ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement Triage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 63/100
apache/fineract-consumer-facing#285 ·
I maintainer di solito rispondono entro 2 giorni
-
Backend: decide whether feature services may call the generated Fineract Feign clients directlyForse di nuovo libera @Aana123 l’ha presa 36 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement question
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
apache/fineract-consumer-facing#188 · 7 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Frontend: migrate the remaining ngx-translate and Web Storage usages behind the I18N and STORAGE adaptersForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaenhancement
Difficoltà 4/5 Più di una settimana Idoneità per principianti 25/100
apache/fineract-consumer-facing#172 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di apache/fineract-consumer-facing
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
commons-app/apps-android-commons#7486 ·
I maintainer di solito rispondono entro 1 giorno
-
easy first-contributor first-contributors good first issue help wanted kotlin up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
fork-commit-merge/fork-commit-merge#8752 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
testng-team/testng#3672 ·
I maintainer di solito rispondono entro 1 giorno
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
eclipse-edc/IdentityHub#1296 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
cloudfoundry/uaa#4194 ·
I maintainer di solito rispondono entro 1 giorno