You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/07/15 19:43:05 UTC
[jira] [Updated] (USERGRID-858) Notifications POST throwing NPE
[ https://issues.apache.org/jira/browse/USERGRID-858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeffrey updated USERGRID-858:
------------------------------
Description:
{code}curl -X POST -d '{ "payloads": { "apple-dev": "Hello World!" } }' 'https://api.usergrid.com/brandon.apigee/baas-integration-tests/devices/*/notifications?client_id=redacted&client_secret=redacted'{code}
throws:
{code}{
"error": "runtime",
"timestamp": 1436981233645,
"duration": 0,
"exception": "java.lang.RuntimeException",
"error_description": "java.lang.NullPointerException"
}{code}
1) According to docs, it should work: http://apigee.com/docs/app-services/content/creating-and-managing-notifications
2) If it doesn't and isn't supposed to, it shouldn't throw an NPE.
Note that a notifier with a sandbox cert has been created with the name 'apple-dev'.
---
UPDATE
It does work with {code}/devices;ql=select */notifications{code}
we should address this but also update the documentation to reflect the way in which it works.
was:
{code}curl -X POST -d '{ "payloads": { "apple-dev": "Hello World!" } }' 'https://api.usergrid.com/brandon.apigee/baas-integration-tests/devices/*/notifications?client_id=redacted&client_secret=redacted'{code}
throws:
{code}{
"error": "runtime",
"timestamp": 1436981233645,
"duration": 0,
"exception": "java.lang.RuntimeException",
"error_description": "java.lang.NullPointerException"
}{code}
1) According to docs, it should work: http://apigee.com/docs/app-services/content/creating-and-managing-notifications
2) If it doesn't and isn't supposed to, it shouldn't throw an NPE.
Note that a notifier with a sandbox cert has been created with the name 'apple-dev'.
> Notifications POST throwing NPE
> -------------------------------
>
> Key: USERGRID-858
> URL: https://issues.apache.org/jira/browse/USERGRID-858
> Project: Usergrid
> Issue Type: Bug
> Components: Stack
> Affects Versions: 2.0.0, 1.0
> Reporter: Brandon Shelley
>
> {code}curl -X POST -d '{ "payloads": { "apple-dev": "Hello World!" } }' 'https://api.usergrid.com/brandon.apigee/baas-integration-tests/devices/*/notifications?client_id=redacted&client_secret=redacted'{code}
> throws:
> {code}{
> "error": "runtime",
> "timestamp": 1436981233645,
> "duration": 0,
> "exception": "java.lang.RuntimeException",
> "error_description": "java.lang.NullPointerException"
> }{code}
> 1) According to docs, it should work: http://apigee.com/docs/app-services/content/creating-and-managing-notifications
> 2) If it doesn't and isn't supposed to, it shouldn't throw an NPE.
> Note that a notifier with a sandbox cert has been created with the name 'apple-dev'.
> ---
> UPDATE
> It does work with {code}/devices;ql=select */notifications{code}
> we should address this but also update the documentation to reflect the way in which it works.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)