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

Cache conversion does not show cache name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 14.0.0.CR1
    • None
    • Core, REST
    • None
    • Hide
      • Launch Infinispan server
      • Execute 
         
        curl --location --request POST 'http://localhost:11222/rest/v2/caches?action=convert' \ --header 'Accept: application/yaml' \ --header 'Content-Type: application/xml' \ --data-raw '<distributed-cache name="hello-infinispan" owners="1" mode="ASYNC" statistics="true"> <state-transfer enabled="false"/> <memory> <!--[NUMBER_OF_MAX_ENTRIES]Define here the userdetails cache size in number of entries --> <object size="200"/> </memory> <!--[EXPIRATION_TIME_IN_MILLISECONDS]Define here the userdetails cache expiration time in milliseconds --> <expiration lifespan="600000"/> </distributed-cache>'

         

      • Result is:
        distributedCache:  owners: "1" mode: "ASYNC" statistics: "true" expiration: lifespan: "600000" memory: storage: "OBJECT" maxCount: "200" stateTransfer: enabled: "false" 

         
         
        Result should be:

        hello-infinispan:  distributedCache: owners: "1" mode: "ASYNC" statistics: "true" expiration: lifespan: "600000" memory: storage: "OBJECT" maxCount: "200" stateTransfer: enabled: "false" 

         

      Show
      Launch Infinispan server Execute    curl --location --request POST 'http: //localhost:11222/ rest /v2/caches?action=convert' \ --header 'Accept: application/yaml' \ --header 'Content-Type: application/xml' \ --data-raw '<distributed-cache name= "hello-infinispan" owners= "1" mode= "ASYNC" statistics= " true " > <state-transfer enabled= " false " /> <memory> <!--[NUMBER_OF_MAX_ENTRIES]Define here the userdetails cache size in number of entries --> <object size= "200" /> </memory> <!--[EXPIRATION_TIME_IN_MILLISECONDS]Define here the userdetails cache expiration time in milliseconds --> <expiration lifespan= "600000" /> </distributed-cache>'   Result is: distributedCache: owners: "1" mode: "ASYNC" statistics: " true " expiration: lifespan: "600000" memory: storage: "OBJECT" maxCount: "200" stateTransfer: enabled: " false "     Result should be: hello-infinispan: distributedCache: owners: "1" mode: "ASYNC" statistics: " true " expiration: lifespan: "600000" memory: storage: "OBJECT" maxCount: "200" stateTransfer: enabled: " false "  
    • User Experience

    Description

      Given a Cache definition, the REST API should convert the cache name to the specified format

      Attachments

        Activity

          People

            ncamilli@redhat.com Nicolas Camilli
            ncamilli@redhat.com Nicolas Camilli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: