[#202] fix: quarantine malformed JSON in filedrop inbox #204
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Competitor
Kind/Documentation
Kind/Enhancement
Kind/Epic
Kind/Feature
Kind/Security
Kind/Story
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Scope/Core
Scope/Cross-Plugin
Scope/Plugin-System
Scope/Single-Plugin
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ultanio/cobot!204
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/filedrop-malformed-json"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #202
Problem
Malformed JSON in the filedrop inbox causes an infinite retry loop. The except block logs the error but leaves the file in the inbox, so the next poll cycle retries it forever.
Alpha was stuck in this loop for hours.
Fix
Added
_quarantine_file()method that:_processedset (stops retrying)processed/with_corruptedsuffixBoth
poll_inbox()and the secondary poll method now catchjson.JSONDecodeErrorseparately and quarantine the file.Tests
3 new tests: