AEM 6.5 SP21 navigation unresponsive due to JavaScript minification failure

Adobe Experience Manager (AEM) 6.5 Service Pack 21 console navigation and user icon actions can become unresponsive on affected Publish servers because the default YUI Compressor fails to process modern JavaScript syntax in updated client libraries. The resulting minification failures generate HTTP 500 errors and prevent essential client-side scripts from loading, although the production environment might not be affected. To resolve the issue, change the default JavaScript processor to GCC and rebuild the client libraries.

Description description

Environment

Adobe Experience Manager 6.5 Service Pack 21 (AEM 6.5 SP21)

Issue/Symptoms

  • After you sign in as an administrator, the initial AEM console screen appears, but selecting a navigation item, such as Workflow or Operations, or selecting the user icon doesn’t trigger a response.
  • The issue occurs on affected Publish servers. The production environment might not be affected.
  • Logs show repeated HTTP 500 errors for requests to client libraries such as clientlibs/granite/moment.min.js and clientlibs/granite/dompurify.min.js.
  • Error logs contain messages from com.adobe.granite.ui.clientlibs.impl.YUIScriptProcessor that indicate JavaScript syntax errors, such as missing name after . operator.
  • Essential client-side scripts fail to load, resulting in unresponsive UI elements.

Root cause

The default YUI Compressor in AEM fails to process modern JavaScript syntax, such as ES6 features, in updated client libraries, including moment.js and dompurify.js. The resulting build failures and HTTP 500 errors prevent the required client-side scripts from loading.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Access the Felix Configuration Manager at https://<host>:<port>/system/console/configMgr on each affected Publish server.

  2. Search for and open Adobe Granite HTML Library Manager.

  3. Change JS Processor Default Configs to min:gcc.

  4. Select Save to apply the configuration.

  5. Open /libs/granite/ui/content/dumplibs.rebuild.html in your browser:

    • Select Invalidate Caches.
    • Select Rebuild Libraries.
  6. Reload the AEM console and verify that the navigation and user icon actions respond.

  7. Confirm that the other UI operations function as expected because this setting affects the entire instance.

recommendation-more-help
experience-cloud-kcs-help-kbarticles