transclusion: cycle-guard в collectPageEmbedsFromPmJson #55
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Найдено при написании тестов (хвост PR #49).
apps/server/src/core/page/transclusion/utils/transclusion-prosemirror.util.ts(~:108-139) — уcollectPageEmbedsFromPmJsonнет guard от циклов: на циклическом объекте —RangeError(stack overflow). Через JSON-парсинг недостижимо (реальный входной путь), поэтому низкий приоритет.Предложение: добавить guard по глубине/visited на случай не-JSON источника входа.
Ghost referenced this issue2026-06-21 14:10:34 +03:00