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

Nodes which contain : are not correctly processed

    XMLWordPrintableJSON

Details

    Description

      Problem

      Nodes that contain : character are put in content packages with the help of _ , for example the following path /content/cq:tags/somenode in AEM would look in the content package like:
      /jcr_root/_cq_tags/somenode . This is done because Windows does not accept : in the name of it's files/folders.

      If the content package converter would process this path it would generate a the following repo:init lines

      "create path (sling:Folder) /content/_cq_tags",
      "create path (cq:Tag) /content/_cq_tags/somenode",
      

      Similar, if there are rep policies under that path, the output would look as following:

      "set ACL for my-system-user",
          "allow jcr:versionManagement,jcr:read,rep:write,crx:replicate,jcr:lockManagement on /content/_cq_tags/somenode",
      

      This results in the wrong node structure in the AEM instance, as follows:

      /content
         /cq:tags    ### <- original AEM folder
         /_cq_tags   ###<- folder created by the repoinit statements
      

      Attachments

        Activity

          People

            simone.tripodi Simone Tripodi
            andrei.tuicu Andrei Tuicu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 40m
                40m