Bertrand Delacretaz created SLING-10449:
-------------------------------------------
Summary: Repoinit: create path doesn't allow for providing
required properties
Key: SLING-10449
URL: https://issues.apache.org/jira/browse/SLING-10449
Project: Sling
Issue Type: Improvement
Components: Repoinit
Affects Versions: Repoinit Parser 1.6.8, Repoinit JCR 1.1.34
Reporter: Bertrand Delacretaz
As an example, adding this to a feature file of the Sling Starter
{code:java}
create path (oak:QueryIndexDefinition) /oak:index/someDefinition
{code}
Causes startup to fail as that nodetype has at least one required property:
{code:java}
OakConstraint0021:
/oak:index/contentFragmentProperty[[oak:QueryIndexDefinition]]:
Mandatory property type not found in a new node
{code}
We might introduce a "with properties" option to "create path" using the same
syntax as "set properties".
I don't need this right now so won't give priority to this ticket.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)