Repository navigation
fix(webdav): stream announced types without a converter to the generator - #3884
Merged
Merged
Conversation
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | -12 |
🟢 Coverage 100.00% diff coverage · +0.01% coverage variation
Metric Results Coverage variation ✅ +0.01% coverage variation (-1.00%) Diff coverage ✅ 100.00% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (5b1efe5) 92699 25892 27.93% Head commit (e462b8c) 92693 (-6) 25903 (+11) 27.94% (+0.01%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3884) 7 7 100.00% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
aduffeck
approved these changes
Nov 3, 2026
Merged
3 of 4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
OC_THUMBNAILS_ADDITIONAL_SOURCE_TYPESpromises that an announced type the generator cannot read answers 404, which implies the generator gets asked. It does not:sourceImagestreamed onlyimage/*through and demanded a preprocessor converter for everything else, so an announcedapplication/pdfdied in webdav with "no converter" before imagor ever saw it, although imagor renders PDFs (poppler is linked in both published images) once-upload-loader-acceptletsapplication/pdfin.A type without a converter is now streamed to the generator untouched, the same way images always were; text, audio and geogebra keep their converters. Nothing else widens:
statSourcestill rejects every type outside the built-in list plus the additional source types before any download, so only announced types reach the generator.Verified end to end against
shumc/imagor:1.9.11with-upload-loader-accept "image/*,application/pdf"andOC_THUMBNAILS_ADDITIONAL_SOURCE_TYPES=application/pdf: the PDF preview answers 200 image/jpeg, an uploaded zip answers 404 and never shows up in imagor's request log.Found while reviewing #3883.