[Fiware-creatifi-coaching] [CreatiFI Italy Hub]Cygnus connector and user-agent filtered by "orion.." content (Publish/Subscribe Context Broker - Orion Context Broker GE)

Andrea Maestrini amaestrini at create-net.org
Mon May 25 16:47:00 CEST 2015


Dear FIWARE coach,
we forward you a support request received from a CreatiFI applicant we are
not able to solve.
Please let us know if you need direct contact with the submitter.
Thanks.

******************************

Dear,
I guess this ticket should be addressed to Cygnus Connector GE developers.

I am testing the "subscription-notification" mechanism of NGSI and I
noticed that Cygnus Connector accepts only notifications that have
User-Agent http header set to "orion/x.y.z". This forces all NGSI-like
sources to be only instances of Orion Context Broker.

I am using Data Handling EspR4FastData GE and it is compliant with the NGSI
"subscription-notification"; i.e. I can create a subscription and indicate
the address of the Cygnus connector as the end point for the notification.
The problem is that Data Handling sends the notification using a standard
"mozilla/5.0" user-agent that is refused by Cygnus, see trace below:




*2015-05-25 08:37:40,437 (1535676062 at qtp-62688637-20) [INFO -
es.tid.fiware.fiwareconnectors.cygnus.handlers.OrionRestHandler.getEvents(OrionRestHandler.java:153)]
Starting transaction (1432538977-399-0000000053)2015-05-25 08:37:40,437
(1535676062 at qtp-62688637-20) [WARN -
es.tid.fiware.fiwareconnectors.cygnus.handlers.OrionRestHandler.getEvents(OrionRestHandler.java:183)]
Bad HTTP notification (mozilla/5.0 user agent not supported)2015-05-25
08:37:40,437 (1535676062 at qtp-62688637-20) [WARN -
org.apache.flume.source.http.HTTPSource$FlumeHTTPServlet.doPost(HTTPSource.java:186)]
Received bad request from client.*

My question is: is there a way to configure Cygnus to accept a non-Orion
user-agent?

******************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fiware.org/private/fiware-creatifi-coaching/attachments/20150525/ef5c9e36/attachment.html>


More information about the Fiware-creatifi-coaching mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy