Skip to content

Update v4.11.1 to v4.11.4 breaks uploads #17228

@vandres

Description

@vandres

Bug report

Required System information

  • Node.js version: v16.20.1
  • NPM version: 8.19.4
  • Strapi version: v4.11.4
  • Database: SQLite
  • Operating system: MacOS
  • Is your project Javascript or Typescript: JS

Describe the bug

We have all our uploads in the root folder. The DB looks something like this. This project was updated from v3 to v4 before.

grafik

When we use v.4.11.1 everything works well. We upgraded to v4.11.4 today and the Media Library is empty. All linked images in the content are still visible.

I debugged the problem down to node_modules/@strapi/plugin-upload/server/controllers/admin-file.js around line 29. When looking at the query filters, they changed between versions.

v.4.11.1:

grafik

v4.11.4:

grafik

I think from the query filters you can see the problem. Was this an intended change? Is there some note on this breaking change?

Metadata

Metadata

Labels

flag: EEIssues correlates to internal EE ticketflag: 💥 breaking changeThis PR contains breaking changes and should not be mergedissue: bugIssue reporting a bugseverity: criticalIf the issue has a security impact or breaks core usage of the productsource: core:uploadSource is core/upload packagestatus: confirmedConfirmed by a Strapi Team member or multiple community members

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions