telefonicaid / fiware-orion

Context Broker and CEF building block for context data management, providing NGSI interfaces.
https://github.com/telefonicaid/fiware-orion/blob/master/doc/manuals/orion-api.md
GNU Affero General Public License v3.0
212 stars 265 forks source link

Strange payloads in notifications #3258

Open kzangeli opened 6 years ago

kzangeli commented 6 years ago

We have detected a few pretty strange notification payloads, for example in: test/functionalTest/cases/0876_attribute_dates/attrs_dates_overridden_by_user_subs.test ... where identical payloads in notifications have different Content-Length. The entire difference is probably whitespace, but we need to look into this.

fgalan commented 6 years ago

The change we need to do in that file was:

-Content-Length: 262
+Content-Length: REGEX((400|262))
fgalan commented 6 years ago

Additionally in test/functionalTest/cases/1048_subscription_cache/three_subscriptions.test we need to change:

-Content-Length: 22REGEX(\d)
+Content-Length: REGEX(\d+)

although the one we intially used, 22REGEX(\d), was also pretty weird...

fgalan commented 6 years ago

The PR from which the modifications come from, for reference: https://github.com/apinf/fiware-orion/pull/34

kzangeli commented 6 years ago

One more of these strange content-Lengths of payloads: 0876_entity_dates/entity_dates_overridden_by_user_subs.test, PR apinf#35