0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/ghost
Michael Barrett 381c91bf1b
🐛 Fixed invalid routes.yaml filter preventing Ghost from booting (#22174)
refs
[ONC-776](https://linear.app/ghost/issue/ONC-776/invalid-routesyaml-nql-filter-can-prevent-ghost-from-booting)

If the `routes.yaml` has a definition containing a malformed filter,
i.e:

```yaml
collections:
  /foo/:
    permalink: /foo/
    template: foo
    filter: tags:-foo,-bar
```

(`tags:-foo,-bar` invalid because there should be a property directly
after the ',`)

then it is possible for the URL service to fail to start due to an
unhandled error being thrown when the filter is parsed during URL
generation.

This commit handles the error and returns `false` when the filter cannot
be parsed, allowing the URL service to still start
2025-02-13 09:14:46 +00:00
..
activitypub Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
adapter-cache-memory-ttl
adapter-cache-redis
adapter-manager
admin Removed Admin util methods and icons related to portal settings 2025-02-12 08:37:49 +00:00
announcement-bar-settings
api-framework
api-version-compatibility-service
audience-feedback
bookshelf-repository
bootstrap-socket
captcha-service Added better error handling for hCapthca 2025-02-11 15:43:42 +00:00
constants
core 🐛 Fixed invalid routes.yaml filter preventing Ghost from booting (#22174) 2025-02-13 09:14:46 +00:00
custom-fonts
custom-theme-settings-service
data-generator
domain-events Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
donations
dynamic-routing-events
email-addresses
email-analytics-provider-mailgun
email-analytics-service
email-content-generator
email-events
email-service Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
email-suppression-list
express-dynamic-redirects
external-media-inliner
extract-api-key
ghost
html-to-plaintext
i18n
identity-token-service
importer-handler-content-files
importer-revue
in-memory-repository
job-manager Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
link-redirects
link-replacer
link-tracking
magic-link
mail-events
mailgun-client Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
member-attribution
member-events
members-api Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
members-csv
members-events-service Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
members-importer Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
members-ssr
mentions-email-report
milestones
minifier
mw-api-version-mismatch
mw-cache-control
mw-error-handler
mw-session-from-token
mw-update-user-last-seen
mw-version-match
mw-vhost
oembed-service Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
offers
package-json
payments
post-events
post-revisions
posts-service
prometheus-metrics Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
recommendations
referrers
security
session-service
settings-path-manager
slack-notifications
staff-service
stats-service
stripe Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
tiers
tinybird
update-check-service Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
verification-trigger
version-notifications-data-service
webmentions Improved performance of logging to stdout 2025-02-12 16:21:02 +01:00
tsconfig.json