[
https://issues.jboss.org/browse/ISPN-8898?page=com.atlassian.jira.plugin....
]
Gustavo Fernandes commented on ISPN-8898:
-----------------------------------------
Hi Adam, thanks for sharing the reproducer!
You can workaround the issue until it's fixed by changing the wrapper for the indexed
cache manually:
{code:java}
DefaultCacheManager cacheManager = new
DefaultCacheManager("distlayer-distributed-config.xml");
AdvancedCache<?, ?> pokemonCache =
cacheManager.getCache("pokemon").getAdvancedCache();
pokemonCache.getValueDataConversion().overrideWrapper(ProtostreamWrapper.class,
pokemonCache.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
Priority: Critical
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)