Export reads one row at a time without a snapshot, and import crashes on a locale for a non-localized type
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- C#
- スター
- 567
- フォーク
- 107
- 平均マージ
- 1時間 19分
- マージ済み PR(30日)
- 353
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
fluentcms/FluentCMS のほかの issue
-
area:localization plugin type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:storage type:bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
area:testing type:bug
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
area:api area:publishing type:feature
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
fluentcms/FluentCMS#3473 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area:storage plugin type:bug
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
fluentcms/FluentCMS の issue をすべて見る
似ている issue
-
worldInstancedOccluderNode reads its appendix count as one byte, but it is a VLQ対応中かも @spuddeh が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtime対応中かも @Goldziher が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
priority:P2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsオープンbug sev-5 vm
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100