[xwiki/xwiki-platform] 914a39: XWIKI-24700: A failed translations request never r...
Branch: refs/heads/stable-18.4.x Home: https://github.com/xwiki/xwiki-platform Commit: 914a3990dd8be9d43eaf74f4ee21c8ff1c165102 https://github.com/xwiki/xwiki-platform/commit/914a3990dd8be9d43eaf74f4ee21c... Author: Manuel Leduc <manuel.leduc@xwiki.com> Date: 2026-08-27 (Thu, 27 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-localization/xwiki-platform-localization-webjar/src/main/node/src/__tests__/l10n.test.ts M xwiki-platform-core/xwiki-platform-localization/xwiki-platform-localization-webjar/src/main/node/src/l10n.ts M xwiki-platform-core/xwiki-platform-node/src/main/node/core/localization/localization-resolvers/localization-resolver-xwiki-rest/src/__tests__/index.test.ts M xwiki-platform-core/xwiki-platform-node/src/main/node/core/localization/localization-resolvers/localization-resolver-xwiki-rest/src/index.ts Log Message: ----------- XWIKI-24700: A failed translations request never resolves the xwiki-l10n RequireJS module, blocking all dependent modules * Reject instead of returning the partial cache when the localization REST request fails in the xwiki-rest translator, and treat a non-OK HTTP response as a failure so an error page is no longer read as "no translations" * Drop the inflight entry of a failed query so an identical query can be retried * Log the failed query serialized, instead of [object Object], and through console.error rather than console.log * Call onLoad with the untranslated keys when the resolution of an xwiki-l10n query fails, so that the dependent modules still initialize and merely display the keys * Call onLoad outside of the resolution handlers, so that an error thrown by a dependent module is no longer reported as a translation resolution failure (cherry picked from commit 8e139cc0190727fe5e49265a0a61109713fc8080) To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications