Conversation
|
Claude finished @twmb's task in 4m 40s —— View job
Commits LGTM Review Clean implementation that overrides the benthos file output to add OS-specific path validation. Registration pattern, field name constants, config parsing, mutex usage, and test structure all follow project conventions. One minor pattern violation found.
|
| func (w *fileWriter) Write(_ context.Context, msg *service.Message) error { | ||
| path, err := w.path.TryString(msg) | ||
| if err != nil { | ||
| return fmt.Errorf("path interpolation error: %w", err) |
There was a problem hiding this comment.
Error wrap prefix should use gerund form per godev.md: "Prefix with the action in gerund form". Change "path interpolation error: %w" to something like "interpolating path: %w".
Override the benthos file output with a connect-local implementation that rejects characters causing silent data loss: colons on macOS (HFS+/APFS maps ':' to '/'), and <, >, :, ", |, ?, * plus control characters on Windows. NUL bytes are rejected on all platforms. Fixes #1005. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Claude finished @twmb's task in 1m 40s —— View job
Commits LGTM Review Reviewed 4 files: new file output override with OS-specific path validation (
|
Override the benthos file output with a connect-local implementation that rejects characters causing silent data loss: colons on macOS (HFS+/APFS maps ':' to '/'), and <, >, :, ", |, ?, * plus control characters on Windows. NUL bytes are rejected on all platforms.
Fixes #1005.