0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/test
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
..
api-acceptance Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
frontend-acceptance Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
regression 🐛 Fixed a 500 error for incorrect fields parameter in API 2021-07-05 18:46:02 +04:00
unit Handled visibility filter in post/page API 2021-07-05 17:10:45 +05:30
utils Added webp image support (#13105) 2021-07-02 09:37:54 +01:00
.eslintignore Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00
.eslintrc.js Upgraded no-skipped-test rule to error 2021-05-26 14:57:43 +01:00
.jshintrc Move tests from core to root (#11700) 2020-03-30 16:26:47 +01:00