agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 524 forks source link

500 Internal Server Error due to invalid API payload #1510

Open Pa55er6y opened 3 weeks ago

Pa55er6y commented 3 weeks ago

With an authenticated user, sending an invalid JSON payload (such as {"model": {"": null}}) to the endpoint POST /content/models/save would lead to 500 internal server error instead of 400 bad request.

Version: 2.9.4 OS: Ubuntu 24.04 Setup: PHP 8.3.6 + SQLite

aheinze commented 3 weeks ago

Please create an issue here: https://github.com/Cockpit-HQ/Cockpit/issues

Pa55er6y commented 3 weeks ago

Thanks for the info. I've just posted it there.