Export reads one row at a time without a snapshot, and import crashes on a locale for a non-localized type
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 567
- Fork
- 107
- Merge trung bình
- 1 giờ 19 phút
- Pull request đã merge (30 ngày)
- 353
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluentcms/FluentCMS
-
area:localization plugin type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:testing type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:publishing type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fluentcms/FluentCMS#3473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage plugin type:bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsĐang mởbug sev-5 vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
area:jobads-cv bug FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
klasolsson81/jobbliggaren#2271 ·
Maintainer thường phản hồi trong vòng 1 ngày