Validate entity bundle in asset/log/etc page_type display logic

Created on 12 November 2021, about 3 years ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

Trying to access invalid (or not installed) entity views should produce an HTTP 404 error, not a HTTP 500 error - the current behavior makes it look like something went wrong on the server, when actually it is just an invalid request from the client.

Steps to reproduce

  • `/assets/zzz`
  • `/logs/zzz`
  • `/assets/compost` - (without the compost module installed)

Proposed resolution

I poked around a bit in the `LogTypeManager`/`AssetTypeManager`, but didn't obviously see what needs to change to produce the correct behavior here.

Remaining tasks

N/A

User interface changes

This should return the generic "Page not found" 404 error.

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Needs work

Version

3.0

Component

User interface

Created by

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.

Production build 0.71.5 2024