-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
When creating an protobuf with at least 17 fields, if the 17th is not of type String, it is still considered as string causing downstream problems (example when trying to save the the DB.
William Burns identified the cause
William Burns: I was able to reproduce it by adding 20 fields, for some reason the 18th field from the parsed json is a string. The store has the proper type and thus it fails to convert the string "false" to a boolean
William Burns: The cause is because of this line https://github.com/infinispan/protostream/blob/main/core/src/main/java/org/infinispan/protostream/impl/JsonUtils.java#L578
William Burns: I need to look into why this is hardcoded like that
William Burns: It looks like this is a special case for when an enum is in a message https://github.com/infinispan/protostream/blob/main/core/src/main/java/org/infinispan/protostream/WrappedMessage.java#L297.
TBH I am not sure what the fix is for this.
- blocks
-
ISPN-14136 Upgrade protostream to version fixing IPROTO-243
-
- Closed
-
- duplicates
-
ISPN-14134 Field 17 of protobuf is always considered as a string
-
- Closed
-