You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Abhishek Garg (Jira)" <ji...@apache.org> on 2023/01/26 13:54:00 UTC

[jira] [Created] (SLING-11764) jcr:content node missing for file resources generated in binaries index defintions

Abhishek Garg created SLING-11764:
-------------------------------------

             Summary: jcr:content node missing for file resources generated in binaries index defintions
                 Key: SLING-11764
                 URL: https://issues.apache.org/jira/browse/SLING-11764
             Project: Sling
          Issue Type: Improvement
          Components: Content-Package to Feature Model Converter
    Affects Versions: Content-Package to Feature Model Converter 1.1.26
            Reporter: Abhishek Garg


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

How the resource should look:
{code:java}
    "tika": {
      "jcr:primaryType": "nam:nt:unstructured",
      "config.xml": {
        "jcr:primaryType": "nam:nt:file",
        "jcr:content": {
          "jcr:mimeType": "text/xml",
          "jcr:data": ":blobId:<binary_data>",
          "jcr:primaryType": "nam:nt:resource"
        }
      }
    }
{code}
 

How it looks like now:
{code:java}
      "tika":{
         "jcr:primaryType":"nam:nt:unstructured",
         "config.xml":{
            "jcr:primaryType":"nam:nt:file",
          "jcr:data":":blobid:<binary_data>"
         }
      }{code}
 

there is no jcr:content node present



--
This message was sent by Atlassian Jira
(v8.20.10#820010)