MikaelGRA / InfluxDB.Client

InfluxDB Client for .NET
MIT License
102 stars 22 forks source link

Escape backslash at end of field value #28

Closed SimonTouchtech closed 6 years ago

SimonTouchtech commented 6 years ago

This library correctly follows the documentation which says that the only character that needs to be escaped for string field values is double quotes ("). Unfortunately that documentation does not consider the case where a string value ends with backslash, where it needs to be escaped (see https://github.com/influxdata/docs.influxdata.com/issues/1013). This library does not handle that (very specific...) case, leading to a request error.

SimonTouchtech commented 6 years ago

Actually, this might be more complicated than I expected, it appears to only work with escaping backslash if you do it for the final field, see https://github.com/influxdata/influxdb/issues/3682#issuecomment-137875227. Not sure if this is actually possible to fix in a reasonable way within this library.

MikaelGRA commented 6 years ago

I see the issue, and am able to reproduce it. But I don't really see a reasonable way to fix it, as it is more of a bug in the influxdb line protocol parser than anything else.

SimonTouchtech commented 6 years ago

I agree, closing this issue.