-
Bug
-
Resolution: Won't Do
-
Undefined
-
None
-
2.2.0.GA
-
None
-
False
-
None
-
False
-
-
Started by Bridge#410
An HTTP client sends messages as JSON by having something like this.
"key": "key-1", "value": "value-1",
The double quotes are just used in the JSON itself but they are not part of the key or value.
An HTTP client consuming same messages via the bridge gets the following:
"key": "key-1", "value": "value-1",
It is still right because double quotes are still used in the JSON itself but are not part of the key or value.
But a consumer, not using the bridge, for example the kafka console consumer gets them as "key-1" and "value-1".
They includes the double quotes, which is wrong. It means that in the underlying Kafka record the double quotes are stored by the bridge while handling the JSON.
In the JSON from the producer they are there just for representing a string. A non bridge-based Kafka consumer should get just key-1 and value-1 with no quotes.
The right approach to have quotes even when not received by a bridge-based consumer, should be that the producer (via bridge) has to escape quotes this way:
"key": "\"key-1\"", "value": "\"value-1\"",
- depends on
-
ENTMQST-4501 Remove Vert.x JSON handling
- Closed