[
https://issues.jboss.org/browse/ISPN-8898?page=com.atlassian.jira.plugin....
]
Gustavo Fernandes updated ISPN-8898:
------------------------------------
Workaround Description:
Currently Infinispan only creates the correct wrapper around data for server mode, but
it's possible to manually force with:
{code}
DefaultCacheManager cacheManager = new
DefaultCacheManager("distlayer-distributed-config.xml");
AdvancedCache<?, ?> advancedCache = ...
advancedCache.getValueDataConversion().overrideWrapper(ProtostreamWrapper.class,
advancedCache.getComponentRegistry());
{code}
was:
Currently Infinispan only creates the correct wrapper around data for server mode, but
it's possible to manually force with:
DefaultCacheManager cacheManager = new
DefaultCacheManager("distlayer-distributed-config.xml");
{code}
AdvancedCache<?, ?> advancedCache = ...
advancedCache.getValueDataConversion().overrideWrapper(ProtostreamWrapper.class,
advancedCache.getComponentRegistry());
{code}
Indexing not working using REST with embedded cache manager
-----------------------------------------------------------
Key: ISPN-8898
URL:
https://issues.jboss.org/browse/ISPN-8898
Project: Infinispan
Issue Type: Bug
Components: Indexing, Remote Querying, REST
Affects Versions: 9.2.0.Final
Environment: sample application attached
Reporter: Adam Melkus
Assignee: Gustavo Fernandes
Fix For: 9.2.1.Final
Attachments: ispn_broken.zip
JSON entities stored using REST with protobuf schema are not indexed and therefore
querying using REST doesn't work.
Possible issue found is in class {{InternalCacheFactory}} on line 93 where
{{DataConversion}} instance is created with {{ByteArrayWrapper}} wrapper. When the value
type is {{application/x-protostream}} the wrapper should be {{ProtostreamWrapper}}.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)