Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16087

Concrete config is validated before applying template configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 14.0.29.Final, 15.0.4.Final
    • 14.0.14.Final, 15.0.0.Final
    • Core
    • None

      If a user specifies a template with a setting that is required in a concrete config that uses that template validation will fail, despite it being configured properly.

      An example is as follows:

                distributedCacheConfiguration:
                  name: "template"
                  encoding:
                    mediaType: "application/x-jboss-marshalling"
      
                distributedCache:
                  configuration: "template"
                  memory:
                    maxSize: "200MB"
                    whenFull: "REMOVE"
                  name: "config" 
      

      In this case the maxSize configuration option requires a storage media type that is binary compatible. This should be an okay configuration but due to the validation step being performed on the configuration before the template is applied it fails.

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: