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

CPConverter - Sling initial content - json files should be converted to folders with a content xml in any case to avoid conflicts

    XMLWordPrintableJSON

Details

    Description

      In case of converting sling initial content containing JSON files over to xml, currently the cpconverter simply creates a xml file in the same level.

      The problem is when there are other files in a directory with the same name to go along the resourceType.

      For example we have:

       

      • page.json
      • page/body.html
      • page/footer.html

       

      The result will be:

      • page.xml
      • page/body.html
      • page/footer.html

       

      Vault doesn't like this approach so much, resulting in stuff like:

      • page.dir
      • page.xml
      • page/.content.xml (with resourceType nt:folder)
      • page/body.html
      • page/footer.html

      The solution lies in simply redirecting the output to .content.xml in a new folder:

      • page/.content.xml 
      • page/body.html
      • page/footer.html

       

      Attachments

        Issue Links

          Activity

            People

              Sc0rpic0m Niek Raaijmakers
              Sc0rpic0m Niek Raaijmakers
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: