0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/test/regression/api
Naz 5584430ddc 🐛 Fixed a 500 error for incorrect fields parameter in API
closes https://github.com/TryGhost/Team/issues/817
refs 6d083ee00e/packages/bookshelf-pagination/lib/bookshelf-pagination.js (L256)

- The 500 error is not the best we can do in this situation and throwing a 400 just like we doo in a referenced commit would keep the convention
- The underlying problem of the bug is bigger - we allow the fields named the same way as relations to leak into the db query and that causes an incorrect SQL syntax. It's a bigger problem which would need a separate, holistic approach
2021-07-05 18:46:02 +04:00
..
canary 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-05 18:46:02 +04:00
v2 Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
v3 Added cache invalidation to the POST authentication/setup route 2021-07-05 16:01:25 +02:00
admin_spec.js Moved i18n to shared 2021-05-04 13:03:38 +01:00