Skip to content

fix: trim embed-file-types values from the URL query - #4169

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/embed-file-types-trim
Nov 5, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/embed-file-types-trim

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Embed-file-types now ignores spaces around the values and empty entries, so pdf, docx (or pdf,+docx) also allows docx files, and a trailing comma no longer enables files without an extension.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: spaces, empty entries and a trailing comma in the query are dropped
  • test case 2: browser: pdf,%20docx, pdf,+docx, pdf,docx, and a lone comma in the embed picker; pdf, mime type and no file types unchanged

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@tammi-23 tammi-23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍

@AlexAndBear
AlexAndBear merged commit 26ff77b into main Nov 5, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/embed-file-types-trim branch November 5, 2026 00:44
@openclouders openclouders mentioned this pull request Nov 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

embed-file-types values with spaces after the comma don't match

2 participants