neos/neos-development-collection

BUG: NodeDuplicationService fails for undeclared properties

开放

#5,686 创建于 2025年11月21日

 (0 条评论) (0 个反应) (0 位负责人)PHP (248 个派生)auto 404
9.0BugGood first issue

仓库指标

星标
 (267 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When

  1. a node property is set
  2. the set property is removed from the node type declaration
  3. the node is copied

the CreateNodeAggregateWithNode fails with PropertyCannotBeSet (see ConstraintChecks::requireNodeTypeToDeclareProperty)

Expected Behavior

This makes sense to keep the CR state as consistent as possible, but the NodeDuplicationService should filter the properties to be set first.

Steps To Reproduce

No response

Environment

- Flow: 9.0.4
- Neos: 9.0.7
- PHP: 8.2

Anything else?

No response

贡献者指南