Skip to content

Fix file format and compression detection for download URLs - #297

Open
palashranka wants to merge 1 commit into
dbpedia:devfrom
palashranka:fix/file-format-detection
Open

palashranka wants to merge 1 commit into
dbpedia:devfrom
palashranka:fix/file-format-detection

Conversation

@palashranka

Copy link
Copy Markdown

Fixes #296

Summary

Fixes incorrect file format and compression detection for download URLs containing query parameters or fragments, along with filename parsing issues in Content-Disposition headers.

Changes

  • Ignore query parameters and fragments when detecting file extensions from URLs, including URLs with / inside query parameters.
  • Handle Content-Disposition filenames with or without spaces after semicolons, quoted filenames, and extended filename*= values.
  • Reuse the shared filename parser in the publish wizard to keep both detection paths consistent.
  • Preserve valid filename characters such as #.
  • Add regression tests covering these cases.

Testing

  • npm test — 84 tests passed.
  • File-analyzer regression tests — 5 passed.

Existing behavior for normal download URLs and filenames remains unchanged.

@coderabbitai

coderabbitai Bot commented Nov 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4d335add-f33f-42ac-977c-139f4bc768d7

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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