Hi,
On Thu, Sep 4, 2014 at 7:50 AM, John <
bingj...@gmail.com> wrote:
> Hey,
>
>
> I am using CometD 3 with Jetty. Sometimes, I get error shown below in my
> logs, This error is infrequent:
>
> I am not sure what is causing this? Can someone help me understand what
> should be done in order to avoid this ? Is this harmful ?
>
>
>
>
> 2014-09-02 10:59:29.483:WARN:oejs.ServletHandler:qtp607635164-602:
> /cometd/disconnect
> java.io.IOException: Missing 'message' request parameter
CometD clients should send POST with content-type
"application/json;charset=UTF-8".
For historical reasons, CometD allows also POST with content-type
"application/x-www-form-urlencoded", provided that a "message"
parameter is sent with the JSON representing the message.
So what you're getting here is someone doing the latter, but without
the "message" parameter.
The missing parameter may be due to the fact that the client is bad
(are you using CometD clients ?), or someone is doing a POST to the
wrong URL, or someone is attacking you by sending random POSTs.
--
Simone Bordet
----
http://cometd.org
http://webtide.com
http://intalio.com
Developer advice, training, services and support
from the Jetty & CometD experts.
Intalio, the modern way to build business applications.