[infinispan-issues] [JBoss JIRA] (ISPN-12015) NPE if DefaultCacheManager created with InputStream and `xi:include` required
Ryan Emerson (Jira)
issues at jboss.org
Tue Jun 16 12:03:00 EDT 2020
[ https://issues.redhat.com/browse/ISPN-12015?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ryan Emerson updated ISPN-12015:
--------------------------------
Steps to Reproduce:
Create a cache manager with the following xml file:
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is just a very simplistic example configuration file. For more information, please see
https://infinispan.org/docs/stable/ for more configuration details.
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xi="http://www.w3.org/2001/XInclude"
xsi:schemaLocation="urn:infinispan:config:11.0 http://infinispan.org/schemas/infinispan-config-11.0.xsd"
xmlns="urn:infinispan:config:11.0">
<cache-container default-cache="default" statistics="true">
<transport stack="udp" cluster="mycluster" />
<xi:include href="some-other-xml"/>
</cache-container>
</infinispan>
{code}
{code:java}
new DefaultCacheManager("some.xml");
{code}
was:
Create a cache manager with the following xml file:
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<!--
This is just a very simplistic example configuration file. For more information, please see
https://infinispan.org/docs/stable/ for more configuration details.
-->
<infinispan
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xi="http://www.w3.org/2001/XInclude"
xsi:schemaLocation="urn:infinispan:config:${infinispan.base.version} http://infinispan.org/schemas/infinispan-config-${infinispan.base.version}.xsd"
xmlns="urn:infinispan:config:${infinispan.base.version}">
<cache-container default-cache="default" statistics="true">
<transport stack="udp" cluster="mycluster" />
<xi:include href="some-other-xml"/>
</cache-container>
</infinispan>
{code}
{code:java}
new DefaultCacheManager("some.xml");
{code}
> NPE if DefaultCacheManager created with InputStream and `xi:include` required
> -----------------------------------------------------------------------------
>
> Key: ISPN-12015
> URL: https://issues.redhat.com/browse/ISPN-12015
> Project: Infinispan
> Issue Type: Bug
> Components: Configuration, Core
> Affects Versions: 11.0.0.Final
> Reporter: Ryan Emerson
> Assignee: Ryan Emerson
> Priority: Major
> Fix For: 11.0.1.Final
>
>
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list