Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32145

nuxeoctl showconf should resolve variable references

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.45
    • Fix Version/s: None

      Description

      My nuxeo.conf contains the following properties:

      elasticsearch.indexNamePrefix=nuxeo elasticsearch.indexName=${elasticsearch.indexNamePrefix}-default audit.elasticsearch.indexName=${elasticsearch.indexName}-audit
      seqgen.elasticsearch.indexName=${elasticsearch.indexName}-uidgen
      

      (Note: the customĀ elasticsearch.indexNamePrefix property is to allow for a multi-repo configuration)

      When querying the configuration with nuxeoctl showconf, these variable references should be resolved.

      Expected Result

      > nuxeoctl showconf | grep elasticsearch.indexName | sort -u
      audit.elasticsearch.indexName=nuxeo-default-audit
      elasticsearch.indexName=nuxeo-default
      elasticsearch.indexNamePrefix=nuxeo
      seqgen.elasticsearch.indexName=nuxeo-default-uidgen
      

      Actual Result

      > nuxeoctl showconf | grep elasticsearch.indexName | sort -u
      audit.elasticsearch.indexName=${elasticsearch.indexName}-audit
      elasticsearch.indexName=${elasticsearch.indexNamePrefix}-default
      elasticsearch.indexNamePrefix=nuxeo
      seqgen.elasticsearch.indexName=${elasticsearch.indexName}-uidgen
      

      Nuxeo (nuxeoctl showconf) should do this recursive expansion itself, as it's done when properties are read in Java code.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: