intent: the roll-up capacity guard runs before calculatedOnCreate - a calculated child amount is guarded as 0
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 57/100
Línea de trabajo
Start with components/template/template-application-dao-java/src/main/resources/META-INF/dirigible/template-application-dao-java/data/Repository.java.template, especially save() around lines 439–465 and the update path around line 569. Compare when roll-up capacity guards read the child amount with when create-time and update-time calculated fields are assigned; the body also points to calculatedForCreate(entity) and issues #7542 and #7544. Done when the guard evaluates the calculated amount and rejects a create or update that would exceed capacity.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
The generated repository's save() runs the roll-up capacity guard before the create-time calculated fields are assigned. A child whose summed of field is calculatedOnCreate (an expression or an action, e.g. Amount = Quantity * Price) reaches the guard as null, which is counted as 0. So the guard never refuses an over-capacity create, and the roll-up then sums the real value and drives the balance negative.
Where (release commit 862f6d1a, 14.93.0)
In Repository.java.template, save():
#rollupGuardCheck()/#gatedRollupGuardCheck()run at ~L450;- the
calculatedActionOnCreate/calculatedPropertyExpressionCreateassignments come at ~L456-L464; - the guard body reads
entity.<of>and treats null asBigDecimal.ZERO.
guardAt: (#7542) moves the guard to a later status, which works for a document total. It does nothing for a plain calculated child amount on create.
Expected
Assign the create-time calculated fields before the capacity guards, or evaluate the guard on calculatedForCreate(entity) (the candidate row the checks already use, #7544). The same ordering question applies to the update path (~L569 vs the on-update calcs).
Found on 14.88.0 by BusinessIntents (wave 2026-10-17) and re-checked against the 14.93.0 source; still present.
🤖 Generated with Claude Code
- Lenguaje dominante
- Java
- Estrellas
- 278
- Forks
- 97
- Merge medio
- 19 h 30 min
- PR fusionados (30 d)
- 242
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de eclipse-dirigible/dirigible
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
eclipse-dirigible/dirigible#7958 ·
Los mantenedores suelen responder en 1 día
-
intent: a create-from without fromStatus answers 200 on a missing or unknown source id (no 400/404)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eclipse-dirigible/dirigible#7945 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
eclipse-dirigible/dirigible#7891 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
eclipse-dirigible/dirigible#6538 ·
Los mantenedores suelen responder en 1 día
-
Create shortcut for Camel filesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
eclipse-dirigible/dirigible#4812 ·
Los mantenedores suelen responder en 1 día
Todos los issues de eclipse-dirigible/dirigible
Issues similares
-
area: android good first issue help wanted testing
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Gautam-aman/ResQNet#56 ·
Los mantenedores suelen responder en 1 día
-
documentation hermes-queue
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
chrisalunlloyd2-sudo/mindpalace#294 ·
Los mantenedores suelen responder en 1 día
-
better night vision compatAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
QuicksilverMC/Argentum#31 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
saysky/ForestBlog#111 ·
-
hawkbit-dmf-server 1.1.0 does not start: NoClassDefFoundError jakarta/servlet/ServletResponseAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
eclipse-hawkbit/hawkbit#3429 · 1 comentario ·
Los mantenedores suelen responder en 1 día