Ghost/core
Simon Backx 42ac8c41e4
🐛 Fixed uppercase file extensions ignored in content import (#14268)
refs https://github.com/TryGhost/Team/issues/1363

- When uploading a zip of images in Settings > Labs > [Import], it will skip images that have an uppercase extension, citing an 'unsupported file type' error.
- Cause: Glob ignored those files when matching extensions in ImportManager
- Fix: Added nocase option where needed
- Extended tests to also test the processZip method of ImportManager with getFilesFromZip
- Added isValidZip for zip with uppercase image
- Cleaned up JSDoc in ImportManager, and replaced some older JS syntax

Fixed zipContainsMultipleDataFormats error never thrown:

When a zip combines two data formats, no error was thrown.

- The promise error was only returned in an _.each loop, but never thrown
- Previously when combining multiple data types in a zip file, no error got thrown
- Added a test for this error
- Also added a test for noContentToImport error

Other errors and fixes:

- Added missing length in getBaseDirectory check
- getContentTypes fixed (returned duplicate values). Type error came up after adding all JSDocs
- updated tests to match real types from JSDoc and pass type validations
- Rewrote some methods in the async await syntax
- Added tests for ImportManager clean up
2022-03-11 09:17:58 +01:00
..
client@f960615fe8 Updated Admin to v4.38.1 2022-03-09 08:59:59 +00:00
frontend Fixed typo 2022-03-10 10:43:14 +00:00
server 🐛 Fixed uppercase file extensions ignored in content import (#14268) 2022-03-11 09:17:58 +01:00
shared Promoted improved on-boarding experience to GA 2022-03-10 18:20:30 +00:00
app.js Fixed express app stacking 2021-12-06 21:28:53 +13:00
boot.js Added handler for unhandled rejections 2022-02-18 10:35:36 +01:00
bridge.js 💡 Pinned frontend API version to canary 2022-02-17 17:55:55 +00:00