You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2019/11/12 17:40:00 UTC
[jira] [Commented] (GEODE-7418) Crash in deserialization of JSON
Pdx value when PdxReadSerialized=false
[ https://issues.apache.org/jira/browse/GEODE-7418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16972650#comment-16972650 ]
ASF subversion and git services commented on GEODE-7418:
--------------------------------------------------------
Commit c932a1d765809dcd8d7a0c0f14a3aa6c98e18a5c in geode-native's branch refs/heads/develop from Jacob Barrett
[ https://gitbox.apache.org/repos/asf?p=geode-native.git;h=c932a1d ]
GEODE-7418: Fixes issue deserializing unregistered PDX types. (#546)
* GEODE-7418: Fixes issue deserializing unregistered PDX types.
* If a PDX type does not have a domain class or registered serializer then
we now fall back to PdxInstance objects.
* Add test case to reproduce crash deserializing JSON values
* Add test case for serializing non-PDX types
* Test macro cleanup - Fixes test macros to properly handle ;
> Crash in deserialization of JSON Pdx value when PdxReadSerialized=false
> -----------------------------------------------------------------------
>
> Key: GEODE-7418
> URL: https://issues.apache.org/jira/browse/GEODE-7418
> Project: Geode
> Issue Type: Bug
> Components: native client
> Reporter: Blake Bender
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> As a developer, I should be able to put and get JSON Pdx values in a region without any "extra effort" such as registering types or setting PdxReadSerialized to true when creating my cache. Currently if I do this, put a JSON value into a region, and attempt a get, NC will segfault attempting to create a PdxInstanceImpl.
>
> Steps to repro:
> * Build NC from the `*[pdxinstance_json_crash_repro|https://github.com/pdxcodemonkey/geode-native/tree/pdxinstance_json_crash_repro]`* branch of my (pdxcodemonkey) fork
> * Run NC integration test `PdxInstanceTest.testCreateJsonInstance`
> Expected result:
> * test passes
> Actual result:
> * test fails with a segfault in NC
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)