8000 NotFoundException is using the error500 template instead of the error400 template. · Issue #17599 · cakephp/cakephp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
NotFoundException is using the error500 template instead of the error400 template. #17599
Open
@fr3nch13

Description

@fr3nch13

Description

I noticed that something changed between 5.04 and 5.05 that is now causing the \Cake\Http\Exception\NotFoundException to use the error500 template instead of the error400 template, at least in my unit tests. I have confirmed the error message that is associated with the specific 404 error is there, it's just using the wrong template.

I would open a PR, but I still haven't been able to track down exactly which part of the code changed, or if I have something in my code that could be causing this. I also went through the changeling between 5.04 and 5.05, and didn't see anything that stood out that would cause this.

As a background, this is a new application, written only on CakePHP 5, so it's not ported from 4.x

CakePHP Version

5.04 ... 5.05

PHP Version

8.2.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0