0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/ghost
Daniel Lockyer 3e79712466 Fixed handling malformed image + media upload requests
fix https://linear.app/tryghost/issue/SLO-94/unexpected-field-when-given-broken-image-upload-request

- in the event the body of an image or media upload request is malformed
  (broken metadata / blob or something), we get a MulterError and this
  bubbles up as an InternalServerError and spits out a HTTP 500
- we can capture this and return a BadRequestError, as it's the client's
  fault for not providing the correct body
- this implements that and adds breaking tests
2024-05-06 13:24:26 +02:00
..
adapter-cache-memory-ttl
adapter-cache-redis Added an optional timeout parameter to AdapterCacheRedis (#20131) 2024-05-02 20:39:23 -07:00
adapter-manager Update TryGhost packages 2024-05-01 17:01:41 +02:00
admin v5.82.6 2024-05-03 16:04:14 +00:00
announcement-bar-settings
api-framework Update TryGhost packages 2024-05-01 17:01:41 +02:00
api-version-compatibility-service Fixed handling requests with mismatching version and missing key 2024-05-02 13:03:26 +02:00
audience-feedback Update TryGhost packages 2024-05-01 17:01:41 +02:00
bookshelf-repository
bootstrap-socket Update TryGhost packages 2024-05-01 17:01:41 +02:00
collections Update TryGhost packages 2024-05-01 17:01:41 +02:00
constants
core Fixed handling malformed image + media upload requests 2024-05-06 13:24:26 +02:00
custom-theme-settings-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
data-generator Update TryGhost packages 2024-05-01 17:01:41 +02:00
domain-events Update TryGhost packages 2024-05-01 17:01:41 +02:00
donations Update dependency typescript to v5.4.5 2024-04-16 09:08:58 +02:00
dynamic-routing-events
email-addresses Update dependency typescript to v5.4.5 2024-04-16 09:08:58 +02:00
email-analytics-provider-mailgun
email-analytics-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
email-content-generator
email-events
email-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
email-suppression-list
express-dynamic-redirects
external-media-inliner
extract-api-key
ghost Added ability for Actor to sign requests 2024-05-06 14:21:16 +07:00
html-to-plaintext
i18n 🎨 update i18n for better fit (pt-br) (#20045) 2024-04-29 09:20:07 -04:00
importer-handler-content-files
importer-revue Update TryGhost packages 2024-05-01 17:01:41 +02:00
in-memory-repository Update TryGhost packages 2024-05-01 08:49:04 +02:00
job-manager Update TryGhost packages 2024-05-01 17:01:41 +02:00
link-redirects
link-replacer
link-tracking Update TryGhost packages 2024-05-01 17:01:41 +02:00
magic-link Update dependency @types/nodemailer to v6.4.15 2024-05-06 11:55:52 +02:00
mail-events Update TryGhost packages 2024-05-01 17:01:41 +02:00
mailgun-client Update TryGhost packages 2024-05-01 17:01:41 +02:00
member-attribution Update TryGhost packages 2024-05-01 08:49:04 +02:00
member-events
members-api Revert "Added new member signup flow behind labs flag (#19986)" (#20130) 2024-05-02 13:02:32 -07:00
members-csv 🔒 Added escaping to member export CSV fields 2024-04-03 10:21:02 +02:00
members-events-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
members-importer Update TryGhost packages 2024-05-01 17:01:41 +02:00
members-ssr Update TryGhost packages 2024-05-01 17:01:41 +02:00
mentions-email-report
milestones Update TryGhost packages 2024-05-01 17:01:41 +02:00
minifier Update TryGhost packages 2024-05-01 17:01:41 +02:00
model-to-domain-event-interceptor
mw-api-version-mismatch Update TryGhost packages 2024-05-01 17:01:41 +02:00
mw-cache-control
mw-error-handler Fixed handling of invalid Accept-Version header 2024-05-06 12:01:08 +02:00
mw-session-from-token
mw-update-user-last-seen
mw-version-match Update TryGhost packages 2024-05-01 17:01:41 +02:00
mw-vhost
nql-filter-expansions
oembed-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
offers Update TryGhost packages 2024-05-01 17:01:41 +02:00
package-json Update TryGhost packages 2024-05-01 17:01:41 +02:00
payments Update TryGhost packages 2024-05-01 17:01:41 +02:00
post-events
post-revisions
posts-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
recommendations Update TryGhost packages 2024-05-01 17:01:41 +02:00
referrers
security Update TryGhost packages 2024-05-01 08:49:04 +02:00
session-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
settings-path-manager Update TryGhost packages 2024-05-01 17:01:41 +02:00
slack-notifications Update TryGhost packages 2024-05-01 17:01:41 +02:00
staff-service
stats-service Update Types packages 2024-04-30 22:00:55 +02:00
stripe Update TryGhost packages 2024-05-01 17:01:41 +02:00
tiers Update TryGhost packages 2024-05-01 17:01:41 +02:00
update-check-service Update TryGhost packages 2024-05-01 17:01:41 +02:00
verification-trigger Update TryGhost packages 2024-05-01 17:01:41 +02:00
version-notifications-data-service Fixed handling requests with mismatching version and missing key 2024-05-02 13:03:26 +02:00
webmentions Update TryGhost packages 2024-05-01 17:01:41 +02:00
tsconfig.json