Skip to content

Upload: a .vcf that isn't a readable VCF no longer returns a 500 (#2938) - #2939

Merged
davmlaw merged 1 commit into
masterfrom
2938_unreadable_vcf_upload_500
Nov 30, 2026
Merged

davmlaw merged 1 commit into
masterfrom
2938_unreadable_vcf_upload_500

Conversation

@davmlaw

@davmlaw davmlaw commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

🤖 Written by Claude

For #2938.

Every factory for an uploaded file's extension is asked whether it can process it, and the ClinVar one opened every .vcf with cyvcf2 without catching a parse failure. So any .vcf that isn't a readable VCF made both the upload API and the web upload return a 500. It now handles that the way the gene-level CNV and SpliceGirl sniffers already do. The file is claimed as a VCF, its import pipeline fails reading the header, and upload_status reports the error, as it does for other malformed files.

Test: upload.tests.test_api.UploadFileAPITest.test_unreadable_vcf_is_accepted_as_a_vcf fails on master with a 500 and passes here. upload, annotation and seqauto tests pass (1084).

…r sniffer, like the gene-level CNV and SpliceGirl ones, treats a file it can't read as someone else's, so the VCF import fails and upload_status reports it #2938
@davmlaw
davmlaw merged commit 37c88d6 into master Nov 30, 2026
4 checks passed
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