Export reads one row at a time without a snapshot, and import crashes on a locale for a non-localized type
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
Línea de trabajo
Start with the named transfer paths under src/FluentCMS.Core/: Content/EntryTransfer.cs, Transfer/TransferExporter.cs, Transfer/TransferImporter.cs, and the referenced store, service, import, and authorization files. Trace export queries and transaction handling, then follow how import handles locales and author fields; check the tests for each acceptance item. Done means all four behaviors meet the acceptance criteria and each has a test.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
- Export reads entries one row at a time. Only
cms_documentis read in chunks of 100 (Content/EntryTransfer.cs:67-69). Each locale row then callsstore.ReadAsyncper state (:82-83), 2–3 queries each (Content/EntryStore.cs:143-153): up to 6 queries per locale row. - Export is not a snapshot.
Transfer/TransferExporter.cs:125-140opens no transaction; ids, document rows and field rows are separate statements. A save during the export can pair an old version with new fields, or leave a reference to an entry missing from the package. - A non-localized item that carries a locale crashes. The locale is kept as sent (
Transfer/TransferImporter.cs:424-427) but the row is written under""(Content/ContentService.cs:1256), sowritten.Find(...)!throws aNullReferenceException(Content/ContentService.Import.cs:113-116). The item is reported as an unexpected failure. Only hand-made packages do this. - The package decides who owns imported entries. Keeping the author fields is specified (spec 4.14), but the own-entries rule keys on
CreatedBy(Authorization/AuthorizationBuilder.cs:16), and there is no way to import as oneself.
Paths are under src/FluentCMS.Core/.
Proposal
- Read shared rows, locale rows and references per chunk with
IN (ids). - Run the export in one snapshot or repeatable-read transaction.
- Refuse the line as an invalid item, with a message.
- Add
authors=keep|importerto import, defaultkeep.
Acceptance
- Exporting N entries issues a number of queries proportional to N / chunk size
- A save during an export does not change what the package contains
- A non-localized item with a locale is reported as invalid, not as an unexpected failure
-
authors=importerrecords the importer as creator and updater - Tests for each
Found in the code review of 17 Nov 2026.
- Lenguaje dominante
- C#
- Estrellas
- 567
- Forks
- 107
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 353
Preparar el entorno
- Incluye un Dockerfile o un 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 fluentcms/FluentCMS
-
area:localization plugin type:bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
area:storage type:bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Los mantenedores suelen responder en 1 día
-
area:testing type:bug
Dificultad 3/5 1-2 días Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
area:api area:publishing type:feature
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
fluentcms/FluentCMS#3473 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area:storage plugin type:bug
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
Los mantenedores suelen responder en 1 día
Todos los issues de fluentcms/FluentCMS
Issues similares
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQPosiblemente ocupada @spuddeh la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimePosiblemente ocupada @Goldziher la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
priority:P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsAbiertobug sev-5 vm
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100