Repository navigation
fix: report unsupported backslashes in field keys - #737
2836048681 wants to merge 4 commits into
Conversation
2bfa65d to
038f438
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #737 +/- ##
==========================================
- Coverage 90.83% 90.78% -0.06%
==========================================
Files 41 41
Lines 3591 3601 +10
==========================================
+ Hits 3262 3269 +7
- Misses 329 332 +3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
karel-rehor
left a comment
There was a problem hiding this comment.
@2836048681 (MingYang Lu)
Thank you for this contribution. I see from the git log that this is committed directly from Codex.
commit 038f4388bcd85e8ebb194600f480fe779629a401 (HEAD -> fix/660-field-key-backslash-space, origin/fix/660-field-key-backslash-space)
Author: Codex <codex@local.invalid>
Date: Sat Nov 21 08:15:47 2026 +0000
fix: report unsupported backslashes in field keys
While it appears that the changes will fix issue #660 I don't think this PR meets Influx's criteria for contributing AI generated code. Since all contributors are responsible for the code they commit, the actually commit must be attributed to the contributor as the Author and not to the AI engine that generated the code.
If the commit can be reverted and reapplied under the git user's account, perhaps with some minor changes, then we can move this PR forward.
Closes #660.
Proposed changes
When a field key contains an odd number of backslashes immediately before a space, escaping the space adds one more backslash. InfluxDB consumes the resulting backslashes in pairs and reads the space as a delimiter. A write then fails with HTTP 400 and an invalid field format error.
Raise a
ValueErrorfromPoint.to_line_protocol()that names the field key and explains the unsupported sequence. Point and dictionary writes get the same validation through the serializer. The check runs only for fields that will be included in the output.Validation
ValueErrorbefore issuing a request, and valid field keys round-tripped with their names intact.screening/pytest-fixed-full-workspace.login the round workspace.Checklist