Skip to content

Conversation

@Skumring
Copy link

@Skumring Skumring commented Jan 20, 2026

Bug 1: File caching issue - form reuses cached file after validation error

Short Description

When submitting the import form after a validation error, the system reuses the previously cached file instead of showing the "no file" error when no file is selected. This causes confusion and potential unintended data imports.

For more details, see #205


Bug 2: File format validation occurs after encoding when using auto force_encoding

Short Description

When force_encoding: :auto is configured, the file encoding process runs BEFORE file format validation. This causes the system to attempt encoding operations on invalid file formats (e.g., .txt files), leading to unnecessary processing overhead and incorrect error handling flow.

For more details, see #206


Local tests result

bundle exec rspec spec/import_spec.rb  
Screenshot 2026-01-29 at 19 11 21

@Skumring Skumring marked this pull request as draft January 21, 2026 10:53
@Skumring Skumring force-pushed the Fix-bugs-with-caching-and-format-validation-when-importing-files branch from c689419 to 00c6464 Compare January 29, 2026 17:37
@Skumring Skumring marked this pull request as ready for review January 29, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant