[aerogear-dev] USP 1.1.0 - API change: Status code change for Sender Endpoint

Matthias Wessendorf matzew at apache.org
Thu Feb 5 06:24:19 EST 2015


here we go:

https://issues.jboss.org/browse/AGPUSH-1265

-M

On Tue, Feb 3, 2015 at 10:13 PM, Matthias Wessendorf <matzew at apache.org>
wrote:

> Hi,
>
> I recently noticed that we are (IMO) incorrectly returning 200 (OK):
>
> https://github.com/aerogear/aerogear-unifiedpush-server/blob/master/jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/sender/PushNotificationSenderEndpoint.java#L112-L113
>
> Since we really do submit an async job here, and its processing may not
> have been started when we do return the 200 (OK), I'd like to propose a
> slight change here to instead use 202 (Accepted):
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.3
>
> If the team is OK (ha ha) with this, I will track this in JIRA
>
> -Matthias
>
> --
> Matthias Wessendorf
>
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> twitter: http://twitter.com/mwessendorf
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20150205/bce12827/attachment.html 


More information about the aerogear-dev mailing list