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

Index definition extraction from content packages is missing binary files data

    XMLWordPrintableJSON

Details

    Description

      Currently, binaries are stored in indexDefinitions at [1] and these binaries should be written in JSONOutput at [2], However each time we are getting it as empty at [2].

      The reason is that we are storing binaries against its repositoryPath instead it should be its parent path.

      i.e we are storing tika config.xml binaries at repositoryPath
      `oak:index/damAssetLucene-8-custom-2/tika/config.xml`
      and while writing at [2],we are trying to fetch it from `oak:index/damAssetLucene-8-custom-2/tika/`
      because of this we are getting it as empty as nodeName is till `oak:index/damAssetLucene-8-custom-2/tika` only.

      [1]:https://github.com/niekraaijmakers/sling-org-apache-sling-feature-cpconverter/blob/master/src/main/java/org/apache/sling/feature/cpconverter/handlers/IndexDefinitionsEntryHandler.java
      [2]:https://github.com/niekraaijmakers/sling-org-apache-sling-feature-cpconverter/blob/master/src/main/java/org/apache/sling/feature/cpconverter/index/IndexDefinitionsJsonWriter.java#L137

       

      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: