| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…borting the module `updateAppsConfig` called `nodeCrypto.decrypt(configuration)` inline as the argument to `.setConfiguration(...)` / `.setServerConfig(...)`. A bad-decrypt (e.g. ERR_OSSL_BAD_DECRYPT when an app's exported `configuration` was encrypted with a different key) therefore threw synchronously — outside the promise chain's `.catch` — and propagated up through `installApps` (which re-throws), aborting the entire marketplace-apps module. Because the module aborted, `mapper/marketplace_apps/uid-mapping.json` was never written. Global fields / content types (and entry data) then had no marketplace extension mapping to remap against, so their imports failed with "extension_uid ... does not exist in destination stack". Fix: decrypt inside a try/catch for both configuration and server_configuration. On failure, log a warning and skip only that app's config push; the app stays installed and its extension_uid mapping is still recorded, so downstream GF/CT/entry remapping works and the uid-mapping file is written. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Sorry, something went wrong.
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Sorry, something went wrong.
|
closing the PR as i have merged it to #359 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Fixes the marketplace-app path that caused the GF/CT half of DX-7312: on a stack with an app whose exported configuration can't be decrypted, the whole marketplace-apps module aborted before writing its UID mapping, which then starved the global-field / content-type / entry extension remap (extension_uid ... does not exist in destination stack).
Root cause
updateAppsConfig decrypted inline as the call argument:
nodeCrypto.decrypt runs synchronously, so a bad-decrypt (ERR_OSSL_BAD_DECRYPT, e.g. the export was encrypted with a different key) throws before the promise chain's .catch — it escapes updateAppsConfig, hits installApps's throw error, and aborts the module. mapper/marketplace_apps/uid-mapping.json is then never written, so GF/CT/entry extension remapping has nothing to map against.
Fix
Decrypt inside a try/catch for both configuration and server_configuration. On failure: log a warn and skip only that app's config push. The app stays installed, its extension_uid mapping is still recorded, and the module completes and writes the UID mapping.
Testing
node bin/dev cm:stacks:import of the previously-failing export (app config triggers ERR_OSSL_BAD_DECRYPT) into a fresh stack:
(Unrelated pre-existing failures in that particular export — CTs referencing a featured_articles global field that is absent from the package — are out of scope and predate this change.)
🤖 Generated with Claude Code