Skip to content

5434 - fallback the mime type to octet-stream #164

Merged
cody-seibert-gsa merged 2 commits into
mainfrom
5434-missing-extension-export-error
Jun 8, 2026
Merged

5434 - fallback the mime type to octet-stream #164
cody-seibert-gsa merged 2 commits into
mainfrom
5434-missing-extension-export-error

Conversation

@cody-seibert-gsa

Copy link
Copy Markdown

when a url is provided, the import process will infer based on the extension, but if a user provides a dataset url with no extension, we can't figure out what the format is, especially when the user didn't specify the format type (it's optional in the form).

this fix will fallback on octet-stream if no proper format was provided so that it'll still put the dataset into the zip instead of throwing an error.

…ad no format extension and the format field was blank

@jbrown-xentity jbrown-xentity left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but you'll need to bump the version number so the build process can publish it appropriately in Pypi...

@jbrown-xentity jbrown-xentity left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@cody-seibert-gsa cody-seibert-gsa merged commit 192de43 into main Jun 8, 2026
6 checks passed
@cody-seibert-gsa cody-seibert-gsa deleted the 5434-missing-extension-export-error branch June 8, 2026 16:19
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.

2 participants