[ 
https://issues.apache.org/jira/browse/GEODE-2080?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15655495#comment-15655495
 ] 

ASF subversion and git services commented on GEODE-2080:
--------------------------------------------------------

Commit d65b79a4634325edb73e2136f1e59d6879845faf in incubator-geode's branch 
refs/heads/develop from [~bschuchardt]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=d65b79a ]

GEODE-2080 Rest POST put call not working with region valueConstraint

If you set a value constraint on a cache Region you will be unable to store
objects in the region via the Rest API.  This change-set modifies
LocalRegion's constraint check to look for a Rest document and use its
type name in the constraint check


> Rest POST put call not working with region valueConstraint
> ----------------------------------------------------------
>
>                 Key: GEODE-2080
>                 URL: https://issues.apache.org/jira/browse/GEODE-2080
>             Project: Geode
>          Issue Type: Bug
>          Components: rest (dev)
>            Reporter: Bruce Schuchardt
>
> Gemfire REST POST call does not work on a region with value constraint eg If 
> I have a region definition like
>  
> <region name="regionOne" refid="REPLICATE_PERSISTENT">
>                 <region-attributes>
>                         <value-constraint>
>                            com.support.pivotal.domain.Company
>                          </value-constraint>
>                 </region-attributes>
>         </region>
> and try to do a POST call like
> ResponseEntity< String> result = RestClientUtils.getRestTemplate().exchange(
>             "http://localhost:8080/gemfire-api/v1/regionOne?key=CITI-123"; , 
> HttpMethod.POST,
>            entity,  String.class);
> It fails, whereas If I remove the value constraint in the region definition 
> it works fine. It is eaily reproducible.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to