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

Create parent node automatically if it does not exist yet and is not covered by the filter.xml

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • Sling Eclipse IDE 1.0.0
    • None
    • None
    • None

    Description

      Currently if I try to publish a node, whose parent does not exist yet in the repository and is not covered by the filter.xml either the following exception occurs

      Failed publishing path=/apps/social/blog/components, result=JcrResult[ success:false, exception: org.apache.sling.ide.transport.RepositoryException - javax.jcr.RepositoryException: No parent found at /apps/social/blog ; it's needed to create node at /apps/social/blog/components]
      

      The tool should behave similar to the package installer, i.e. create those parent nodes with a default type (i.e. nt:folder) and only log that as a warning.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kwin Konrad Windszus
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: