File usage empty page for non-existing files, 404 is expected

Created on 26 January 2022, almost 3 years ago
Updated 31 January 2023, almost 2 years ago

Problem/Motivation

The file usage information view displays an empty page for non-existing files. A 404 response code is expected.

Steps to reproduce

In a fresh 9.4.x standard Drupal installation, open /admin/content/files/usage/1234 as admin. You will get:

Proposed resolution

Add entity:file argument validation to views.view.files

Remaining tasks

Review.

User interface changes

None.

API changes

N/A

Data model changes

N/A

Release notes snippet

TBD.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
File moduleΒ  β†’

Last updated 4 days ago

Created by

πŸ‡ͺπŸ‡ΈSpain manuel.adan 🌌

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    Instead of

    +function file_update_9401() {
    

    Think this needs to be a post_update hook instead.

Production build 0.71.5 2024