[infinispan-issues] [JBoss JIRA] (ISPN-6734) XML serializer serializes the singleFile location property in different way

Tristan Tarrant (JIRA) issues at jboss.org
Fri Jul 29 04:23:00 EDT 2016


     [ https://issues.jboss.org/browse/ISPN-6734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tristan Tarrant updated ISPN-6734:
----------------------------------
           Status: Resolved  (was: Pull Request Sent)
    Fix Version/s: 9.0.0.Alpha4
                   9.0.0.Final
       Resolution: Done


> XML serializer serializes the singleFile location property in different way
> ---------------------------------------------------------------------------
>
>                 Key: ISPN-6734
>                 URL: https://issues.jboss.org/browse/ISPN-6734
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Configuration
>            Reporter: Anna Manukyan
>            Assignee: Anna Manukyan
>             Fix For: 9.0.0.Alpha4, 9.0.0.Final
>
>
> In case when {{persistence}} is configured with {{SingleFileStore}} class and the location is provided with properties, the generated xml contains both the {{path}} attribute and the property with the same value.
> This code:
> {code}
> <infinispan>
> <namedCache name="withLoaderDefaults">
>         <persistence>
>             <store class="org.infinispan.persistence.file.SingleFileStore">
>                 <properties>
>                     <property name="location" value="/tmp/Another-FileCacheStore-Location" />
>                 </properties>
>             </store>
>         </persistence>
>     </namedCache>
> </infinispan>
> {code}
> is converted to:
> {code}
> <infinispan>
>     <threads/>
>     <cache-container name="DefaultCacheManager">
>         <jmx/>
>         <local-cache name="withLoaderDefaults">
>             <transaction mode="NONE"/>
>             <persistence>
>                 <file-store path="/tmp/Another-FileCacheStore-Location">
>                     <property name="location">
>                         /tmp/Another-FileCacheStore-Location
>                     </property>
>                 </file-store>
>             </persistence>
>         </local-cache>
> </cache-container>
> </infinispan>
> {code}
> Also, if the value of location {{property}} is set to e.g. 
> {noformat}
> ${java.io.tmpdir}
> {noformat}
> , then the evaluated value is placed in the generated xml.
> So the following xml:
> {code}
> <infinispan>
>     <namedCache name="withLoaderDefaults">
>         <persistence>
>             <store class="org.infinispan.persistence.file.SingleFileStore">
>                 <properties>
>                     <property name="location" value="${java.io.tmpdir}" />
>                 </properties>
>             </store>
>         </persistence>
>     </namedCache>
> </infinispan>
> {code}
> is converted to:
> {code}
> <infinispan>
>     <threads/>
>     <cache-container name="DefaultCacheManager">
>         <jmx/>
>         <local-cache name="withLoaderDefaults">
>             <transaction mode="NONE"/>
>             <persistence>
>                 <file-store path="/tmp">
>                     <property name="location">
>                         /tmp
>                     </property>
>                 </file-store>
>             </persistence>
>         </local-cache>
> </cache-container>
> </infinispan>
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the infinispan-issues mailing list