4813d82285
Quotes are not supposed to be significant in field keys, but are significant in field values. The code as it currently was would consider quotes in a key to be significant, but the later parser that would unmarshal the fields from the byte string did not consider those quotes to be significant. This meant that the following string: "a=1 The line protocol parser would see a mismatched quote instead of a valid input to the line protocol. But more nefariously, the following string: "a=1"=2 The line protocol parser would ignore the first equals since it is located in the quotation marks and think this was a valid input. It would then pass it on to the field parser who would panic and die when it tried to parse `1"=2` as a number. Fixes #4076. |
||
---|---|---|
.. | ||
points.go | ||
points_test.go | ||
rows.go | ||
time.go |