Shopify / Shopify/liquid

Corrupted WOFF2 file upon upload

Open
#1,842 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Ruby
Stars
11.9k
Forks
1.5k
Avg merge
17h 55m
Merged PRs (30d)
3

Description

Sorry to post this here, but I would like to file a bug in the admin area of Shopify - the issue is ignored in the community support forum and support can't or won't file a bug report on my behalf.

When uploading a WOFF2 font file to the 'assets' folder of a theme the file is corrupted. In my case the file size changes from 21KB to 39KB when served via asset_url

The browser console logs the following errors and the font fails to load.

Failed to decode downloaded font
OTS parsing error: Failed to convert WOFF 2.0 font to SFNT

When uploading the file to 'Content' > 'Files' and loading the file via file_url in the CSS, the font load correctly. ( So it's not a corrupt font file before uploading ).

Other customers experiencing the same.
https://community.shopify.com/c/technical-q-a/has-anyone-else-had-issues-with-corrupted-woff-or-woff2-files/m-p/1732103

Please advise on the correct channel to report bugs - as support is always a brick wall.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report concerns WOFF2 uploads in Shopify's admin area, comparing the asset_url path with the working file_url path. No repository file, test, or entry point is identified, so first confirm whether this behavior belongs in Liquid; done would require a reproducible in-scope failure and a test showing the uploaded font is served without corruption.

Written by the indexing model from the issue text.

Assessment

Domain
web-dev
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.