Content writes have no default item cap, no hook timeout, and an idempotency lease that is never renewed
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 35/100
Piste de recherche
Start with the cited files under src/FluentCMS.Core/: Schema/FieldTypes/FieldLengths.cs, Content/Validation/DeclarativeValidator.cs, Content/Hooks/HookPipeline.cs, and Idempotency/IdempotencyStore.cs. Read the related spec and trace how field limits, hook execution, and idempotency leases are handled; then find the existing tests for each area. Done means all three acceptance cases pass, with tests covering them.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Problem
- Multiple-value fields have no default item cap.
Schema/FieldTypes/FieldLengths.cs:18-19gives them no default andContent/Validation/DeclarativeValidator.cs:106checks only a declared maximum. Over HTTP the 2 MiB body is the bound; SDK calls and imports have none. - A hook can hold the write transaction without limit. Hooks run inside it by design (spec line 684), but there is no hook timeout (
Content/Hooks/HookPipeline.cs:98-108), and SQLite takes the write lock at begin (Content/ContentService.cs:546). - A write can run twice under one idempotency key. The claim itself is safe (
Idempotency/IdempotencyStore.cs:66-95,125-133), but the 5-minute lease is never renewed (Idempotency/IdempotencyOptions.cs:17). A handler that runs longer, or a retry after a client abort (Api/Common/IdempotentRequests.cs:44-49), can take the key over while the first run is still working.
Paths are under src/FluentCMS.Core/.
Proposal
- A default cap of 1,000 items for multiple and blocks fields; a declared maximum overrides it.
- A configurable hook timeout and a warning that names a slow hook.
- Renew the lease while the handler runs.
Acceptance
- A value with more than 1,000 items is refused unless the field declares a higher maximum
- A hook over the timeout fails the write with a problem naming the hook
- A handler that runs longer than the lease is not run a second time under its key
- Tests for each
Found in the code review of 17 Nov 2026.
- Langage dominant
- C#
- Étoiles
- 567
- Forks
- 107
- Merge moyen
- 1 h 19 min
- PR mergées (30 j)
- 353
Préparer son environnement
- Fournit un Dockerfile ou un fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de fluentcms/FluentCMS
-
area:localization plugin type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area:storage type:bug
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
Les mainteneurs répondent en général sous 1 jour
-
area:testing type:bug
Difficulté 3/5 1-2 jours Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour
-
area:api area:publishing type:feature
Difficulté 4/5 3-5 jours Accessibilité débutants 55/100
fluentcms/FluentCMS#3473 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
area:storage plugin type:bug
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 35/100
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de fluentcms/FluentCMS
Issues similaires
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQPeut-être pris @spuddeh l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePeut-être pris @Goldziher l’a pris aujourd’hui. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
priority:P2
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsOuvertebug sev-5 vm
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100