0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/test/acceptance/old/admin
Katharina Irrgang 04c60b4ce1
🐛 Fixed private blogging getting enabled when saving any setting (#10576)
no issue

- Reported here: https://forum.ghost.org/t/in-version-2-16-3-found-bug/6065/3

---

Admin Client sends false or true booleans for `is_private` key.

The settings table has two columns "key" and "value". And "value" is always type TEXT.

If you pass value=false, the db will transform this value into "0".
`settingsCache.get('is_private')` is then always true, even though the value is meant to be false.

We should add a migration in v3 and normalize all setting values to ensure consistent database values. Furthermore, we should improve the handling around settings values in general.

For now, we protect parsing values from DB, which we anyway need to transform the values into the correct data type, because we always save strings. This will protect values being stored as "false" or "1" or whatever.
2019-03-06 12:56:26 +01:00
..
actions_spec.js Updated audience validation for admin api tokens (#10519) 2019-02-23 12:51:21 +01:00
config_spec.js Returned prefix for site & config response 2019-02-25 13:24:19 +01:00
db_spec.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
images_spec.js Combined /images* endpoints into /images/upload 2019-02-25 19:15:16 +07:00
integrations_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
invites_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
key_authentication_spec.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
mail_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
notifications_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
oembed_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
pages_spec.js Fixed pages acceptance test 2019-03-04 14:53:15 +00:00
posts_spec.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
roles_spec.js Reduced & moved acceptance tests for admin API 2019-02-04 15:58:06 +01:00
settings_spec.js 🐛 Fixed private blogging getting enabled when saving any setting (#10576) 2019-03-06 12:56:26 +01:00
slugs_spec.js Reduced & moved acceptance tests for content API 2019-02-04 15:58:18 +01:00
tags_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00
themes_spec.js Renamed theme upload file field name 2019-02-25 13:26:03 +01:00
users_spec.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
utils.js 🐛 Fixed email address not being returned with admin api key authentication 2019-03-06 10:48:21 +01:00
webhooks_spec.js Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00