Text props: an unknown writing-system handle is saved as ws="", which no reader can load
评估
调研方向
Start with TsPropsSerializer, TsStringSerializer, and TextPropsRoundTripTests, then trace how the StyleRules reader and run reader handle an empty ws. Add round-trip coverage for props or runs using an unknown writing-system handle; done means serialization and deserialization no longer produce a corrupted-record failure. Pull request #413 is already open for this issue.
由索引模型根据 Issue 内容生成。
描述
When a text property holds a writing-system handle the writing-system factory does not know, TsPropsSerializer / TsStringSerializer write ws="" (the id lookup returns empty). Both the StyleRules reader and the run reader reject an empty ws, so the object fails to load ("corrupted record").
Found while reviewing #410 (it predates that PR).
Repro: build props or a run with ws (or baseWs) set to a handle not registered in the factory, serialize, then deserialize.
Suggested fix: the writer should never emit ws="": leave the attribute out (and log) or fail at the point the unknown handle is set; optionally make the reader tolerate an empty ws by dropping it. Add round-trip tests alongside TextPropsRoundTripTests.
🤖 Generated with Claude Code
- 主要语言
- C#
- 星标
- 3
- 派生
- 15
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sillsdev/liblcm 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 54/100
-
Saving run text that contains a lone (unpaired) surrogate throws in TsString normalization可能已有人在做 @johnml1135 于 5 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 30/100
-
Text property XML: writer emits properties and values its own reader rejects (record fails to load)可能已有人在做 @johnml1135 于 5 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 38/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
criticalmanufacturing/cli#909 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
RadicalCSG/com.chisel#312 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
eyalgolan/statecraft-israel#3093 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 63/100
DeveloperAcademy-POSTECH/2026-C6-M10-MUSA#677 ·
维护者通常 1 天内回复
-
REQ-13 : une demande En cours perd son responsable par un simple enregistrement, et reste En cours未关闭a-corriger bug
难度 2/5 1-3 小时 新手友好度 76/100
christian-raj/S-Aloha#301 ·