Ghost/core/server/api/v2
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
..
utils 🐛 Fixed private blogging getting enabled when saving any setting (#10576) 2019-03-06 12:56:26 +01:00
actions.js Added v2 actions endpoint 2019-02-06 21:36:09 +01:00
authors-public.js Renamed authors ctrl to authors-public 2019-02-26 08:33:10 +01:00
config.js Added "useGravatar" to config endpoint in Admin API v2 2019-02-25 15:39:47 +01:00
db.js 🐛 Fixed broken content import in Admin API v2 (#10299) 2018-12-20 11:01:48 +01:00
images.js Renamed uploads to images 2019-02-24 11:18:45 +07:00
index.js Reverted & Solved apiType differently 2019-02-26 08:33:10 +01:00
integrations.js Added HTTP BREAD for integrations resource (#9985) 2018-10-18 14:03:56 +01:00
invites.js Removed x_by fields from API v2 response 2019-01-03 16:38:52 +01:00
mail.js Updated docs links to best equivalents (#10386) 2019-01-17 06:57:37 +00:00
members.js Added new admin API for members (#10435) 2019-01-30 17:06:09 +05:30
notifications.js Added notifications ctrl to v2 2018-10-12 21:13:20 +02:00
oembed.js Added oembed controller to v2 api (#10057) 2018-11-02 09:32:26 +01:00
pages-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
pages.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
posts-public.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
posts.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
preview.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
redirects.js Migrated redirects controller to API v2 (#10053) 2019-01-07 11:32:53 +00:00
roles.js Migrated roles controller to API v2 2018-10-10 16:48:22 +02:00
session.js Added spam prevention for v2 sessions (#10030) 2018-10-18 09:58:29 +01:00
settings-public.js 🗑Deprecated ghost_head & ghost_foot in favour of codeinjection_* for Settings API v2 (#10380) 2019-01-15 13:03:17 +01:00
settings.js 🐛 Fixed 404 when trying to update codeinjection_* settings in Admin API v2 2019-03-04 22:59:13 +01:00
site.js Added public /site endpoint to Admin API v2 2019-02-25 13:24:19 +01:00
slack.js Added slack controller to v2 API (#10086) 2018-11-06 23:20:43 +01:00
slugs.js Added v2 controller for slugs (#9978) 2018-10-12 17:55:20 +05:30
subscribers.js 🐛 Fixed files staying in temp directory after upload is done 2019-01-30 09:24:29 +00:00
tags-public.js Added plugin based author and public tag models in API v2 (#10284) 2019-01-03 20:30:35 +01:00
tags.js Skiped 'all' validations for posts/tags endpoints 2019-02-15 12:19:49 +00:00
themes.js Added back "theme.uploaded" analytics event (#10450) 2019-02-05 17:38:40 +01:00
users.js Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
webhooks.js Required "event" & "target_url" for webhook creation 2019-02-07 23:21:59 +01:00