Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-10449

Repoinit: create path doesn't allow for providing required properties

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Repoinit Parser 1.6.8, Repoinit JCR 1.1.34
    • None
    • Repoinit
    • None

    Description

      As an example, adding this to a feature file of the Sling Starter

      create path (oak:QueryIndexDefinition) /oak:index/someDefinition
      

      Causes startup to fail as that nodetype has at least one required property:

      OakConstraint0021:
      /oak:index/contentFragmentProperty[[oak:QueryIndexDefinition]]: 
      Mandatory property type not found in a new node
      

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            bdelacretaz Bertrand Delacretaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: