[
https://issues.apache.org/jira/browse/USERGRID-1177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brandon Shelley updated USERGRID-1177:
--------------------------------------
Description:
Make a PUT request to:
{code}https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/nodejs{code}
with body:
{code}[{"food": "lasagne"}]{code}
Throws a 500 error.
The same request with an empty body throws a 500 error as well.
The original payload PUT as an object (not wrapped in an array) creates the
record and returns a 200 OK.
was:
Make a PUT request to:
{code}https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/nodejs{code}
with body:
{code}[{"food": "lasagne"}]{code}
Throws a 500 error.
The same payload NOT wrapped in an array creates the record and returns a 200
OK.
> Making a PUT request to a collection with an Array or empty body throws a 500
> error
> -----------------------------------------------------------------------------------
>
> Key: USERGRID-1177
> URL: https://issues.apache.org/jira/browse/USERGRID-1177
> Project: Usergrid
> Issue Type: Bug
> Components: Stack
> Affects Versions: 2.1.0
> Reporter: Brandon Shelley
> Fix For: 2.1.0
>
>
> Make a PUT request to:
> {code}https://api-connectors-prod.apigee.net/appservices/api-connectors/sdksandbox/nodejs{code}
> with body:
> {code}[{"food": "lasagne"}]{code}
> Throws a 500 error.
> The same request with an empty body throws a 500 error as well.
> The original payload PUT as an object (not wrapped in an array) creates the
> record and returns a 200 OK.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)