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

jcr:data node missing for file resources generated in binaries index defintions

    XMLWordPrintableJSON

Details

    Description

      The index definition files generated by the cpcconvertor are missing mandatory jcr:data nodes.

      How the resource should look:

          "tika": {
                  "jcr:primaryType": "nam:nt:unstructured",
                  "config.xml": {
                      "jcr:primaryType": "nam:nt:file",
                      "jcr:content": {
                          "jcr:primaryType": "nam:nt:unstructured",
                          "jcr:mimeType": "text/xml"
                      }
                  }
              } 
      

       

      How it looks like now:

            "tika": {
                  "jcr:primaryType": "nam:nt:unstructured",
                  "config.xml": {
                      "jcr:primaryType": "nam:nt:file",
              
                      "jcr:content": {
                          "jcr:primaryType": "nam:nt:unstructured",
                          "jcr:mimeType": "text/xml",
                          "jcr:data": "<base6_data>"
      
                      }
                  }
              } 

      There is no `jcr:data` node present

      This happens when node structure is like:

            <tika jcr:primaryType="nt:unstructured">
                  <config.xml jcr:primaryType="nt:file" >
                      <jcr:content
                              jcr:primaryType="nt:unstructured"
                              jcr:mimeType="text/xml"/>
                  </config.xml>
              </tika>  

      Attachments

        Issue Links

          Activity

            People

              abhigarg Abhishek Garg
              abhigarg Abhishek Garg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: