]
Vittorio Rigamonti updated ISPN-6328:
-------------------------------------
Fix Version/s: 9.0.0.Alpha2
(was: 9.0.0.Alpha1)
Improper configuration of marshalling can lead to
com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid
tag (zero)
------------------------------------------------------------------------------------------------------------------------------------------------------
Key: ISPN-6328
URL:
https://issues.jboss.org/browse/ISPN-6328
Project: Infinispan
Issue Type: Bug
Components: Remote Querying
Affects Versions: 8.2.0.CR1
Reporter: Adrian Nistor
Assignee: Adrian Nistor
Fix For: 9.0.0.Alpha2
Running queries on a remote cache that was previously populated by an app that did not
use protobuf marshalling should be allowed, and all those entities that were not encoded
using protobuf should be ignored by the query engine and a warning should be logged
instructing the user about the potential issue and how to fix the configuration.
The current behaviour in this case is not user friendly, especially in case of
non-indexed query. An error is thrown during query evaluation:
"com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an
invalid tag (zero)." which indicates the unmarshalling of the queried entities is not
possible. The actual cause of the bad encoding should be explained to the user and no
exception should be thrown as if the type of entities does not match the requested type.