0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/ghost
Simon Backx 4d54880113
Added error handling for ENAMETOOLONG import error (#16054)
fixes https://github.com/TryGhost/Team/issues/2200

When zipping a folder that contains files with UTF-8 characters in the filename, using the MacOS Archive Utility, the resulting zip will be missing some UTF-8 configuration bit. This breaks the unzipper, causing it to decode the filenames using the wrong encodign.

When the file names are long, and become longer than the length allowed by the OS, an ENAMETOOLONG error is thrown. This error is not handled by the importer, and causes the import to fail.

This adds a specific check for this error so we can show a clear error message to the user, that helps them to resolve the issue. We are currently unable to fix the issue on our side, because of a lack of well supported zip libraries for node.
2023-01-18 13:28:36 +01:00
..
adapter-manager
admin Added error handling for ENAMETOOLONG import error (#16054) 2023-01-18 13:28:36 +01:00
api-framework
api-version-compatibility-service
audience-feedback
bootstrap-socket Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
constants
core Added error handling for ENAMETOOLONG import error (#16054) 2023-01-18 13:28:36 +01:00
custom-theme-settings-service
data-generator Update dependency knex to v2.4.1 2023-01-18 07:43:07 +01:00
domain-events Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
email-analytics-provider-mailgun
email-analytics-service
email-content-generator
email-events
email-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
email-suppression-list
express-dynamic-redirects
extract-api-key
html-to-plaintext
importer-revue
job-manager Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
link-redirects
link-replacer
link-tracking
magic-link
mailgun-client Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
member-attribution
member-events
members-api Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-csv
members-events-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-importer Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
members-ssr
minifier
mw-api-version-mismatch
mw-cache-control
mw-error-handler
mw-session-from-token
mw-update-user-last-seen
mw-vhost
oembed-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
offers
package-json
payments
portal
referrers
security
session-service
settings-path-manager
staff-service
stats-service Update dependency knex to v2.4.1 2023-01-18 07:43:07 +01:00
stripe Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
tiers
update-check-service Reverted "Added version information to log lines" 2023-01-17 13:20:47 +01:00
verification-trigger
version-notifications-data-service
webmentions Added initial basic Mentions implementation 2023-01-17 17:01:20 +07:00